| OLD | NEW |
| 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(TOOLKIT_GTK) |
| 22 #include <gtk/gtk.h> | 22 #include <gtk/gtk.h> |
| 23 #include "ui/base/gtk/gtk_signal.h" | 23 #include "ui/base/gtk/gtk_signal.h" |
| 24 | 24 |
| 25 typedef struct _GtkToolItem GtkToolItem; | 25 typedef struct _GtkToolItem GtkToolItem; |
| 26 #elif defined(OS_ANDROID) | 26 #elif defined(OS_ANDROID) |
| 27 #include "base/android/scoped_java_ref.h" | 27 #include "base/android/scoped_java_ref.h" |
| 28 #elif defined(USE_AURA) | 28 #elif defined(USE_AURA) |
| 29 #if defined(OS_CHROMEOS) | 29 #if defined(OS_CHROMEOS) |
| 30 namespace shell { | 30 namespace wm { |
| 31 class MinimalShell; | 31 class MinimalShell; |
| 32 } // namespace shell | 32 } |
| 33 #endif // defined(OS_CHROMEOS) | 33 #endif // defined(OS_CHROMEOS) |
| 34 namespace views { | 34 namespace views { |
| 35 class Widget; | 35 class Widget; |
| 36 class ViewsDelegate; | 36 class ViewsDelegate; |
| 37 } // namespace views | 37 } |
| 38 #endif // defined(USE_AURA) | 38 #endif // defined(USE_AURA) |
| 39 | 39 |
| 40 class GURL; | 40 class GURL; |
| 41 namespace content { | 41 namespace content { |
| 42 | 42 |
| 43 #if defined(USE_AURA) | 43 #if defined(USE_AURA) |
| 44 class ShellAuraPlatformData; | 44 class ShellAuraPlatformData; |
| 45 #endif | 45 #endif |
| 46 | 46 |
| 47 class BrowserContext; | 47 class BrowserContext; |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 GtkToolItem* stop_button_; | 255 GtkToolItem* stop_button_; |
| 256 | 256 |
| 257 GtkWidget* spinner_; | 257 GtkWidget* spinner_; |
| 258 GtkToolItem* spinner_item_; | 258 GtkToolItem* spinner_item_; |
| 259 | 259 |
| 260 int ui_elements_height_; // height of menubar, toolbar, etc. | 260 int ui_elements_height_; // height of menubar, toolbar, etc. |
| 261 #elif defined(OS_ANDROID) | 261 #elif defined(OS_ANDROID) |
| 262 base::android::ScopedJavaGlobalRef<jobject> java_object_; | 262 base::android::ScopedJavaGlobalRef<jobject> java_object_; |
| 263 #elif defined(USE_AURA) | 263 #elif defined(USE_AURA) |
| 264 #if defined(OS_CHROMEOS) | 264 #if defined(OS_CHROMEOS) |
| 265 static shell::MinimalShell* minimal_shell_; | 265 static wm::MinimalShell* minimal_shell_; |
| 266 #endif | 266 #endif |
| 267 #if defined(TOOLKIT_VIEWS) | 267 #if defined(TOOLKIT_VIEWS) |
| 268 static views::ViewsDelegate* views_delegate_; | 268 static views::ViewsDelegate* views_delegate_; |
| 269 | 269 |
| 270 views::Widget* window_widget_; | 270 views::Widget* window_widget_; |
| 271 #else // defined(TOOLKIT_VIEWS) | 271 #else // defined(TOOLKIT_VIEWS) |
| 272 static ShellAuraPlatformData* platform_; | 272 static ShellAuraPlatformData* platform_; |
| 273 #endif // defined(TOOLKIT_VIEWS) | 273 #endif // defined(TOOLKIT_VIEWS) |
| 274 #endif | 274 #endif |
| 275 | 275 |
| 276 bool headless_; | 276 bool headless_; |
| 277 | 277 |
| 278 // A container of all the open windows. We use a vector so we can keep track | 278 // A container of all the open windows. We use a vector so we can keep track |
| 279 // of ordering. | 279 // of ordering. |
| 280 static std::vector<Shell*> windows_; | 280 static std::vector<Shell*> windows_; |
| 281 | 281 |
| 282 static base::Callback<void(Shell*)> shell_created_callback_; | 282 static base::Callback<void(Shell*)> shell_created_callback_; |
| 283 | 283 |
| 284 // True if the destructur of Shell should post a quit closure on the current | 284 // True if the destructur of Shell should post a quit closure on the current |
| 285 // message loop if the destructed Shell object was the last one. | 285 // message loop if the destructed Shell object was the last one. |
| 286 static bool quit_message_loop_; | 286 static bool quit_message_loop_; |
| 287 }; | 287 }; |
| 288 | 288 |
| 289 } // namespace content | 289 } // namespace content |
| 290 | 290 |
| 291 #endif // CONTENT_SHELL_BROWSER_SHELL_H_ | 291 #endif // CONTENT_SHELL_BROWSER_SHELL_H_ |
| OLD | NEW |