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