| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |