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 | |
5 #ifndef CONTENT_SHELL_SHELL_H_ | 4 #ifndef CONTENT_SHELL_SHELL_H_ |
6 #define CONTENT_SHELL_SHELL_H_ | 5 #define CONTENT_SHELL_SHELL_H_ |
7 | 6 |
8 | 7 |
9 #include <vector> | 8 #include <vector> |
10 | 9 |
11 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
12 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
13 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
14 #include "base/string_piece.h" | 13 #include "base/string_piece.h" |
15 #include "content/public/browser/notification_registrar.h" | 14 #include "content/public/browser/notification_registrar.h" |
16 #include "content/public/browser/notification_observer.h" | 15 #include "content/public/browser/notification_observer.h" |
17 #include "content/public/browser/web_contents_delegate.h" | 16 #include "content/public/browser/web_contents_delegate.h" |
18 #include "ipc/ipc_channel.h" | 17 #include "ipc/ipc_channel.h" |
19 #include "ui/gfx/native_widget_types.h" | 18 #include "ui/gfx/native_widget_types.h" |
20 #include "ui/gfx/size.h" | 19 #include "ui/gfx/size.h" |
21 | 20 |
22 #if defined(TOOLKIT_GTK) | 21 #if defined(TOOLKIT_GTK) |
23 #include <gtk/gtk.h> | 22 #include <gtk/gtk.h> |
24 #include "ui/base/gtk/gtk_signal.h" | 23 #include "ui/base/gtk/gtk_signal.h" |
25 | 24 |
26 typedef struct _GtkToolItem GtkToolItem; | 25 typedef struct _GtkToolItem GtkToolItem; |
27 #elif defined(OS_ANDROID) | 26 #elif defined(OS_ANDROID) |
28 #include "base/android/scoped_java_ref.h" | 27 #include "base/android/scoped_java_ref.h" |
29 #elif defined(USE_AURA) | 28 #elif defined(USE_AURA) |
| 29 #if defined(OS_CHROMEOS) |
| 30 namespace content { |
| 31 class MinimalAsh; |
| 32 } |
| 33 #endif |
30 namespace views { | 34 namespace views { |
31 class Widget; | 35 class Widget; |
32 class ViewsDelegate; | 36 class ViewsDelegate; |
33 } | 37 } |
34 namespace aura { | |
35 namespace client { | |
36 class StackingClient; | |
37 } | |
38 } | |
39 #endif | 38 #endif |
40 | 39 |
41 class GURL; | 40 class GURL; |
42 namespace content { | 41 namespace content { |
43 | 42 |
44 class BrowserContext; | 43 class BrowserContext; |
45 class ShellJavaScriptDialogCreator; | 44 class ShellJavaScriptDialogCreator; |
46 class SiteInstance; | 45 class SiteInstance; |
47 class WebContents; | 46 class WebContents; |
48 | 47 |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 GtkToolItem* stop_button_; | 229 GtkToolItem* stop_button_; |
231 | 230 |
232 GtkWidget* spinner_; | 231 GtkWidget* spinner_; |
233 GtkToolItem* spinner_item_; | 232 GtkToolItem* spinner_item_; |
234 | 233 |
235 int content_width_; | 234 int content_width_; |
236 int content_height_; | 235 int content_height_; |
237 #elif defined(OS_ANDROID) | 236 #elif defined(OS_ANDROID) |
238 base::android::ScopedJavaGlobalRef<jobject> java_object_; | 237 base::android::ScopedJavaGlobalRef<jobject> java_object_; |
239 #elif defined(USE_AURA) | 238 #elif defined(USE_AURA) |
240 static aura::client::StackingClient* stacking_client_; | 239 #if defined(OS_CHROMEOS) |
| 240 static content::MinimalAsh* minimal_ash_; |
| 241 #endif |
241 static views::ViewsDelegate* views_delegate_; | 242 static views::ViewsDelegate* views_delegate_; |
242 | 243 |
243 views::Widget* window_widget_; | 244 views::Widget* window_widget_; |
244 #endif | 245 #endif |
245 | 246 |
246 bool headless_; | 247 bool headless_; |
247 | 248 |
248 // A container of all the open windows. We use a vector so we can keep track | 249 // A container of all the open windows. We use a vector so we can keep track |
249 // of ordering. | 250 // of ordering. |
250 static std::vector<Shell*> windows_; | 251 static std::vector<Shell*> windows_; |
251 | 252 |
252 static base::Callback<void(Shell*)> shell_created_callback_; | 253 static base::Callback<void(Shell*)> shell_created_callback_; |
253 | 254 |
254 // True if the destructur of Shell should post a quit closure on the current | 255 // True if the destructur of Shell should post a quit closure on the current |
255 // message loop if the destructed Shell object was the last one. | 256 // message loop if the destructed Shell object was the last one. |
256 static bool quit_message_loop_; | 257 static bool quit_message_loop_; |
257 }; | 258 }; |
258 | 259 |
259 } // namespace content | 260 } // namespace content |
260 | 261 |
261 #endif // CONTENT_SHELL_SHELL_H_ | 262 #endif // CONTENT_SHELL_SHELL_H_ |
OLD | NEW |