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

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

Issue 2361283002: Add GetDisplayWithDisplayId to display::Screen. (Closed)
Patch Set: test Created 4 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 unified diff | Download patch
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 24 matching lines...) Expand all
35 #else 35 #else
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 with |display_id|.
46 bool GetDisplayWithDisplayId(int64_t display_id,
47 Display* display) const override {
48 NOTIMPLEMENTED();
49 return false;
50 }
51
45 // Returns the display nearest the specified window. 52 // Returns the display nearest the specified window.
46 Display GetDisplayNearestWindow(gfx::NativeView view) const override { 53 Display GetDisplayNearestWindow(gfx::NativeView view) const override {
47 NOTIMPLEMENTED(); 54 NOTIMPLEMENTED();
48 return Display(); 55 return Display();
49 } 56 }
50 57
51 // Returns the the display nearest the specified point. 58 // Returns the the display nearest the specified point.
52 Display GetDisplayNearestPoint(const gfx::Point& point) const override { 59 Display GetDisplayNearestPoint(const gfx::Point& point) const override {
53 NOTIMPLEMENTED(); 60 NOTIMPLEMENTED();
54 return Display(); 61 return Display();
(...skipping 23 matching lines...) Expand all
78 } 85 }
79 }; 86 };
80 87
81 } // namespace 88 } // namespace
82 89
83 Screen* CreateNativeScreen() { 90 Screen* CreateNativeScreen() {
84 return new ScreenIos; 91 return new ScreenIos;
85 } 92 }
86 93
87 } // namespace gfx 94 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698