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

Unified Diff: ui/gfx/screen_aura.cc

Issue 7943006: Initialize message pump not to use gtk. WindowSizer for aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missing file Created 9 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 | « ui/aura/desktop.cc ('k') | no next file » | 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 2ed1800f788cd6cc993f7984af99fa8f74700a57..b3eb4064c4810ceef6b1ac4e7bc978a46bf67ff4 100644
--- a/ui/gfx/screen_aura.cc
+++ b/ui/gfx/screen_aura.cc
@@ -9,6 +9,8 @@
#endif
#include "base/logging.h"
+#include "ui/aura/desktop.h"
+#include "ui/aura/window.h"
#include "ui/gfx/native_widget_types.h"
namespace gfx {
@@ -26,20 +28,22 @@ gfx::Point Screen::GetCursorScreenPoint() {
// static
gfx::Rect Screen::GetMonitorWorkAreaNearestWindow(gfx::NativeWindow window) {
- NOTIMPLEMENTED();
- return gfx::Rect();
+ // TODO(oshima): Take window into account. Support multiple monitors.
+ aura::Window* desktop_window = aura::Desktop::GetInstance()->window();
+ return desktop_window->bounds();
}
// static
gfx::Rect Screen::GetMonitorAreaNearestWindow(gfx::NativeWindow window) {
- NOTIMPLEMENTED();
- return gfx::Rect();
+ // TODO(oshima): Fix this for aura desktop.
+ return GetMonitorAreaNearestWindow(window);
}
static gfx::Rect GetMonitorAreaOrWorkAreaNearestPoint(const gfx::Point& point,
bool work_area) {
- NOTIMPLEMENTED();
- return gfx::Rect();
+ // TODO(oshima): Take point/work_area into account. Support multiple monitors.
+ aura::Window* desktop_window = aura::Desktop::GetInstance()->window();
+ return desktop_window->bounds();
}
// static
« no previous file with comments | « ui/aura/desktop.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698