OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/ozone/common/native_display_delegate_ozone.h" | 5 #include "ui/ozone/common/native_display_delegate_ozone.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "ui/ozone/common/display_snapshot_proxy.h" | 8 #include "ui/ozone/common/display_snapshot_proxy.h" |
9 #include "ui/ozone/common/display_util.h" | 9 #include "ui/ozone/common/display_util.h" |
10 | 10 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 } | 49 } |
50 | 50 |
51 void NativeDisplayDelegateOzone::ForceDPMSOn() { | 51 void NativeDisplayDelegateOzone::ForceDPMSOn() { |
52 NOTIMPLEMENTED(); | 52 NOTIMPLEMENTED(); |
53 } | 53 } |
54 | 54 |
55 std::vector<ui::DisplaySnapshot*> NativeDisplayDelegateOzone::GetDisplays() { | 55 std::vector<ui::DisplaySnapshot*> NativeDisplayDelegateOzone::GetDisplays() { |
56 return displays_.get(); | 56 return displays_.get(); |
57 } | 57 } |
58 | 58 |
| 59 void NativeDisplayDelegateOzone::GetDisplays( |
| 60 const GetDisplaysCallback& callback) { |
| 61 callback.Run(GetDisplays()); |
| 62 } |
| 63 |
59 void NativeDisplayDelegateOzone::AddMode(const ui::DisplaySnapshot& output, | 64 void NativeDisplayDelegateOzone::AddMode(const ui::DisplaySnapshot& output, |
60 const ui::DisplayMode* mode) { | 65 const ui::DisplayMode* mode) { |
61 NOTIMPLEMENTED(); | 66 NOTIMPLEMENTED(); |
62 } | 67 } |
63 | 68 |
64 bool NativeDisplayDelegateOzone::Configure(const ui::DisplaySnapshot& output, | 69 bool NativeDisplayDelegateOzone::Configure(const ui::DisplaySnapshot& output, |
65 const ui::DisplayMode* mode, | 70 const ui::DisplayMode* mode, |
66 const gfx::Point& origin) { | 71 const gfx::Point& origin) { |
67 NOTIMPLEMENTED(); | 72 NOTIMPLEMENTED(); |
68 return true; | 73 return true; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 void NativeDisplayDelegateOzone::AddObserver(NativeDisplayObserver* observer) { | 114 void NativeDisplayDelegateOzone::AddObserver(NativeDisplayObserver* observer) { |
110 NOTIMPLEMENTED(); | 115 NOTIMPLEMENTED(); |
111 } | 116 } |
112 | 117 |
113 void NativeDisplayDelegateOzone::RemoveObserver( | 118 void NativeDisplayDelegateOzone::RemoveObserver( |
114 NativeDisplayObserver* observer) { | 119 NativeDisplayObserver* observer) { |
115 NOTIMPLEMENTED(); | 120 NOTIMPLEMENTED(); |
116 } | 121 } |
117 | 122 |
118 } // namespace ui | 123 } // namespace ui |
OLD | NEW |