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 "chrome/browser/extensions/display_info_provider_aura.h" | 5 #include "chrome/browser/extensions/display_info_provider_aura.h" |
6 | 6 |
| 7 #include "ui/gfx/screen.h" |
| 8 |
7 namespace extensions { | 9 namespace extensions { |
8 | 10 |
9 DisplayInfoProviderAura::DisplayInfoProviderAura() { | 11 DisplayInfoProviderAura::DisplayInfoProviderAura() { |
10 } | 12 } |
11 | 13 |
12 DisplayInfoProviderAura::~DisplayInfoProviderAura() { | 14 DisplayInfoProviderAura::~DisplayInfoProviderAura() { |
13 } | 15 } |
14 | 16 |
15 bool DisplayInfoProviderAura::SetInfo( | 17 bool DisplayInfoProviderAura::SetInfo( |
16 const std::string& display_id, | 18 const std::string& display_id, |
17 const core_api::system_display::DisplayProperties& info, | 19 const core_api::system_display::DisplayProperties& info, |
18 std::string* error) { | 20 std::string* error) { |
19 *error = "Not implemented"; | 21 *error = "Not implemented"; |
20 return false; | 22 return false; |
21 } | 23 } |
22 | 24 |
23 void DisplayInfoProviderAura::UpdateDisplayUnitInfoForPlatform( | 25 void DisplayInfoProviderAura::UpdateDisplayUnitInfoForPlatform( |
24 const gfx::Display& display, | 26 const gfx::Display& display, |
25 extensions::core_api::system_display::DisplayUnitInfo* unit) { | 27 extensions::core_api::system_display::DisplayUnitInfo* unit) { |
26 NOTIMPLEMENTED(); | 28 NOTIMPLEMENTED(); |
27 } | 29 } |
28 | 30 |
29 gfx::Screen* DisplayInfoProviderAura::GetActiveScreen() { | 31 gfx::Screen* DisplayInfoProviderAura::GetActiveScreen() { |
30 return NULL; | 32 return gfx::Screen::GetNativeScreen(); |
31 } | 33 } |
32 | 34 |
33 // static | 35 // static |
34 DisplayInfoProvider* DisplayInfoProvider::Create() { | 36 DisplayInfoProvider* DisplayInfoProvider::Create() { |
35 return new DisplayInfoProviderAura(); | 37 return new DisplayInfoProviderAura(); |
36 } | 38 } |
37 | 39 |
38 } // namespace extensions | 40 } // namespace extensions |
OLD | NEW |