OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/extensions/api/system_display/system_display_api.h" | 5 #include "chrome/browser/extensions/api/system_display/system_display_api.h" |
6 | 6 |
7 #include "base/debug/leak_annotations.h" | 7 #include "base/debug/leak_annotations.h" |
8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
9 #include "chrome/browser/extensions/api/system_display/display_info_provider.h" | 9 #include "chrome/browser/extensions/api/system_display/display_info_provider.h" |
10 #include "chrome/browser/extensions/extension_apitest.h" | 10 #include "chrome/browser/extensions/extension_apitest.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 virtual int GetNumDisplays() const OVERRIDE { | 84 virtual int GetNumDisplays() const OVERRIDE { |
85 return displays_.size(); | 85 return displays_.size(); |
86 } | 86 } |
87 virtual std::vector<gfx::Display> GetAllDisplays() const OVERRIDE { | 87 virtual std::vector<gfx::Display> GetAllDisplays() const OVERRIDE { |
88 return displays_; | 88 return displays_; |
89 } | 89 } |
90 virtual gfx::Display GetDisplayNearestWindow( | 90 virtual gfx::Display GetDisplayNearestWindow( |
91 gfx::NativeView window) const OVERRIDE { | 91 gfx::NativeView window) const OVERRIDE { |
92 return gfx::Display(0); | 92 return gfx::Display(0); |
93 } | 93 } |
| 94 virtual bool GetDisplayColorProfile(gfx::NativeView window, |
| 95 std::vector<char>* color_profile) const OVERRIDE { |
| 96 return false; |
| 97 } |
94 virtual gfx::Display GetDisplayNearestPoint( | 98 virtual gfx::Display GetDisplayNearestPoint( |
95 const gfx::Point& point) const OVERRIDE { | 99 const gfx::Point& point) const OVERRIDE { |
96 return gfx::Display(0); | 100 return gfx::Display(0); |
97 } | 101 } |
98 virtual gfx::Display GetDisplayMatching( | 102 virtual gfx::Display GetDisplayMatching( |
99 const gfx::Rect& match_rect) const OVERRIDE { | 103 const gfx::Rect& match_rect) const OVERRIDE { |
100 return gfx::Display(0); | 104 return gfx::Display(0); |
101 } | 105 } |
102 virtual gfx::Display GetPrimaryDisplay() const OVERRIDE { | 106 virtual gfx::Display GetPrimaryDisplay() const OVERRIDE { |
103 return displays_[0]; | 107 return displays_[0]; |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 EXPECT_EQ(1, utils::GetInteger(overscan, "left")); | 299 EXPECT_EQ(1, utils::GetInteger(overscan, "left")); |
296 EXPECT_EQ(2, utils::GetInteger(overscan, "top")); | 300 EXPECT_EQ(2, utils::GetInteger(overscan, "top")); |
297 EXPECT_EQ(3, utils::GetInteger(overscan, "right")); | 301 EXPECT_EQ(3, utils::GetInteger(overscan, "right")); |
298 EXPECT_EQ(4, utils::GetInteger(overscan, "bottom")); | 302 EXPECT_EQ(4, utils::GetInteger(overscan, "bottom")); |
299 | 303 |
300 EXPECT_EQ("display_id", provider_->GetSetInfoDisplayId()); | 304 EXPECT_EQ("display_id", provider_->GetSetInfoDisplayId()); |
301 } | 305 } |
302 #endif // defined(OS_CHROMEOS) | 306 #endif // defined(OS_CHROMEOS) |
303 | 307 |
304 } // namespace extensions | 308 } // namespace extensions |
OLD | NEW |