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