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 #include "ui/gfx/screen.h" | 5 #include "ui/gfx/screen.h" |
6 | 6 |
7 #import <UIKit/UIKit.h> | 7 #import <UIKit/UIKit.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "ui/gfx/display.h" | 10 #include "ui/gfx/display.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 return std::vector<gfx::Display>(1, GetPrimaryDisplay()); | 46 return std::vector<gfx::Display>(1, GetPrimaryDisplay()); |
47 } | 47 } |
48 | 48 |
49 // Returns the display nearest the specified window. | 49 // Returns the display nearest the specified window. |
50 virtual gfx::Display GetDisplayNearestWindow( | 50 virtual gfx::Display GetDisplayNearestWindow( |
51 gfx::NativeView view) const OVERRIDE { | 51 gfx::NativeView view) const OVERRIDE { |
52 NOTIMPLEMENTED(); | 52 NOTIMPLEMENTED(); |
53 return gfx::Display(); | 53 return gfx::Display(); |
54 } | 54 } |
55 | 55 |
| 56 // Returns the ICC color profile of the display nearest the window. |
| 57 virtual bool GetDisplayColorProfile( |
| 58 gfx::NativeView view, std::vector<char>* color_profile) const OVERRIDE { |
| 59 // TODO(port): consider screen color profile support. |
| 60 return false; |
| 61 } |
| 62 |
56 // Returns the the display nearest the specified point. | 63 // Returns the the display nearest the specified point. |
57 virtual gfx::Display GetDisplayNearestPoint( | 64 virtual gfx::Display GetDisplayNearestPoint( |
58 const gfx::Point& point) const OVERRIDE { | 65 const gfx::Point& point) const OVERRIDE { |
59 NOTIMPLEMENTED(); | 66 NOTIMPLEMENTED(); |
60 return gfx::Display(); | 67 return gfx::Display(); |
61 } | 68 } |
62 | 69 |
63 // Returns the display that most closely intersects the provided bounds. | 70 // Returns the display that most closely intersects the provided bounds. |
64 virtual gfx::Display GetDisplayMatching( | 71 virtual gfx::Display GetDisplayMatching( |
65 const gfx::Rect& match_rect) const OVERRIDE { | 72 const gfx::Rect& match_rect) const OVERRIDE { |
(...skipping 21 matching lines...) Expand all Loading... |
87 | 94 |
88 } // namespace | 95 } // namespace |
89 | 96 |
90 namespace gfx { | 97 namespace gfx { |
91 | 98 |
92 Screen* CreateNativeScreen() { | 99 Screen* CreateNativeScreen() { |
93 return new ScreenIos; | 100 return new ScreenIos; |
94 } | 101 } |
95 | 102 |
96 } // namespace gfx | 103 } // namespace gfx |
OLD | NEW |