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

Unified Diff: mojo/aura/screen_mojo.cc

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. 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 | « mojo/aura/screen_mojo.h ('k') | mojo/aura/surface_binding.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/aura/screen_mojo.cc
diff --git a/mojo/aura/screen_mojo.cc b/mojo/aura/screen_mojo.cc
deleted file mode 100644
index 0ac5e39da0b95eeeee6149df468b5ea34385e482..0000000000000000000000000000000000000000
--- a/mojo/aura/screen_mojo.cc
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright 2014 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 "mojo/aura/screen_mojo.h"
-
-#include "ui/gfx/native_widget_types.h"
-#include "ui/gfx/rect_conversions.h"
-
-namespace mojo {
-
-// static
-ScreenMojo* ScreenMojo::Create() {
- return new ScreenMojo(gfx::Rect(0, 0, 800, 600));
-}
-
-ScreenMojo::~ScreenMojo() {
-}
-
-bool ScreenMojo::IsDIPEnabled() {
- NOTIMPLEMENTED();
- return true;
-}
-
-gfx::Point ScreenMojo::GetCursorScreenPoint() {
- NOTIMPLEMENTED();
- return gfx::Point();
-}
-
-gfx::NativeWindow ScreenMojo::GetWindowUnderCursor() {
- return GetWindowAtScreenPoint(GetCursorScreenPoint());
-}
-
-gfx::NativeWindow ScreenMojo::GetWindowAtScreenPoint(const gfx::Point& point) {
- NOTIMPLEMENTED();
- return NULL;
-}
-
-int ScreenMojo::GetNumDisplays() const {
- return 1;
-}
-
-std::vector<gfx::Display> ScreenMojo::GetAllDisplays() const {
- return std::vector<gfx::Display>(1, display_);
-}
-
-gfx::Display ScreenMojo::GetDisplayNearestWindow(
- gfx::NativeWindow window) const {
- return display_;
-}
-
-gfx::Display ScreenMojo::GetDisplayNearestPoint(const gfx::Point& point) const {
- return display_;
-}
-
-gfx::Display ScreenMojo::GetDisplayMatching(const gfx::Rect& match_rect) const {
- return display_;
-}
-
-gfx::Display ScreenMojo::GetPrimaryDisplay() const {
- return display_;
-}
-
-void ScreenMojo::AddObserver(gfx::DisplayObserver* observer) {
-}
-
-void ScreenMojo::RemoveObserver(gfx::DisplayObserver* observer) {
-}
-
-ScreenMojo::ScreenMojo(const gfx::Rect& screen_bounds) {
- static int64 synthesized_display_id = 2000;
- display_.set_id(synthesized_display_id++);
- display_.SetScaleAndBounds(1.0f, screen_bounds);
-}
-
-} // namespace mojo
« no previous file with comments | « mojo/aura/screen_mojo.h ('k') | mojo/aura/surface_binding.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698