Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: ui/aura/test/test_screen.h

Issue 263643004: Teach gfx::Screen about color profiles (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mojo movers [sky]. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « mojo/aura/screen_mojo.cc ('k') | ui/aura/test/test_screen.cc » ('j') | ui/gfx/screen.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698