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

Unified Diff: ui/gfx/screen_ios.mm

Issue 854713003: More old files deletion. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix tryjobs? Created 5 years, 11 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
« no previous file with comments | « ui/gfx/screen_aura.cc ('k') | ui/gfx/screen_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/screen_ios.mm
diff --git a/ui/gfx/screen_ios.mm b/ui/gfx/screen_ios.mm
deleted file mode 100644
index ac5ccc482a8251a9bbf51ff33c20fa2a94c2da38..0000000000000000000000000000000000000000
--- a/ui/gfx/screen_ios.mm
+++ /dev/null
@@ -1,96 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ui/gfx/screen.h"
-
-#import <UIKit/UIKit.h>
-
-#include "base/logging.h"
-#include "ui/gfx/display.h"
-
-namespace {
-
-class ScreenIos : public gfx::Screen {
- virtual bool IsDIPEnabled() override {
- return true;
- }
-
- virtual gfx::Point GetCursorScreenPoint() override {
- NOTIMPLEMENTED();
- return gfx::Point(0, 0);
- }
-
- virtual gfx::NativeWindow GetWindowUnderCursor() override {
- NOTIMPLEMENTED();
- return gfx::NativeWindow();
- }
-
- virtual gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point)
- override {
- NOTIMPLEMENTED();
- return gfx::NativeWindow();
- }
-
- virtual int GetNumDisplays() const override {
-#if TARGET_IPHONE_SIMULATOR
- // UIScreen does not reliably return correct results on the simulator.
- return 1;
-#else
- return [[UIScreen screens] count];
-#endif
- }
-
- virtual std::vector<gfx::Display> GetAllDisplays() const override {
- NOTIMPLEMENTED();
- return std::vector<gfx::Display>(1, GetPrimaryDisplay());
- }
-
- // Returns the display nearest the specified window.
- virtual gfx::Display GetDisplayNearestWindow(
- gfx::NativeView view) const override {
- NOTIMPLEMENTED();
- return gfx::Display();
- }
-
- // Returns the the display nearest the specified point.
- virtual gfx::Display GetDisplayNearestPoint(
- const gfx::Point& point) const override {
- NOTIMPLEMENTED();
- return gfx::Display();
- }
-
- // Returns the display that most closely intersects the provided bounds.
- virtual gfx::Display GetDisplayMatching(
- const gfx::Rect& match_rect) const override {
- NOTIMPLEMENTED();
- return gfx::Display();
- }
-
- // Returns the primary display.
- virtual gfx::Display GetPrimaryDisplay() const override {
- UIScreen* mainScreen = [UIScreen mainScreen];
- CHECK(mainScreen);
- gfx::Display display(0, gfx::Rect(mainScreen.bounds));
- display.set_device_scale_factor([mainScreen scale]);
- return display;
- }
-
- virtual void AddObserver(gfx::DisplayObserver* observer) override {
- // no display change on iOS.
- }
-
- virtual void RemoveObserver(gfx::DisplayObserver* observer) override {
- // no display change on iOS.
- }
-};
-
-} // namespace
-
-namespace gfx {
-
-Screen* CreateNativeScreen() {
- return new ScreenIos;
-}
-
-} // namespace gfx
« no previous file with comments | « ui/gfx/screen_aura.cc ('k') | ui/gfx/screen_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698