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

Side by Side Diff: chrome/browser/extensions/display_info_provider_win.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: and another rebase 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_win.h" 5 #include "chrome/browser/extensions/display_info_provider_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/hash.h" 10 #include "base/hash.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 if (unit->id == all_displays[i]->id) { 76 if (unit->id == all_displays[i]->id) {
77 unit->name = all_displays[i]->name; 77 unit->name = all_displays[i]->name;
78 unit->dpi_x = all_displays[i]->dpi_x; 78 unit->dpi_x = all_displays[i]->dpi_x;
79 unit->dpi_y = all_displays[i]->dpi_y; 79 unit->dpi_y = all_displays[i]->dpi_y;
80 break; 80 break;
81 } 81 }
82 } 82 }
83 } 83 }
84 84
85 gfx::Screen* DisplayInfoProviderWin::GetActiveScreen() { 85 gfx::Screen* DisplayInfoProviderWin::GetActiveScreen() {
86 // TODO(scottmg): native screen is wrong http://crbug.com/133312 86 return gfx::Screen::GetScreen();
87 return gfx::Screen::GetNativeScreen();
88 } 87 }
89 88
90 // static 89 // static
91 DisplayInfoProvider* DisplayInfoProvider::Create() { 90 DisplayInfoProvider* DisplayInfoProvider::Create() {
92 return new DisplayInfoProviderWin(); 91 return new DisplayInfoProviderWin();
93 } 92 }
94 93
95 } // namespace extensions 94 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/display_info_provider_mac.cc ('k') | chrome/browser/manifest/manifest_icon_downloader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698