OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 ASH_DISPLAY_SCREEN_ASH_H_ | 5 #ifndef ASH_DISPLAY_SCREEN_ASH_H_ |
6 #define ASH_DISPLAY_SCREEN_ASH_H_ | 6 #define ASH_DISPLAY_SCREEN_ASH_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 public: | 28 public: |
29 ScreenAsh(); | 29 ScreenAsh(); |
30 ~ScreenAsh() override; | 30 ~ScreenAsh() override; |
31 | 31 |
32 // display::Screen overrides: | 32 // display::Screen overrides: |
33 gfx::Point GetCursorScreenPoint() override; | 33 gfx::Point GetCursorScreenPoint() override; |
34 bool IsWindowUnderCursor(gfx::NativeWindow window) override; | 34 bool IsWindowUnderCursor(gfx::NativeWindow window) override; |
35 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override; | 35 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override; |
36 int GetNumDisplays() const override; | 36 int GetNumDisplays() const override; |
37 std::vector<display::Display> GetAllDisplays() const override; | 37 std::vector<display::Display> GetAllDisplays() const override; |
38 display::Display GetDisplayNearestWindow(gfx::NativeView view) const override; | 38 display::Display GetDisplayNearestWindow( |
| 39 const gfx::NativeView view) const override; |
39 display::Display GetDisplayNearestPoint( | 40 display::Display GetDisplayNearestPoint( |
40 const gfx::Point& point) const override; | 41 const gfx::Point& point) const override; |
41 display::Display GetDisplayMatching( | 42 display::Display GetDisplayMatching( |
42 const gfx::Rect& match_rect) const override; | 43 const gfx::Rect& match_rect) const override; |
43 display::Display GetPrimaryDisplay() const override; | 44 display::Display GetPrimaryDisplay() const override; |
44 void AddObserver(display::DisplayObserver* observer) override; | 45 void AddObserver(display::DisplayObserver* observer) override; |
45 void RemoveObserver(display::DisplayObserver* observer) override; | 46 void RemoveObserver(display::DisplayObserver* observer) override; |
46 | 47 |
47 // CreateDisplayManager with a ScreenAsh instance. | 48 // CreateDisplayManager with a ScreenAsh instance. |
48 static display::DisplayManager* CreateDisplayManager(); | 49 static display::DisplayManager* CreateDisplayManager(); |
49 | 50 |
50 // Create a screen instance to be used during shutdown. | 51 // Create a screen instance to be used during shutdown. |
51 static void CreateScreenForShutdown(); | 52 static void CreateScreenForShutdown(); |
52 | 53 |
53 private: | 54 private: |
54 DISALLOW_COPY_AND_ASSIGN(ScreenAsh); | 55 DISALLOW_COPY_AND_ASSIGN(ScreenAsh); |
55 }; | 56 }; |
56 | 57 |
57 } // namespace ash | 58 } // namespace ash |
58 | 59 |
59 #endif // ASH_DISPLAY_SCREEN_ASH_H_ | 60 #endif // ASH_DISPLAY_SCREEN_ASH_H_ |
OLD | NEW |