OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 MOJO_EXAMPLES_AURA_DEMO_DEMO_SCREEN_H_ | 5 #ifndef MOJO_EXAMPLES_AURA_DEMO_DEMO_SCREEN_H_ |
6 #define MOJO_EXAMPLES_AURA_DEMO_DEMO_SCREEN_H_ | 6 #define MOJO_EXAMPLES_AURA_DEMO_DEMO_SCREEN_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "ui/gfx/display.h" | 9 #include "ui/gfx/display.h" |
10 #include "ui/gfx/screen.h" | 10 #include "ui/gfx/screen.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 // gfx::Screen overrides: | 27 // gfx::Screen overrides: |
28 virtual bool IsDIPEnabled() OVERRIDE; | 28 virtual bool IsDIPEnabled() OVERRIDE; |
29 virtual gfx::Point GetCursorScreenPoint() OVERRIDE; | 29 virtual gfx::Point GetCursorScreenPoint() OVERRIDE; |
30 virtual gfx::NativeWindow GetWindowUnderCursor() OVERRIDE; | 30 virtual gfx::NativeWindow GetWindowUnderCursor() OVERRIDE; |
31 virtual gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) | 31 virtual gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) |
32 OVERRIDE; | 32 OVERRIDE; |
33 virtual int GetNumDisplays() const OVERRIDE; | 33 virtual int GetNumDisplays() const OVERRIDE; |
34 virtual std::vector<gfx::Display> GetAllDisplays() const OVERRIDE; | 34 virtual std::vector<gfx::Display> GetAllDisplays() const OVERRIDE; |
35 virtual gfx::Display GetDisplayNearestWindow( | 35 virtual gfx::Display GetDisplayNearestWindow( |
36 gfx::NativeView view) const OVERRIDE; | 36 gfx::NativeView view) const OVERRIDE; |
| 37 virtual bool GetDisplayColorProfile( |
| 38 gfx::NativeView view, std::vector<char>* color_profile) const OVERRIDE; |
37 virtual gfx::Display GetDisplayNearestPoint( | 39 virtual gfx::Display GetDisplayNearestPoint( |
38 const gfx::Point& point) const OVERRIDE; | 40 const gfx::Point& point) const OVERRIDE; |
39 virtual gfx::Display GetDisplayMatching( | 41 virtual gfx::Display GetDisplayMatching( |
40 const gfx::Rect& match_rect) const OVERRIDE; | 42 const gfx::Rect& match_rect) const OVERRIDE; |
41 virtual gfx::Display GetPrimaryDisplay() const OVERRIDE; | 43 virtual gfx::Display GetPrimaryDisplay() const OVERRIDE; |
42 virtual void AddObserver(gfx::DisplayObserver* observer) OVERRIDE; | 44 virtual void AddObserver(gfx::DisplayObserver* observer) OVERRIDE; |
43 virtual void RemoveObserver(gfx::DisplayObserver* observer) OVERRIDE; | 45 virtual void RemoveObserver(gfx::DisplayObserver* observer) OVERRIDE; |
44 | 46 |
45 private: | 47 private: |
46 explicit DemoScreen(const gfx::Rect& screen_bounds); | 48 explicit DemoScreen(const gfx::Rect& screen_bounds); |
47 | 49 |
48 gfx::Display display_; | 50 gfx::Display display_; |
49 | 51 |
50 DISALLOW_COPY_AND_ASSIGN(DemoScreen); | 52 DISALLOW_COPY_AND_ASSIGN(DemoScreen); |
51 }; | 53 }; |
52 | 54 |
53 } // namespace examples | 55 } // namespace examples |
54 } // namespace mojo | 56 } // namespace mojo |
55 | 57 |
56 #endif // MOJO_EXAMPLES_AURA_DEMO_DEMO_SCREEN_H_ | 58 #endif // MOJO_EXAMPLES_AURA_DEMO_DEMO_SCREEN_H_ |
OLD | NEW |