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

Unified Diff: ui/gfx/screen_ios.mm

Issue 11030017: Add context to gfx::Screen calls in support of simultaneous desktop+ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mac compile fix Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: ui/gfx/screen_ios.mm
diff --git a/ui/gfx/screen_ios.mm b/ui/gfx/screen_ios.mm
index 42b2edd5ec141b0fa5232aa6438b1e8a01042362..c23ff745533f629bbfca52e626b486b7afe5129f 100644
--- a/ui/gfx/screen_ios.mm
+++ b/ui/gfx/screen_ios.mm
@@ -11,14 +11,14 @@
namespace gfx {
// static
-gfx::Display Screen::GetPrimaryDisplay() {
+gfx::Display Screen::GetPrimaryDisplay(gfx::NativeView context) {
UIScreen* mainScreen = [[UIScreen screens] objectAtIndex:0];
gfx::Display display(0, gfx::Rect(mainScreen.bounds));
return display;
}
// static
-int Screen::GetNumDisplays() {
+int Screen::GetNumDisplays(gfx::NativeView context) {
#if TARGET_IPHONE_SIMULATOR
// UIScreen does not reliably return correct results on the simulator.
return 1;
« no previous file with comments | « ui/gfx/screen_gtk.cc ('k') | ui/gfx/screen_mac.mm » ('j') | ui/gfx/screen_type_delegate.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698