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

Unified Diff: mojo/services/view_manager/screen_impl.cc

Issue 534843002: Convert view manager to surfaces with uploading shim in client lib (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove overzealous shutdown check in cc/surfaces, add NON_EXPORTED_BASE for windows build, saturate… Created 6 years, 3 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/services/view_manager/screen_impl.h ('k') | mojo/services/view_manager/server_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/view_manager/screen_impl.cc
diff --git a/mojo/services/view_manager/screen_impl.cc b/mojo/services/view_manager/screen_impl.cc
deleted file mode 100644
index 39bd91e97dcf2acae0c0774460add70c4f24c073..0000000000000000000000000000000000000000
--- a/mojo/services/view_manager/screen_impl.cc
+++ /dev/null
@@ -1,78 +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/services/view_manager/screen_impl.h"
-
-#include "ui/gfx/native_widget_types.h"
-#include "ui/gfx/rect_conversions.h"
-
-namespace mojo {
-namespace service {
-
-// static
-gfx::Screen* ScreenImpl::Create() {
- return new ScreenImpl(gfx::Rect(0, 0, 800, 600));
-}
-
-ScreenImpl::~ScreenImpl() {
-}
-
-bool ScreenImpl::IsDIPEnabled() {
- NOTIMPLEMENTED();
- return true;
-}
-
-gfx::Point ScreenImpl::GetCursorScreenPoint() {
- NOTIMPLEMENTED();
- return gfx::Point();
-}
-
-gfx::NativeWindow ScreenImpl::GetWindowUnderCursor() {
- return GetWindowAtScreenPoint(GetCursorScreenPoint());
-}
-
-gfx::NativeWindow ScreenImpl::GetWindowAtScreenPoint(const gfx::Point& point) {
- NOTIMPLEMENTED();
- return NULL;
-}
-
-int ScreenImpl::GetNumDisplays() const {
- return 1;
-}
-
-std::vector<gfx::Display> ScreenImpl::GetAllDisplays() const {
- return std::vector<gfx::Display>(1, display_);
-}
-
-gfx::Display ScreenImpl::GetDisplayNearestWindow(
- gfx::NativeWindow window) const {
- return display_;
-}
-
-gfx::Display ScreenImpl::GetDisplayNearestPoint(const gfx::Point& point) const {
- return display_;
-}
-
-gfx::Display ScreenImpl::GetDisplayMatching(const gfx::Rect& match_rect) const {
- return display_;
-}
-
-gfx::Display ScreenImpl::GetPrimaryDisplay() const {
- return display_;
-}
-
-void ScreenImpl::AddObserver(gfx::DisplayObserver* observer) {
-}
-
-void ScreenImpl::RemoveObserver(gfx::DisplayObserver* observer) {
-}
-
-ScreenImpl::ScreenImpl(const gfx::Rect& screen_bounds) {
- static int64 synthesized_display_id = 2000;
- display_.set_id(synthesized_display_id++);
- display_.SetScaleAndBounds(1.0f, screen_bounds);
-}
-
-} // namespace service
-} // namespace mojo
« no previous file with comments | « mojo/services/view_manager/screen_impl.h ('k') | mojo/services/view_manager/server_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698