#include "ui/gfx/native_widget_types.h"
#include "ui/gl/gl_switches.h"
-#if defined(USE_X11)
-#include "ui/gfx/gtk_native_view_id_manager.h"
-#endif
-
#if defined(OS_MACOSX)
#include "base/mac/mac_util.h"
#include "content/common/plugin_carbon_interpose_constants_mac.h"
DISALLOW_COPY_AND_ASSIGN(PluginSandboxedProcessLauncherDelegate);
};
-#if defined(TOOLKIT_GTK)
-void PluginProcessHost::OnMapNativeViewId(gfx::NativeViewId id,
- gfx::PluginWindowHandle* output) {
- *output = 0;
-#if !defined(USE_AURA)
- GtkNativeViewManager::GetInstance()->GetXIDForId(output, id);
-#endif
-}
-#endif // defined(TOOLKIT_GTK)
-
PluginProcessHost::PluginProcessHost()
#if defined(OS_MACOSX)
: plugin_cursor_visible_(true)
// any associated values) if present in the browser command line
static const char* const kSwitchNames[] = {
switches::kDisableBreakpad,
-#if defined(OS_MACOSX)
- switches::kDisableCoreAnimationPlugins,
- switches::kEnableSandboxLogging,
-#endif
+ switches::kDisableDirectNPAPIRequests,
switches::kEnableStatsTable,
switches::kFullMemoryCrashReport,
-#if defined(OS_WIN)
- switches::kHighDPISupport,
-#endif
switches::kLoggingLevel,
switches::kLogPluginMessages,
switches::kNoSandbox,
switches::kTestSandbox,
switches::kTraceStartup,
switches::kUseGL,
+#if defined(OS_MACOSX)
+ switches::kDisableCoreAnimationPlugins,
+ switches::kEnableSandboxLogging,
+#endif
+#if defined(OS_WIN)
+ switches::kHighDPISupport,
+#endif
};
cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames,
IPC_MESSAGE_HANDLER(PluginProcessHostMsg_PluginWindowDestroyed,
OnPluginWindowDestroyed)
#endif
-#if defined(TOOLKIT_GTK)
- IPC_MESSAGE_HANDLER(PluginProcessHostMsg_MapNativeViewId,
- OnMapNativeViewId)
-#endif
#if defined(OS_MACOSX)
IPC_MESSAGE_HANDLER(PluginProcessHostMsg_PluginSelectWindow,
OnPluginSelectWindow)