Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(828)

Unified Diff: content/shell/shell.h

Issue 10054038: Support WebView in ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/content_shell.gypi ('k') | content/shell/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell.h
===================================================================
--- content/shell/shell.h (revision 131874)
+++ content/shell/shell.h (working copy)
@@ -16,7 +16,7 @@
#include "content/public/browser/web_contents_observer.h"
#include "ui/gfx/native_widget_types.h"
-#if defined(OS_LINUX)
+#if defined(TOOLKIT_GTK)
#include <gtk/gtk.h>
#include "ui/base/gtk/gtk_signal.h"
@@ -107,7 +107,7 @@
// Sets whether the spinner is spinning.
void PlatformSetIsLoading(bool loading);
-#if defined(OS_WIN) || defined(OS_LINUX)
+#if (defined(OS_WIN) && !defined(USE_AURA)) || defined(TOOLKIT_GTK)
// Resizes the main window to the given dimensions.
void SizeTo(int width, int height);
#endif
@@ -132,11 +132,11 @@
const GURL& validated_url,
bool is_main_frame) OVERRIDE;
-#if defined(OS_WIN)
+#if defined(OS_WIN) && !defined(USE_AURA)
static ATOM RegisterWindowClass();
static LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
static LRESULT CALLBACK EditWndProc(HWND, UINT, WPARAM, LPARAM);
-#elif defined(OS_LINUX)
+#elif defined(TOOLKIT_GTK)
CHROMEGTK_CALLBACK_0(Shell, void, OnBackButtonClicked);
CHROMEGTK_CALLBACK_0(Shell, void, OnForwardButtonClicked);
CHROMEGTK_CALLBACK_0(Shell, void, OnReloadButtonClicked);
@@ -160,10 +160,10 @@
gfx::NativeWindow window_;
gfx::NativeEditView url_edit_view_;
-#if defined(OS_WIN)
+#if defined(OS_WIN) && !defined(USE_AURA)
WNDPROC default_edit_wnd_proc_;
static HINSTANCE instance_handle_;
-#elif defined(OS_LINUX)
+#elif defined(TOOLKIT_GTK)
GtkWidget* vbox_;
GtkToolItem* back_button_;
« no previous file with comments | « content/content_shell.gypi ('k') | content/shell/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698