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

Side by Side Diff: ui/display/ios/screen_ios.mm

Issue 2468093003: Makes Screen functions take a const gfx::NativeView (Closed)
Patch Set: merge Created 4 years, 1 month 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 | « ui/display/android/screen_android.cc ('k') | ui/display/mac/screen_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ui/display/screen.h" 5 #include "ui/display/screen.h"
6 6
7 #import <UIKit/UIKit.h> 7 #import <UIKit/UIKit.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "ui/display/display.h" 10 #include "ui/display/display.h"
(...skipping 25 matching lines...) Expand all
36 return [[UIScreen screens] count]; 36 return [[UIScreen screens] count];
37 #endif 37 #endif
38 } 38 }
39 39
40 std::vector<Display> GetAllDisplays() const override { 40 std::vector<Display> GetAllDisplays() const override {
41 NOTIMPLEMENTED(); 41 NOTIMPLEMENTED();
42 return std::vector<Display>(1, GetPrimaryDisplay()); 42 return std::vector<Display>(1, GetPrimaryDisplay());
43 } 43 }
44 44
45 // Returns the display nearest the specified window. 45 // Returns the display nearest the specified window.
46 Display GetDisplayNearestWindow(gfx::NativeView view) const override { 46 Display GetDisplayNearestWindow(const gfx::NativeView view) const override {
47 NOTIMPLEMENTED(); 47 NOTIMPLEMENTED();
48 return Display(); 48 return Display();
49 } 49 }
50 50
51 // Returns the the display nearest the specified point. 51 // Returns the the display nearest the specified point.
52 Display GetDisplayNearestPoint(const gfx::Point& point) const override { 52 Display GetDisplayNearestPoint(const gfx::Point& point) const override {
53 NOTIMPLEMENTED(); 53 NOTIMPLEMENTED();
54 return Display(); 54 return Display();
55 } 55 }
56 56
(...skipping 21 matching lines...) Expand all
78 } 78 }
79 }; 79 };
80 80
81 } // namespace 81 } // namespace
82 82
83 Screen* CreateNativeScreen() { 83 Screen* CreateNativeScreen() {
84 return new ScreenIos; 84 return new ScreenIos;
85 } 85 }
86 86
87 } // namespace gfx 87 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/display/android/screen_android.cc ('k') | ui/display/mac/screen_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698