Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: content/shell/browser/shell.h

Issue 1185173003: Add support for DisplayConfigurator for content_shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add-ozone-platform-flags
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/shell/DEPS ('k') | content/shell/browser/shell_views.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/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 ui {
29 class DisplayConfigurator;
30 }
28 namespace wm { 31 namespace wm {
29 class WMTestHelper; 32 class WMTestHelper;
30 } 33 }
31 #endif // defined(OS_CHROMEOS) 34 #endif // defined(OS_CHROMEOS)
32 namespace views { 35 namespace views {
33 class Widget; 36 class Widget;
34 class ViewsDelegate; 37 class ViewsDelegate;
35 } 38 }
36 #endif // defined(USE_AURA) 39 #endif // defined(USE_AURA)
37 40
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 gfx::NativeWindow window_; 228 gfx::NativeWindow window_;
226 gfx::NativeEditView url_edit_view_; 229 gfx::NativeEditView url_edit_view_;
227 230
228 gfx::Size content_size_; 231 gfx::Size content_size_;
229 232
230 #if defined(OS_ANDROID) 233 #if defined(OS_ANDROID)
231 base::android::ScopedJavaGlobalRef<jobject> java_object_; 234 base::android::ScopedJavaGlobalRef<jobject> java_object_;
232 #elif defined(USE_AURA) 235 #elif defined(USE_AURA)
233 #if defined(OS_CHROMEOS) 236 #if defined(OS_CHROMEOS)
234 static wm::WMTestHelper* wm_test_helper_; 237 static wm::WMTestHelper* wm_test_helper_;
238 static ui::DisplayConfigurator* display_configurator_;
235 static gfx::Screen* test_screen_; 239 static gfx::Screen* test_screen_;
236 #endif 240 #endif
237 #if defined(TOOLKIT_VIEWS) 241 #if defined(TOOLKIT_VIEWS)
238 static views::ViewsDelegate* views_delegate_; 242 static views::ViewsDelegate* views_delegate_;
239 243
240 views::Widget* window_widget_; 244 views::Widget* window_widget_;
241 #endif // defined(TOOLKIT_VIEWS) 245 #endif // defined(TOOLKIT_VIEWS)
242 static ShellPlatformDataAura* platform_; 246 static ShellPlatformDataAura* platform_;
243 #endif // defined(USE_AURA) 247 #endif // defined(USE_AURA)
244 248
245 bool headless_; 249 bool headless_;
246 250
247 // A container of all the open windows. We use a vector so we can keep track 251 // A container of all the open windows. We use a vector so we can keep track
248 // of ordering. 252 // of ordering.
249 static std::vector<Shell*> windows_; 253 static std::vector<Shell*> windows_;
250 254
251 static base::Callback<void(Shell*)> shell_created_callback_; 255 static base::Callback<void(Shell*)> shell_created_callback_;
252 256
253 // True if the destructur of Shell should post a quit closure on the current 257 // True if the destructur of Shell should post a quit closure on the current
254 // message loop if the destructed Shell object was the last one. 258 // message loop if the destructed Shell object was the last one.
255 static bool quit_message_loop_; 259 static bool quit_message_loop_;
256 }; 260 };
257 261
258 } // namespace content 262 } // namespace content
259 263
260 #endif // CONTENT_SHELL_BROWSER_SHELL_H_ 264 #endif // CONTENT_SHELL_BROWSER_SHELL_H_
OLDNEW
« no previous file with comments | « content/shell/DEPS ('k') | content/shell/browser/shell_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698