| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 } | 45 } |
| 46 | 46 |
| 47 void NativeDisplayDelegateOzone::SetBackgroundColor(uint32_t color_argb) { | 47 void NativeDisplayDelegateOzone::SetBackgroundColor(uint32_t color_argb) { |
| 48 NOTIMPLEMENTED(); | 48 NOTIMPLEMENTED(); |
| 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() { | |
| 56 return displays_.get(); | |
| 57 } | |
| 58 | |
| 59 void NativeDisplayDelegateOzone::GetDisplays( | 55 void NativeDisplayDelegateOzone::GetDisplays( |
| 60 const GetDisplaysCallback& callback) { | 56 const GetDisplaysCallback& callback) { |
| 61 callback.Run(GetDisplays()); | 57 callback.Run(displays_.get()); |
| 62 } | 58 } |
| 63 | 59 |
| 64 void NativeDisplayDelegateOzone::AddMode(const ui::DisplaySnapshot& output, | 60 void NativeDisplayDelegateOzone::AddMode(const ui::DisplaySnapshot& output, |
| 65 const ui::DisplayMode* mode) { | 61 const ui::DisplayMode* mode) { |
| 66 NOTIMPLEMENTED(); | 62 NOTIMPLEMENTED(); |
| 67 } | 63 } |
| 68 | 64 |
| 69 bool NativeDisplayDelegateOzone::Configure(const ui::DisplaySnapshot& output, | |
| 70 const ui::DisplayMode* mode, | |
| 71 const gfx::Point& origin) { | |
| 72 NOTIMPLEMENTED(); | |
| 73 return true; | |
| 74 } | |
| 75 | |
| 76 void NativeDisplayDelegateOzone::Configure(const ui::DisplaySnapshot& output, | 65 void NativeDisplayDelegateOzone::Configure(const ui::DisplaySnapshot& output, |
| 77 const ui::DisplayMode* mode, | 66 const ui::DisplayMode* mode, |
| 78 const gfx::Point& origin, | 67 const gfx::Point& origin, |
| 79 const ConfigureCallback& callback) { | 68 const ConfigureCallback& callback) { |
| 80 NOTIMPLEMENTED(); | 69 NOTIMPLEMENTED(); |
| 81 callback.Run(true); | 70 callback.Run(true); |
| 82 } | 71 } |
| 83 | 72 |
| 84 void NativeDisplayDelegateOzone::CreateFrameBuffer(const gfx::Size& size) { | 73 void NativeDisplayDelegateOzone::CreateFrameBuffer(const gfx::Size& size) { |
| 85 NOTIMPLEMENTED(); | 74 NOTIMPLEMENTED(); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 114 void NativeDisplayDelegateOzone::AddObserver(NativeDisplayObserver* observer) { | 103 void NativeDisplayDelegateOzone::AddObserver(NativeDisplayObserver* observer) { |
| 115 NOTIMPLEMENTED(); | 104 NOTIMPLEMENTED(); |
| 116 } | 105 } |
| 117 | 106 |
| 118 void NativeDisplayDelegateOzone::RemoveObserver( | 107 void NativeDisplayDelegateOzone::RemoveObserver( |
| 119 NativeDisplayObserver* observer) { | 108 NativeDisplayObserver* observer) { |
| 120 NOTIMPLEMENTED(); | 109 NOTIMPLEMENTED(); |
| 121 } | 110 } |
| 122 | 111 |
| 123 } // namespace ui | 112 } // namespace ui |
| OLD | NEW |