| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_AURA_TEST_TEST_SCREEN_H_ | 5 #ifndef UI_AURA_TEST_TEST_SCREEN_H_ |
| 6 #define UI_AURA_TEST_TEST_SCREEN_H_ | 6 #define UI_AURA_TEST_TEST_SCREEN_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "ui/aura/window_observer.h" | 9 #include "ui/aura/window_observer.h" |
| 10 #include "ui/gfx/display.h" | 10 #include "ui/gfx/display.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 // gfx::Screen overrides: | 47 // gfx::Screen overrides: |
| 48 virtual bool IsDIPEnabled() OVERRIDE; | 48 virtual bool IsDIPEnabled() OVERRIDE; |
| 49 virtual gfx::Point GetCursorScreenPoint() OVERRIDE; | 49 virtual gfx::Point GetCursorScreenPoint() OVERRIDE; |
| 50 virtual gfx::NativeWindow GetWindowUnderCursor() OVERRIDE; | 50 virtual gfx::NativeWindow GetWindowUnderCursor() OVERRIDE; |
| 51 virtual gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) | 51 virtual gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) |
| 52 OVERRIDE; | 52 OVERRIDE; |
| 53 virtual int GetNumDisplays() const OVERRIDE; | 53 virtual int GetNumDisplays() const OVERRIDE; |
| 54 virtual std::vector<gfx::Display> GetAllDisplays() const OVERRIDE; | 54 virtual std::vector<gfx::Display> GetAllDisplays() const OVERRIDE; |
| 55 virtual gfx::Display GetDisplayNearestWindow( | 55 virtual gfx::Display GetDisplayNearestWindow( |
| 56 gfx::NativeView view) const OVERRIDE; | 56 gfx::NativeView view) const OVERRIDE; |
| 57 virtual bool GetDisplayColorProfile( |
| 58 gfx::NativeView view, std::vector<char>* color_profile) const OVERRIDE; |
| 57 virtual gfx::Display GetDisplayNearestPoint( | 59 virtual gfx::Display GetDisplayNearestPoint( |
| 58 const gfx::Point& point) const OVERRIDE; | 60 const gfx::Point& point) const OVERRIDE; |
| 59 virtual gfx::Display GetDisplayMatching( | 61 virtual gfx::Display GetDisplayMatching( |
| 60 const gfx::Rect& match_rect) const OVERRIDE; | 62 const gfx::Rect& match_rect) const OVERRIDE; |
| 61 virtual gfx::Display GetPrimaryDisplay() const OVERRIDE; | 63 virtual gfx::Display GetPrimaryDisplay() const OVERRIDE; |
| 62 virtual void AddObserver(gfx::DisplayObserver* observer) OVERRIDE; | 64 virtual void AddObserver(gfx::DisplayObserver* observer) OVERRIDE; |
| 63 virtual void RemoveObserver(gfx::DisplayObserver* observer) OVERRIDE; | 65 virtual void RemoveObserver(gfx::DisplayObserver* observer) OVERRIDE; |
| 64 | 66 |
| 65 private: | 67 private: |
| 66 explicit TestScreen(const gfx::Rect& screen_bounds); | 68 explicit TestScreen(const gfx::Rect& screen_bounds); |
| 67 | 69 |
| 68 aura::WindowTreeHost* host_; | 70 aura::WindowTreeHost* host_; |
| 69 | 71 |
| 70 gfx::Display display_; | 72 gfx::Display display_; |
| 71 | 73 |
| 72 float ui_scale_; | 74 float ui_scale_; |
| 73 | 75 |
| 74 DISALLOW_COPY_AND_ASSIGN(TestScreen); | 76 DISALLOW_COPY_AND_ASSIGN(TestScreen); |
| 75 }; | 77 }; |
| 76 | 78 |
| 77 } // namespace aura | 79 } // namespace aura |
| 78 | 80 |
| 79 #endif // UI_AURA_TEST_TEST_SCREEN_H_ | 81 #endif // UI_AURA_TEST_TEST_SCREEN_H_ |
| OLD | NEW |