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

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

Issue 507783003: Add GetActiveScreen to DisplayInfoProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « chrome/browser/extensions/display_info_provider_win.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8
9 #include "base/hash.h" 9 #include "base/hash.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 for (size_t i = 0; i < all_displays.size(); ++i) { 73 for (size_t i = 0; i < all_displays.size(); ++i) {
74 if (unit->id == all_displays[i]->id) { 74 if (unit->id == all_displays[i]->id) {
75 unit->name = all_displays[i]->name; 75 unit->name = all_displays[i]->name;
76 unit->dpi_x = all_displays[i]->dpi_x; 76 unit->dpi_x = all_displays[i]->dpi_x;
77 unit->dpi_y = all_displays[i]->dpi_y; 77 unit->dpi_y = all_displays[i]->dpi_y;
78 break; 78 break;
79 } 79 }
80 } 80 }
81 } 81 }
82 82
83 gfx::Screen* DisplayInfoProviderWin::GetActiveScreen() {
84 return NULL;
85 }
86
83 // static 87 // static
84 DisplayInfoProvider* DisplayInfoProvider::Create() { 88 DisplayInfoProvider* DisplayInfoProvider::Create() {
85 return new DisplayInfoProviderWin(); 89 return new DisplayInfoProviderWin();
86 } 90 }
87 91
88 } // namespace extensions 92 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/display_info_provider_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698