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

Side by Side Diff: content/shell/browser/shell.h

Issue 231733005: Delete the GTK+ port of Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remerge to ToT Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 #ifndef CONTENT_SHELL_BROWSER_SHELL_H_ 4 #ifndef CONTENT_SHELL_BROWSER_SHELL_H_
5 #define CONTENT_SHELL_BROWSER_SHELL_H_ 5 #define CONTENT_SHELL_BROWSER_SHELL_H_
6 6
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/callback_forward.h" 11 #include "base/callback_forward.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/strings/string_piece.h" 13 #include "base/strings/string_piece.h"
14 #include "build/build_config.h" 14 #include "build/build_config.h"
15 #include "content/public/browser/web_contents_delegate.h" 15 #include "content/public/browser/web_contents_delegate.h"
16 #include "content/public/browser/web_contents_observer.h" 16 #include "content/public/browser/web_contents_observer.h"
17 #include "ipc/ipc_channel.h" 17 #include "ipc/ipc_channel.h"
18 #include "ui/gfx/native_widget_types.h" 18 #include "ui/gfx/native_widget_types.h"
19 #include "ui/gfx/size.h" 19 #include "ui/gfx/size.h"
20 20
21 #if defined(TOOLKIT_GTK) 21 #if defined(OS_ANDROID)
22 #include <gtk/gtk.h>
23 #include "ui/base/gtk/gtk_signal.h"
24
25 typedef struct _GtkToolItem GtkToolItem;
26 #elif defined(OS_ANDROID)
27 #include "base/android/scoped_java_ref.h" 22 #include "base/android/scoped_java_ref.h"
28 #elif defined(USE_AURA) 23 #elif defined(USE_AURA)
29 #if defined(OS_CHROMEOS) 24 #if defined(OS_CHROMEOS)
30 namespace wm { 25 namespace wm {
31 class WMTestHelper; 26 class WMTestHelper;
32 } 27 }
33 #endif // defined(OS_CHROMEOS) 28 #endif // defined(OS_CHROMEOS)
34 namespace views { 29 namespace views {
35 class Widget; 30 class Widget;
36 class ViewsDelegate; 31 class ViewsDelegate;
(...skipping 27 matching lines...) Expand all
64 void LoadURLForFrame(const GURL& url, const std::string& frame_name); 59 void LoadURLForFrame(const GURL& url, const std::string& frame_name);
65 void GoBackOrForward(int offset); 60 void GoBackOrForward(int offset);
66 void Reload(); 61 void Reload();
67 void Stop(); 62 void Stop();
68 void UpdateNavigationControls(bool to_different_document); 63 void UpdateNavigationControls(bool to_different_document);
69 void Close(); 64 void Close();
70 void ShowDevTools(); 65 void ShowDevTools();
71 void ShowDevToolsForElementAt(int x, int y); 66 void ShowDevToolsForElementAt(int x, int y);
72 void ShowDevToolsForTest(const std::string& settings); 67 void ShowDevToolsForTest(const std::string& settings);
73 void CloseDevTools(); 68 void CloseDevTools();
74 #if defined(TOOLKIT_GTK) || defined(OS_MACOSX) 69 #if defined(OS_MACOSX)
75 // Resizes the web content view to the given dimensions. 70 // Resizes the web content view to the given dimensions.
76 void SizeTo(const gfx::Size& content_size); 71 void SizeTo(const gfx::Size& content_size);
77 #endif 72 #endif
78 73
79 // Do one time initialization at application startup. 74 // Do one time initialization at application startup.
80 static void Initialize(); 75 static void Initialize();
81 76
82 static Shell* CreateNewWindow(BrowserContext* browser_context, 77 static Shell* CreateNewWindow(BrowserContext* browser_context,
83 const GURL& url, 78 const GURL& url,
84 SiteInstance* site_instance, 79 SiteInstance* site_instance,
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 static base::Callback<void(Shell*)> shell_created_callback_; 279 static base::Callback<void(Shell*)> shell_created_callback_;
285 280
286 // True if the destructur of Shell should post a quit closure on the current 281 // True if the destructur of Shell should post a quit closure on the current
287 // message loop if the destructed Shell object was the last one. 282 // message loop if the destructed Shell object was the last one.
288 static bool quit_message_loop_; 283 static bool quit_message_loop_;
289 }; 284 };
290 285
291 } // namespace content 286 } // namespace content
292 287
293 #endif // CONTENT_SHELL_BROWSER_SHELL_H_ 288 #endif // CONTENT_SHELL_BROWSER_SHELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698