| 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> |
| 11 | 11 |
| 12 #include "base/callback_forward.h" | 12 #include "base/callback_forward.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/geometry/size.h" | 18 #include "ui/gfx/geometry/size.h" |
| 19 #include "ui/gfx/native_widget_types.h" | 19 #include "ui/gfx/native_widget_types.h" |
| 20 | 20 |
| 21 #if defined(OS_ANDROID) | 21 #if defined(OS_ANDROID) |
| 22 #include "base/android/scoped_java_ref.h" | 22 #include "base/android/scoped_java_ref.h" |
| 23 #elif defined(USE_AURA) | 23 #elif defined(USE_AURA) |
| 24 #if defined(OS_CHROMEOS) | 24 #if defined(OS_CHROMEOS) |
| 25 namespace gfx { | 25 namespace gfx { |
| 26 class Screen; | 26 class Screen; |
| 27 } | 27 } |
| 28 namespace display { |
| 29 using Screen = gfx::Screen; |
| 30 } |
| 31 |
| 28 namespace wm { | 32 namespace wm { |
| 29 class WMTestHelper; | 33 class WMTestHelper; |
| 30 } | 34 } |
| 31 #endif // defined(OS_CHROMEOS) | 35 #endif // defined(OS_CHROMEOS) |
| 32 namespace views { | 36 namespace views { |
| 33 class Widget; | 37 class Widget; |
| 34 class ViewsDelegate; | 38 class ViewsDelegate; |
| 35 } | 39 } |
| 36 #endif // defined(USE_AURA) | 40 #endif // defined(USE_AURA) |
| 37 | 41 |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 NSTextField* url_edit_view_; | 246 NSTextField* url_edit_view_; |
| 243 #endif | 247 #endif |
| 244 | 248 |
| 245 gfx::Size content_size_; | 249 gfx::Size content_size_; |
| 246 | 250 |
| 247 #if defined(OS_ANDROID) | 251 #if defined(OS_ANDROID) |
| 248 base::android::ScopedJavaGlobalRef<jobject> java_object_; | 252 base::android::ScopedJavaGlobalRef<jobject> java_object_; |
| 249 #elif defined(USE_AURA) | 253 #elif defined(USE_AURA) |
| 250 #if defined(OS_CHROMEOS) | 254 #if defined(OS_CHROMEOS) |
| 251 static wm::WMTestHelper* wm_test_helper_; | 255 static wm::WMTestHelper* wm_test_helper_; |
| 252 static gfx::Screen* test_screen_; | 256 static display::Screen* test_screen_; |
| 253 #endif | 257 #endif |
| 254 #if defined(TOOLKIT_VIEWS) | 258 #if defined(TOOLKIT_VIEWS) |
| 255 static views::ViewsDelegate* views_delegate_; | 259 static views::ViewsDelegate* views_delegate_; |
| 256 | 260 |
| 257 views::Widget* window_widget_; | 261 views::Widget* window_widget_; |
| 258 #endif // defined(TOOLKIT_VIEWS) | 262 #endif // defined(TOOLKIT_VIEWS) |
| 259 static ShellPlatformDataAura* platform_; | 263 static ShellPlatformDataAura* platform_; |
| 260 #endif // defined(USE_AURA) | 264 #endif // defined(USE_AURA) |
| 261 | 265 |
| 262 bool headless_; | 266 bool headless_; |
| 263 | 267 |
| 264 // A container of all the open windows. We use a vector so we can keep track | 268 // A container of all the open windows. We use a vector so we can keep track |
| 265 // of ordering. | 269 // of ordering. |
| 266 static std::vector<Shell*> windows_; | 270 static std::vector<Shell*> windows_; |
| 267 | 271 |
| 268 static base::Callback<void(Shell*)> shell_created_callback_; | 272 static base::Callback<void(Shell*)> shell_created_callback_; |
| 269 | 273 |
| 270 // True if the destructur of Shell should post a quit closure on the current | 274 // True if the destructur of Shell should post a quit closure on the current |
| 271 // message loop if the destructed Shell object was the last one. | 275 // message loop if the destructed Shell object was the last one. |
| 272 static bool quit_message_loop_; | 276 static bool quit_message_loop_; |
| 273 }; | 277 }; |
| 274 | 278 |
| 275 } // namespace content | 279 } // namespace content |
| 276 | 280 |
| 277 #endif // CONTENT_SHELL_BROWSER_SHELL_H_ | 281 #endif // CONTENT_SHELL_BROWSER_SHELL_H_ |
| OLD | NEW |