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

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

Issue 1608053002: Remove now-unnecessary wrappers around gfx::Screen::GetScreen() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-5
Patch Set: cros Created 4 years, 11 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 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_mac.h" 5 #include "chrome/browser/extensions/display_info_provider_mac.h"
6 6
7 #include "ui/gfx/screen.h"
8
9 namespace extensions { 7 namespace extensions {
10 8
11 DisplayInfoProviderMac::DisplayInfoProviderMac() { 9 DisplayInfoProviderMac::DisplayInfoProviderMac() {
12 } 10 }
13 11
14 DisplayInfoProviderMac::~DisplayInfoProviderMac() { 12 DisplayInfoProviderMac::~DisplayInfoProviderMac() {
15 } 13 }
16 14
17 bool DisplayInfoProviderMac::SetInfo( 15 bool DisplayInfoProviderMac::SetInfo(
18 const std::string& display_id, 16 const std::string& display_id,
19 const api::system_display::DisplayProperties& info, 17 const api::system_display::DisplayProperties& info,
20 std::string* error) { 18 std::string* error) {
21 *error = "Not implemented"; 19 *error = "Not implemented";
22 return false; 20 return false;
23 } 21 }
24 22
25 void DisplayInfoProviderMac::UpdateDisplayUnitInfoForPlatform( 23 void DisplayInfoProviderMac::UpdateDisplayUnitInfoForPlatform(
26 const gfx::Display& display, 24 const gfx::Display& display,
27 extensions::api::system_display::DisplayUnitInfo* unit) { 25 extensions::api::system_display::DisplayUnitInfo* unit) {
28 static bool logged_once = false; 26 static bool logged_once = false;
29 if (!logged_once) { 27 if (!logged_once) {
30 NOTIMPLEMENTED(); 28 NOTIMPLEMENTED();
31 logged_once = true; 29 logged_once = true;
32 } 30 }
33 } 31 }
34 32
35 gfx::Screen* DisplayInfoProviderMac::GetActiveScreen() {
36 return gfx::Screen::GetScreen();
37 }
38
39 // static 33 // static
40 DisplayInfoProvider* DisplayInfoProvider::Create() { 34 DisplayInfoProvider* DisplayInfoProvider::Create() {
41 return new DisplayInfoProviderMac(); 35 return new DisplayInfoProviderMac();
42 } 36 }
43 37
44 } // namespace extensions 38 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/display_info_provider_mac.h ('k') | chrome/browser/extensions/display_info_provider_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698