Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(255)

Side by Side Diff: chrome/browser/extensions/display_info_provider_aura.cc

Issue 476103002: Make DisplayInfoProvider an interface (Closed) Base URL: git@github.com:tmpsantos/chromium.git@display_info
Patch Set: Addressed review comments 2 Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/api/system_display/display_info_provider.h" 5 #include "chrome/browser/extensions/display_info_provider_aura.h"
6 6
7 namespace extensions { 7 namespace extensions {
8 8
9 bool DisplayInfoProvider::SetInfo(const std::string& display_id, 9 DisplayInfoProviderAura::DisplayInfoProviderAura() {
10 }
11
12 DisplayInfoProviderAura::~DisplayInfoProviderAura() {
13 }
14
15 bool DisplayInfoProviderAura::SetInfo(
16 const std::string& display_id,
10 const api::system_display::DisplayProperties& info, 17 const api::system_display::DisplayProperties& info,
11 std::string* error) { 18 std::string* error) {
12 *error = "Not Implemented"; 19 *error = "Not implemented";
James Cook 2014/08/20 19:57:59 nice attention to detail
13 return false; 20 return false;
14 } 21 }
15 22
16 void DisplayInfoProvider::UpdateDisplayUnitInfoForPlatform( 23 void DisplayInfoProviderAura::UpdateDisplayUnitInfoForPlatform(
17 const gfx::Display& display, 24 const gfx::Display& display,
18 extensions::api::system_display::DisplayUnitInfo* unit) { 25 extensions::api::system_display::DisplayUnitInfo* unit) {
19 NOTIMPLEMENTED(); 26 NOTIMPLEMENTED();
20 } 27 }
21 28
29 // static
30 DisplayInfoProvider* DisplayInfoProvider::Create() {
31 return new DisplayInfoProviderAura();
32 }
33
22 } // namespace extensions 34 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698