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

Unified Diff: ui/gfx/screen_aura.cc

Issue 11030017: Add context to gfx::Screen calls in support of simultaneous desktop+ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix new addition Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/screen_android.cc ('k') | ui/gfx/screen_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/screen_aura.cc
diff --git a/ui/gfx/screen_aura.cc b/ui/gfx/screen_aura.cc
index befdeafa7d001f393ec4ad7c911c3c8542217f7c..7a1effa0e8cef6d6c2446727089443ea77689768 100644
--- a/ui/gfx/screen_aura.cc
+++ b/ui/gfx/screen_aura.cc
@@ -5,62 +5,12 @@
#include "ui/gfx/screen.h"
#include "base/logging.h"
-#include "ui/gfx/display.h"
-#include "ui/gfx/native_widget_types.h"
-#include "ui/gfx/screen_impl.h"
namespace gfx {
-// gfx can't depend upon aura, otherwise we have circular dependencies. So,
-// gfx::Screen is pluggable and Desktop plugs in the real implementation.
-namespace {
-ScreenImpl* g_instance_ = NULL;
-}
-
-// static
-void Screen::SetInstance(ScreenImpl* screen) {
- delete g_instance_;
- g_instance_ = screen;
-}
-
-// static
-bool Screen::IsDIPEnabled() {
- return true;
-}
-
-// static
-Point Screen::GetCursorScreenPoint() {
- return g_instance_->GetCursorScreenPoint();
-}
-
-// static
-NativeWindow Screen::GetWindowAtCursorScreenPoint() {
- return g_instance_->GetWindowAtCursorScreenPoint();
-}
-
-// static
-int Screen::GetNumDisplays() {
- return g_instance_->GetNumDisplays();
-}
-
-// static
-Display Screen::GetDisplayNearestWindow(NativeView window) {
- return g_instance_->GetDisplayNearestWindow(window);
-}
-
-// static
-Display Screen::GetDisplayNearestPoint(const Point& point) {
- return g_instance_->GetDisplayNearestPoint(point);
-}
-
-// static
-Display Screen::GetDisplayMatching(const gfx::Rect& match_rect) {
- return g_instance_->GetDisplayMatching(match_rect);
-}
-
-// static
-Display Screen::GetPrimaryDisplay() {
- return g_instance_->GetPrimaryDisplay();
+Screen* CreateNativeScreen() {
+ NOTREACHED() << "Implementation should be installed at higher level.";
+ return NULL;
}
} // namespace gfx
« no previous file with comments | « ui/gfx/screen_android.cc ('k') | ui/gfx/screen_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698