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 "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 // gfx::Screen overrides: | 62 // gfx::Screen overrides: |
63 virtual bool IsDIPEnabled() OVERRIDE; | 63 virtual bool IsDIPEnabled() OVERRIDE; |
64 virtual gfx::Point GetCursorScreenPoint() OVERRIDE; | 64 virtual gfx::Point GetCursorScreenPoint() OVERRIDE; |
65 virtual gfx::NativeWindow GetWindowUnderCursor() OVERRIDE; | 65 virtual gfx::NativeWindow GetWindowUnderCursor() OVERRIDE; |
66 virtual gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) | 66 virtual gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) |
67 OVERRIDE; | 67 OVERRIDE; |
68 virtual int GetNumDisplays() const OVERRIDE; | 68 virtual int GetNumDisplays() const OVERRIDE; |
69 virtual std::vector<gfx::Display> GetAllDisplays() const OVERRIDE; | 69 virtual std::vector<gfx::Display> GetAllDisplays() const OVERRIDE; |
70 virtual gfx::Display GetDisplayNearestWindow( | 70 virtual gfx::Display GetDisplayNearestWindow( |
71 gfx::NativeView view) const OVERRIDE; | 71 gfx::NativeView view) const OVERRIDE; |
| 72 virtual bool GetDisplayColorProfile( |
| 73 gfx::NativeView view, std::vector<char>* color_profile) const OVERRIDE; |
72 virtual gfx::Display GetDisplayNearestPoint( | 74 virtual gfx::Display GetDisplayNearestPoint( |
73 const gfx::Point& point) const OVERRIDE; | 75 const gfx::Point& point) const OVERRIDE; |
74 virtual gfx::Display GetDisplayMatching( | 76 virtual gfx::Display GetDisplayMatching( |
75 const gfx::Rect& match_rect) const OVERRIDE; | 77 const gfx::Rect& match_rect) const OVERRIDE; |
76 virtual gfx::Display GetPrimaryDisplay() const OVERRIDE; | 78 virtual gfx::Display GetPrimaryDisplay() const OVERRIDE; |
77 virtual void AddObserver(gfx::DisplayObserver* observer) OVERRIDE; | 79 virtual void AddObserver(gfx::DisplayObserver* observer) OVERRIDE; |
78 virtual void RemoveObserver(gfx::DisplayObserver* observer) OVERRIDE; | 80 virtual void RemoveObserver(gfx::DisplayObserver* observer) OVERRIDE; |
79 | 81 |
80 private: | 82 private: |
81 friend class DisplayManager; | 83 friend class DisplayManager; |
82 | 84 |
83 // Notifies observers of display configuration changes. | 85 // Notifies observers of display configuration changes. |
84 void NotifyBoundsChanged(const gfx::Display& display); | 86 void NotifyBoundsChanged(const gfx::Display& display); |
85 void NotifyDisplayAdded(const gfx::Display& display); | 87 void NotifyDisplayAdded(const gfx::Display& display); |
86 void NotifyDisplayRemoved(const gfx::Display& display); | 88 void NotifyDisplayRemoved(const gfx::Display& display); |
87 | 89 |
88 // Creates a screen that can be used during shutdown. | 90 // Creates a screen that can be used during shutdown. |
89 // It simply has a copy of the displays. | 91 // It simply has a copy of the displays. |
90 gfx::Screen* CloneForShutdown(); | 92 gfx::Screen* CloneForShutdown(); |
91 | 93 |
92 ObserverList<gfx::DisplayObserver> observers_; | 94 ObserverList<gfx::DisplayObserver> observers_; |
93 | 95 |
94 DISALLOW_COPY_AND_ASSIGN(ScreenAsh); | 96 DISALLOW_COPY_AND_ASSIGN(ScreenAsh); |
95 }; | 97 }; |
96 | 98 |
97 } // namespace ash | 99 } // namespace ash |
98 | 100 |
99 #endif // ASH_DISPLAY_SCREEN_ASH_H_ | 101 #endif // ASH_DISPLAY_SCREEN_ASH_H_ |
OLD | NEW |