OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 4 |
5 #ifndef CONTENT_SHELL_SHELL_H_ | 5 #ifndef CONTENT_SHELL_SHELL_H_ |
6 #define CONTENT_SHELL_SHELL_H_ | 6 #define CONTENT_SHELL_SHELL_H_ |
7 | 7 |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/string_piece.h" | 13 #include "base/string_piece.h" |
14 #include "content/public/browser/notification_registrar.h" | 14 #include "content/public/browser/notification_registrar.h" |
15 #include "content/public/browser/notification_observer.h" | 15 #include "content/public/browser/notification_observer.h" |
16 #include "content/public/browser/web_contents_delegate.h" | 16 #include "content/public/browser/web_contents_delegate.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 | 19 |
20 #if defined(TOOLKIT_GTK) | 20 #if defined(TOOLKIT_GTK) |
21 #include <gtk/gtk.h> | 21 #include <gtk/gtk.h> |
22 #include "ui/base/gtk/gtk_signal.h" | 22 #include "ui/base/gtk/gtk_signal.h" |
23 | 23 |
24 typedef struct _GtkToolItem GtkToolItem; | 24 typedef struct _GtkToolItem GtkToolItem; |
25 #elif defined(OS_ANDROID) | 25 #elif defined(OS_ANDROID) |
26 #include "base/android/scoped_java_ref.h" | 26 #include "base/android/scoped_java_ref.h" |
27 #endif | 27 #endif |
28 | 28 |
29 class GURL; | 29 class GURL; |
30 class WebContents; | |
31 | |
32 namespace content { | 30 namespace content { |
33 | 31 |
34 class BrowserContext; | 32 class BrowserContext; |
35 class ShellJavaScriptDialogCreator; | 33 class ShellJavaScriptDialogCreator; |
36 class SiteInstance; | 34 class SiteInstance; |
| 35 class WebContents; |
37 | 36 |
38 // This represents one window of the Content Shell, i.e. all the UI including | 37 // This represents one window of the Content Shell, i.e. all the UI including |
39 // buttons and url bar, as well as the web content area. | 38 // buttons and url bar, as well as the web content area. |
40 class Shell : public WebContentsDelegate, | 39 class Shell : public WebContentsDelegate, |
41 public NotificationObserver { | 40 public NotificationObserver { |
42 public: | 41 public: |
43 virtual ~Shell(); | 42 virtual ~Shell(); |
44 | 43 |
45 void LoadURL(const GURL& url); | 44 void LoadURL(const GURL& url); |
46 void GoBackOrForward(int offset); | 45 void GoBackOrForward(int offset); |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 static std::vector<Shell*> windows_; | 202 static std::vector<Shell*> windows_; |
204 | 203 |
205 // True if the destructur of Shell should post a quit closure on the current | 204 // True if the destructur of Shell should post a quit closure on the current |
206 // message loop if the destructed Shell object was the last one. | 205 // message loop if the destructed Shell object was the last one. |
207 static bool quit_message_loop_; | 206 static bool quit_message_loop_; |
208 }; | 207 }; |
209 | 208 |
210 } // namespace content | 209 } // namespace content |
211 | 210 |
212 #endif // CONTENT_SHELL_SHELL_H_ | 211 #endif // CONTENT_SHELL_SHELL_H_ |
OLD | NEW |