diff options
author | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-11 18:25:58 +0000 |
---|---|---|
committer | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-11 18:25:58 +0000 |
commit | c997bc4b4403eb48f7ed1bb76a5392f4232bbdd9 (patch) | |
tree | e13ce03df198d9548851dd8e8aa02da3d6a978da /content/shell/browser | |
parent | 54ba65aa8b7f842f125f704dfabb589559e9f60d (diff) | |
download | chromium_src-c997bc4b4403eb48f7ed1bb76a5392f4232bbdd9.zip chromium_src-c997bc4b4403eb48f7ed1bb76a5392f4232bbdd9.tar.gz chromium_src-c997bc4b4403eb48f7ed1bb76a5392f4232bbdd9.tar.bz2 |
Remove a bunch of TOOLKIT_GTK in content/ and gpu/, as well as NPAPI plugins on linux
BUG=297026
Review URL: https://codereview.chromium.org/234533002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263288 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell/browser')
6 files changed, 9 insertions, 39 deletions
diff --git a/content/shell/browser/shell.h b/content/shell/browser/shell.h index 4acffff4..8125262 100644 --- a/content/shell/browser/shell.h +++ b/content/shell/browser/shell.h @@ -212,24 +212,6 @@ class Shell : public WebContentsDelegate, void InnerShowDevTools(const std::string& settings); void OnDevToolsWebContentsDestroyed(); -#if defined(TOOLKIT_GTK) - CHROMEGTK_CALLBACK_0(Shell, void, OnBackButtonClicked); - CHROMEGTK_CALLBACK_0(Shell, void, OnForwardButtonClicked); - CHROMEGTK_CALLBACK_0(Shell, void, OnReloadButtonClicked); - CHROMEGTK_CALLBACK_0(Shell, void, OnStopButtonClicked); - CHROMEGTK_CALLBACK_0(Shell, void, OnURLEntryActivate); - CHROMEGTK_CALLBACK_0(Shell, gboolean, OnWindowDestroyed); - - CHROMEG_CALLBACK_3(Shell, gboolean, OnCloseWindowKeyPressed, GtkAccelGroup*, - GObject*, guint, GdkModifierType); - CHROMEG_CALLBACK_3(Shell, gboolean, OnNewWindowKeyPressed, GtkAccelGroup*, - GObject*, guint, GdkModifierType); - CHROMEG_CALLBACK_3(Shell, gboolean, OnHighlightURLView, GtkAccelGroup*, - GObject*, guint, GdkModifierType); - CHROMEG_CALLBACK_3(Shell, gboolean, OnReloadKeyPressed, GtkAccelGroup*, - GObject*, guint, GdkModifierType); -#endif - scoped_ptr<ShellJavaScriptDialogManager> dialog_manager_; scoped_ptr<WebContents> web_contents_; @@ -244,19 +226,7 @@ class Shell : public WebContentsDelegate, gfx::Size content_size_; -#if defined(TOOLKIT_GTK) - GtkWidget* vbox_; - - GtkToolItem* back_button_; - GtkToolItem* forward_button_; - GtkToolItem* reload_button_; - GtkToolItem* stop_button_; - - GtkWidget* spinner_; - GtkToolItem* spinner_item_; - - int ui_elements_height_; // height of menubar, toolbar, etc. -#elif defined(OS_ANDROID) +#if defined(OS_ANDROID) base::android::ScopedJavaGlobalRef<jobject> java_object_; #elif defined(USE_AURA) #if defined(OS_CHROMEOS) diff --git a/content/shell/browser/shell_javascript_dialog_manager.cc b/content/shell/browser/shell_javascript_dialog_manager.cc index 7f3b678..ef284e2 100644 --- a/content/shell/browser/shell_javascript_dialog_manager.cc +++ b/content/shell/browser/shell_javascript_dialog_manager.cc @@ -43,7 +43,7 @@ void ShellJavaScriptDialogManager::RunJavaScriptDialog( return; } -#if defined(OS_MACOSX) || defined(OS_WIN) || defined(TOOLKIT_GTK) +#if defined(OS_MACOSX) || defined(OS_WIN) *did_suppress_message = false; if (dialog_) { @@ -88,7 +88,7 @@ void ShellJavaScriptDialogManager::RunBeforeUnloadDialog( return; } -#if defined(OS_MACOSX) || defined(OS_WIN) || defined(TOOLKIT_GTK) +#if defined(OS_MACOSX) || defined(OS_WIN) if (dialog_) { // Seriously!? callback.Run(true, base::string16()); @@ -117,7 +117,7 @@ void ShellJavaScriptDialogManager::RunBeforeUnloadDialog( void ShellJavaScriptDialogManager::CancelActiveAndPendingDialogs( WebContents* web_contents) { -#if defined(OS_MACOSX) || defined(OS_WIN) || defined(TOOLKIT_GTK) +#if defined(OS_MACOSX) || defined(OS_WIN) if (dialog_) { dialog_->Cancel(); dialog_.reset(); @@ -132,7 +132,7 @@ void ShellJavaScriptDialogManager::WebContentsDestroyed( } void ShellJavaScriptDialogManager::DialogClosed(ShellJavaScriptDialog* dialog) { -#if defined(OS_MACOSX) || defined(OS_WIN) || defined(TOOLKIT_GTK) +#if defined(OS_MACOSX) || defined(OS_WIN) DCHECK_EQ(dialog, dialog_.get()); dialog_.reset(); #else diff --git a/content/shell/browser/shell_javascript_dialog_manager.h b/content/shell/browser/shell_javascript_dialog_manager.h index 5bcfb65..d60eebb 100644 --- a/content/shell/browser/shell_javascript_dialog_manager.h +++ b/content/shell/browser/shell_javascript_dialog_manager.h @@ -50,7 +50,7 @@ class ShellJavaScriptDialogManager : public JavaScriptDialogManager { } private: -#if defined(OS_MACOSX) || defined(OS_WIN) || defined(TOOLKIT_GTK) +#if defined(OS_MACOSX) || defined(OS_WIN) // The dialog being shown. No queueing. scoped_ptr<ShellJavaScriptDialog> dialog_; #else diff --git a/content/shell/browser/shell_login_dialog.cc b/content/shell/browser/shell_login_dialog.cc index b531b65..fe7da40 100644 --- a/content/shell/browser/shell_login_dialog.cc +++ b/content/shell/browser/shell_login_dialog.cc @@ -59,7 +59,7 @@ ShellLoginDialog::~ShellLoginDialog() { // referenced/dereferenced. } -#if !defined(OS_MACOSX) && !defined(TOOLKIT_GTK) +#if !defined(OS_MACOSX) // Bogus implementations for linking. They are never called because // ResourceDispatcherHostDelegate::CreateLoginDelegate returns NULL. // TODO: implement ShellLoginDialog for other platforms, drop this #if diff --git a/content/shell/browser/shell_resource_dispatcher_host_delegate.cc b/content/shell/browser/shell_resource_dispatcher_host_delegate.cc index b50e80c..8c901a6 100644 --- a/content/shell/browser/shell_resource_dispatcher_host_delegate.cc +++ b/content/shell/browser/shell_resource_dispatcher_host_delegate.cc @@ -28,7 +28,7 @@ ShellResourceDispatcherHostDelegate::CreateLoginDelegate( return NULL; } -#if !defined(OS_MACOSX) && !defined(TOOLKIT_GTK) +#if !defined(OS_MACOSX) // TODO: implement ShellLoginDialog for other platforms, drop this #if return NULL; #else diff --git a/content/shell/browser/webkit_test_controller.cc b/content/shell/browser/webkit_test_controller.cc index 4932e58..fe53946a 100644 --- a/content/shell/browser/webkit_test_controller.cc +++ b/content/shell/browser/webkit_test_controller.cc @@ -258,7 +258,7 @@ bool WebKitTestController::PrepareForLayoutTest( current_pid_ = base::kNullProcessId; main_window_->LoadURL(test_url); } else { -#if defined(TOOLKIT_GTK) || defined(OS_MACOSX) +#if defined(OS_MACOSX) // Shell::SizeTo is not implemented on all platforms. main_window_->SizeTo(initial_size_); #endif |