| 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 #elif defined(USE_AURA) |
| 28 namespace views { |
| 29 class Widget; |
| 30 class ViewsDelegate; |
| 31 } |
| 32 namespace aura { |
| 33 namespace client { |
| 34 class StackingClient; |
| 35 } |
| 36 } |
| 27 #endif | 37 #endif |
| 28 | 38 |
| 29 class GURL; | 39 class GURL; |
| 30 class WebContents; | 40 class WebContents; |
| 31 | 41 |
| 32 namespace content { | 42 namespace content { |
| 33 | 43 |
| 34 class BrowserContext; | 44 class BrowserContext; |
| 35 class ShellJavaScriptDialogCreator; | 45 class ShellJavaScriptDialogCreator; |
| 36 class SiteInstance; | 46 class SiteInstance; |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 GtkToolItem* reload_button_; | 199 GtkToolItem* reload_button_; |
| 190 GtkToolItem* stop_button_; | 200 GtkToolItem* stop_button_; |
| 191 | 201 |
| 192 GtkWidget* spinner_; | 202 GtkWidget* spinner_; |
| 193 GtkToolItem* spinner_item_; | 203 GtkToolItem* spinner_item_; |
| 194 | 204 |
| 195 int content_width_; | 205 int content_width_; |
| 196 int content_height_; | 206 int content_height_; |
| 197 #elif defined(OS_ANDROID) | 207 #elif defined(OS_ANDROID) |
| 198 base::android::ScopedJavaGlobalRef<jobject> java_object_; | 208 base::android::ScopedJavaGlobalRef<jobject> java_object_; |
| 209 #elif defined(USE_AURA) |
| 210 static aura::client::StackingClient* stacking_client_; |
| 211 static views::ViewsDelegate* views_delegate_; |
| 212 |
| 213 views::Widget* window_widget_; |
| 199 #endif | 214 #endif |
| 200 | 215 |
| 201 // A container of all the open windows. We use a vector so we can keep track | 216 // A container of all the open windows. We use a vector so we can keep track |
| 202 // of ordering. | 217 // of ordering. |
| 203 static std::vector<Shell*> windows_; | 218 static std::vector<Shell*> windows_; |
| 204 | 219 |
| 205 // True if the destructur of Shell should post a quit closure on the current | 220 // 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. | 221 // message loop if the destructed Shell object was the last one. |
| 207 static bool quit_message_loop_; | 222 static bool quit_message_loop_; |
| 208 }; | 223 }; |
| 209 | 224 |
| 210 } // namespace content | 225 } // namespace content |
| 211 | 226 |
| 212 #endif // CONTENT_SHELL_SHELL_H_ | 227 #endif // CONTENT_SHELL_SHELL_H_ |
| OLD | NEW |