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

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

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 #include "ui/aura/test/test_screen.h" 5 #include "ui/aura/test/test_screen.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ui/aura/env.h" 8 #include "ui/aura/env.h"
9 #include "ui/aura/window.h" 9 #include "ui/aura/window.h"
10 #include "ui/aura/window_event_dispatcher.h" 10 #include "ui/aura/window_event_dispatcher.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 std::vector<gfx::Display> TestScreen::GetAllDisplays() const { 125 std::vector<gfx::Display> TestScreen::GetAllDisplays() const {
126 return std::vector<gfx::Display>(1, display_); 126 return std::vector<gfx::Display>(1, display_);
127 } 127 }
128 128
129 gfx::Display TestScreen::GetDisplayNearestWindow( 129 gfx::Display TestScreen::GetDisplayNearestWindow(
130 gfx::NativeWindow window) const { 130 gfx::NativeWindow window) const {
131 return display_; 131 return display_;
132 } 132 }
133 133
134 bool TestScreen::GetDisplayColorProfile(
135 gfx::NativeWindow window, std::vector<char>* color_profile) const {
136 return false;
137 }
138
134 gfx::Display TestScreen::GetDisplayNearestPoint(const gfx::Point& point) const { 139 gfx::Display TestScreen::GetDisplayNearestPoint(const gfx::Point& point) const {
135 return display_; 140 return display_;
136 } 141 }
137 142
138 gfx::Display TestScreen::GetDisplayMatching(const gfx::Rect& match_rect) const { 143 gfx::Display TestScreen::GetDisplayMatching(const gfx::Rect& match_rect) const {
139 return display_; 144 return display_;
140 } 145 }
141 146
142 gfx::Display TestScreen::GetPrimaryDisplay() const { 147 gfx::Display TestScreen::GetPrimaryDisplay() const {
143 return display_; 148 return display_;
144 } 149 }
145 150
146 void TestScreen::AddObserver(gfx::DisplayObserver* observer) { 151 void TestScreen::AddObserver(gfx::DisplayObserver* observer) {
147 } 152 }
148 153
149 void TestScreen::RemoveObserver(gfx::DisplayObserver* observer) { 154 void TestScreen::RemoveObserver(gfx::DisplayObserver* observer) {
150 } 155 }
151 156
152 TestScreen::TestScreen(const gfx::Rect& screen_bounds) 157 TestScreen::TestScreen(const gfx::Rect& screen_bounds)
153 : host_(NULL), 158 : host_(NULL),
154 ui_scale_(1.0f) { 159 ui_scale_(1.0f) {
155 static int64 synthesized_display_id = 2000; 160 static int64 synthesized_display_id = 2000;
156 display_.set_id(synthesized_display_id++); 161 display_.set_id(synthesized_display_id++);
157 display_.SetScaleAndBounds(1.0f, screen_bounds); 162 display_.SetScaleAndBounds(1.0f, screen_bounds);
158 } 163 }
159 164
160 } // namespace aura 165 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/test/test_screen.h ('k') | ui/gfx/screen.h » ('j') | ui/gfx/screen.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698