| 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 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 } | 29 } |
| 30 | 30 |
| 31 namespace wm { | 31 namespace wm { |
| 32 class WMTestHelper; | 32 class WMTestHelper; |
| 33 } | 33 } |
| 34 #endif // defined(OS_CHROMEOS) | 34 #endif // defined(OS_CHROMEOS) |
| 35 namespace views { | 35 namespace views { |
| 36 class Widget; | 36 class Widget; |
| 37 class ViewsDelegate; | 37 class ViewsDelegate; |
| 38 } | 38 } |
| 39 namespace wm { |
| 40 class WMState; |
| 41 } |
| 39 #endif // defined(USE_AURA) | 42 #endif // defined(USE_AURA) |
| 40 | 43 |
| 41 class GURL; | 44 class GURL; |
| 42 namespace content { | 45 namespace content { |
| 43 | 46 |
| 44 #if defined(USE_AURA) | 47 #if defined(USE_AURA) |
| 45 class ShellPlatformDataAura; | 48 class ShellPlatformDataAura; |
| 46 #endif | 49 #endif |
| 47 | 50 |
| 48 class BrowserContext; | 51 class BrowserContext; |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 #endif | 249 #endif |
| 247 | 250 |
| 248 gfx::Size content_size_; | 251 gfx::Size content_size_; |
| 249 | 252 |
| 250 #if defined(OS_ANDROID) | 253 #if defined(OS_ANDROID) |
| 251 base::android::ScopedJavaGlobalRef<jobject> java_object_; | 254 base::android::ScopedJavaGlobalRef<jobject> java_object_; |
| 252 #elif defined(USE_AURA) | 255 #elif defined(USE_AURA) |
| 253 #if defined(OS_CHROMEOS) | 256 #if defined(OS_CHROMEOS) |
| 254 static wm::WMTestHelper* wm_test_helper_; | 257 static wm::WMTestHelper* wm_test_helper_; |
| 255 static display::Screen* test_screen_; | 258 static display::Screen* test_screen_; |
| 259 #else |
| 260 static wm::WMState* wm_state_; |
| 256 #endif | 261 #endif |
| 257 #if defined(TOOLKIT_VIEWS) | 262 #if defined(TOOLKIT_VIEWS) |
| 258 static views::ViewsDelegate* views_delegate_; | 263 static views::ViewsDelegate* views_delegate_; |
| 259 | 264 |
| 260 views::Widget* window_widget_; | 265 views::Widget* window_widget_; |
| 261 #endif // defined(TOOLKIT_VIEWS) | 266 #endif // defined(TOOLKIT_VIEWS) |
| 262 static ShellPlatformDataAura* platform_; | 267 static ShellPlatformDataAura* platform_; |
| 263 #endif // defined(USE_AURA) | 268 #endif // defined(USE_AURA) |
| 264 | 269 |
| 265 bool headless_; | 270 bool headless_; |
| 266 | 271 |
| 267 // A container of all the open windows. We use a vector so we can keep track | 272 // A container of all the open windows. We use a vector so we can keep track |
| 268 // of ordering. | 273 // of ordering. |
| 269 static std::vector<Shell*> windows_; | 274 static std::vector<Shell*> windows_; |
| 270 | 275 |
| 271 static base::Callback<void(Shell*)> shell_created_callback_; | 276 static base::Callback<void(Shell*)> shell_created_callback_; |
| 272 | 277 |
| 273 // True if the destructur of Shell should post a quit closure on the current | 278 // True if the destructur of Shell should post a quit closure on the current |
| 274 // message loop if the destructed Shell object was the last one. | 279 // message loop if the destructed Shell object was the last one. |
| 275 static bool quit_message_loop_; | 280 static bool quit_message_loop_; |
| 276 }; | 281 }; |
| 277 | 282 |
| 278 } // namespace content | 283 } // namespace content |
| 279 | 284 |
| 280 #endif // CONTENT_SHELL_BROWSER_SHELL_H_ | 285 #endif // CONTENT_SHELL_BROWSER_SHELL_H_ |
| OLD | NEW |