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

Side by Side Diff: chrome/browser/extensions/display_info_provider_chromeos.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
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_chromeos.h" 5 #include "chrome/browser/extensions/display_info_provider_chromeos.h"
6 6
7 #include "ash/display/display_controller.h" 7 #include "ash/display/display_controller.h"
8 #include "ash/display/display_manager.h" 8 #include "ash/display/display_manager.h"
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "base/message_loop/message_loop_proxy.h" 10 #include "base/message_loop/message_loop_proxy.h"
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 unit->dpi_y = dpi; 373 unit->dpi_y = dpi;
374 374
375 const gfx::Insets overscan_insets = 375 const gfx::Insets overscan_insets =
376 display_manager->GetOverscanInsets(display.id()); 376 display_manager->GetOverscanInsets(display.id());
377 unit->overscan.left = overscan_insets.left(); 377 unit->overscan.left = overscan_insets.left();
378 unit->overscan.top = overscan_insets.top(); 378 unit->overscan.top = overscan_insets.top();
379 unit->overscan.right = overscan_insets.right(); 379 unit->overscan.right = overscan_insets.right();
380 unit->overscan.bottom = overscan_insets.bottom(); 380 unit->overscan.bottom = overscan_insets.bottom();
381 } 381 }
382 382
383 gfx::Screen* DisplayInfoProviderChromeOS::GetActiveScreen() {
384 return ash::Shell::GetScreen();
385 }
386
383 // static 387 // static
384 DisplayInfoProvider* DisplayInfoProvider::Create() { 388 DisplayInfoProvider* DisplayInfoProvider::Create() {
385 return new DisplayInfoProviderChromeOS(); 389 return new DisplayInfoProviderChromeOS();
386 } 390 }
387 391
388 } // namespace extensions 392 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/display_info_provider_chromeos.h ('k') | chrome/browser/extensions/display_info_provider_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698