| 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" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #endif // defined(OS_CHROMEOS) | 32 #endif // defined(OS_CHROMEOS) |
| 33 namespace views { | 33 namespace views { |
| 34 class Widget; | 34 class Widget; |
| 35 class ViewsDelegate; | 35 class ViewsDelegate; |
| 36 } // namespace views | 36 } // namespace views |
| 37 #endif // defined(USE_AURA) | 37 #endif // defined(USE_AURA) |
| 38 | 38 |
| 39 class GURL; | 39 class GURL; |
| 40 namespace content { | 40 namespace content { |
| 41 | 41 |
| 42 #if defined(USE_AURA) |
| 43 class ShellAuraPlatformData; |
| 44 #endif |
| 45 |
| 42 class BrowserContext; | 46 class BrowserContext; |
| 43 class ShellDevToolsFrontend; | 47 class ShellDevToolsFrontend; |
| 44 class ShellJavaScriptDialogManager; | 48 class ShellJavaScriptDialogManager; |
| 45 class SiteInstance; | 49 class SiteInstance; |
| 46 class WebContents; | 50 class WebContents; |
| 47 | 51 |
| 48 // This represents one window of the Content Shell, i.e. all the UI including | 52 // This represents one window of the Content Shell, i.e. all the UI including |
| 49 // buttons and url bar, as well as the web content area. | 53 // buttons and url bar, as well as the web content area. |
| 50 class Shell : public WebContentsDelegate, | 54 class Shell : public WebContentsDelegate, |
| 51 public WebContentsObserver { | 55 public WebContentsObserver { |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 | 256 |
| 253 int content_width_; | 257 int content_width_; |
| 254 int content_height_; | 258 int content_height_; |
| 255 int ui_elements_height_; // height of menubar, toolbar, etc. | 259 int ui_elements_height_; // height of menubar, toolbar, etc. |
| 256 #elif defined(OS_ANDROID) | 260 #elif defined(OS_ANDROID) |
| 257 base::android::ScopedJavaGlobalRef<jobject> java_object_; | 261 base::android::ScopedJavaGlobalRef<jobject> java_object_; |
| 258 #elif defined(USE_AURA) | 262 #elif defined(USE_AURA) |
| 259 #if defined(OS_CHROMEOS) | 263 #if defined(OS_CHROMEOS) |
| 260 static shell::MinimalShell* minimal_shell_; | 264 static shell::MinimalShell* minimal_shell_; |
| 261 #endif | 265 #endif |
| 266 #if defined(TOOLKIT_VIEWS) |
| 262 static views::ViewsDelegate* views_delegate_; | 267 static views::ViewsDelegate* views_delegate_; |
| 263 | 268 |
| 264 views::Widget* window_widget_; | 269 views::Widget* window_widget_; |
| 270 #else // defined(TOOLKIT_VIEWS) |
| 271 scoped_ptr<ShellAuraPlatformData> platform_; |
| 272 #endif // defined(TOOLKIT_VIEWS) |
| 265 #elif defined(OS_MACOSX) | 273 #elif defined(OS_MACOSX) |
| 266 int content_width_; | 274 int content_width_; |
| 267 int content_height_; | 275 int content_height_; |
| 268 #endif | 276 #endif |
| 269 | 277 |
| 270 bool headless_; | 278 bool headless_; |
| 271 | 279 |
| 272 // A container of all the open windows. We use a vector so we can keep track | 280 // A container of all the open windows. We use a vector so we can keep track |
| 273 // of ordering. | 281 // of ordering. |
| 274 static std::vector<Shell*> windows_; | 282 static std::vector<Shell*> windows_; |
| 275 | 283 |
| 276 static base::Callback<void(Shell*)> shell_created_callback_; | 284 static base::Callback<void(Shell*)> shell_created_callback_; |
| 277 | 285 |
| 278 // True if the destructur of Shell should post a quit closure on the current | 286 // True if the destructur of Shell should post a quit closure on the current |
| 279 // message loop if the destructed Shell object was the last one. | 287 // message loop if the destructed Shell object was the last one. |
| 280 static bool quit_message_loop_; | 288 static bool quit_message_loop_; |
| 281 }; | 289 }; |
| 282 | 290 |
| 283 } // namespace content | 291 } // namespace content |
| 284 | 292 |
| 285 #endif // CONTENT_SHELL_BROWSER_SHELL_H_ | 293 #endif // CONTENT_SHELL_BROWSER_SHELL_H_ |
| OLD | NEW |