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

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

Issue 1608733002: Remove ui/gfx/screen_type_delegate.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-4
Patch Set: GetNativeScreen 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_aura.h" 5 #include "chrome/browser/extensions/display_info_provider_aura.h"
6 6
7 #include "ui/gfx/screen.h" 7 #include "ui/gfx/screen.h"
8 8
9 namespace extensions { 9 namespace extensions {
10 10
(...skipping 14 matching lines...) Expand all
25 void DisplayInfoProviderAura::UpdateDisplayUnitInfoForPlatform( 25 void DisplayInfoProviderAura::UpdateDisplayUnitInfoForPlatform(
26 const gfx::Display& display, 26 const gfx::Display& display,
27 extensions::api::system_display::DisplayUnitInfo* unit) { 27 extensions::api::system_display::DisplayUnitInfo* unit) {
28 static bool logged_once = false; 28 static bool logged_once = false;
29 if (!logged_once) { 29 if (!logged_once) {
30 NOTIMPLEMENTED(); 30 NOTIMPLEMENTED();
31 logged_once = true; 31 logged_once = true;
32 } 32 }
33 } 33 }
34 34
35 gfx::Screen* DisplayInfoProviderAura::GetActiveScreen() { 35 gfx::Screen* DisplayInfoProviderAura::GetActiveScreen() {
oshima 2016/01/19 20:44:31 We probably can remove this too.
scottmg 2016/01/19 21:55:57 OK, I'll investigate that in a followup too.
scottmg 2016/01/19 21:58:32 Actually, these two are related. I can do both of
36 return gfx::Screen::GetNativeScreen(); 36 return gfx::Screen::GetScreen();
37 } 37 }
38 38
39 // static 39 // static
40 DisplayInfoProvider* DisplayInfoProvider::Create() { 40 DisplayInfoProvider* DisplayInfoProvider::Create() {
41 return new DisplayInfoProviderAura(); 41 return new DisplayInfoProviderAura();
42 } 42 }
43 43
44 } // namespace extensions 44 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698