OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 | 4 |
5 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_SCREEN_H_ | 5 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_SCREEN_H_ |
6 #define HEADLESS_LIB_BROWSER_HEADLESS_SCREEN_H_ | 6 #define HEADLESS_LIB_BROWSER_HEADLESS_SCREEN_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "ui/aura/window_observer.h" | 10 #include "ui/aura/window_observer.h" |
11 #include "ui/display/display.h" | 11 #include "ui/display/display.h" |
12 #include "ui/display/screen_base.h" | 12 #include "ui/display/screen_base.h" |
13 | 13 |
14 namespace gfx { | 14 namespace gfx { |
15 class Insets; | 15 class Insets; |
16 class Rect; | 16 class Rect; |
17 class Transform; | 17 class Transform; |
18 } | 18 } |
19 | 19 |
20 namespace aura { | 20 namespace aura { |
21 class Window; | 21 class Window; |
22 class WindowParentingClient; | |
23 class WindowTreeHost; | 22 class WindowTreeHost; |
24 } | 23 } |
25 | 24 |
26 namespace headless { | 25 namespace headless { |
27 | 26 |
28 class HeadlessScreen : public display::ScreenBase, public aura::WindowObserver { | 27 class HeadlessScreen : public display::ScreenBase, public aura::WindowObserver { |
29 public: | 28 public: |
30 // Creates a display::Screen of the specified size (physical pixels). | 29 // Creates a display::Screen of the specified size (physical pixels). |
31 static HeadlessScreen* Create(const gfx::Size& size); | 30 static HeadlessScreen* Create(const gfx::Size& size); |
32 ~HeadlessScreen() override; | 31 ~HeadlessScreen() override; |
(...skipping 26 matching lines...) Expand all Loading... |
59 | 58 |
60 aura::WindowTreeHost* host_; | 59 aura::WindowTreeHost* host_; |
61 float ui_scale_; | 60 float ui_scale_; |
62 | 61 |
63 DISALLOW_COPY_AND_ASSIGN(HeadlessScreen); | 62 DISALLOW_COPY_AND_ASSIGN(HeadlessScreen); |
64 }; | 63 }; |
65 | 64 |
66 } // namespace headless | 65 } // namespace headless |
67 | 66 |
68 #endif // HEADLESS_LIB_BROWSER_HEADLESS_SCREEN_H_ | 67 #endif // HEADLESS_LIB_BROWSER_HEADLESS_SCREEN_H_ |
OLD | NEW |