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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 8491058: Fix NOTIMPLEMENTEDs in RenderMessageFilterAura... use the same codepath POSIX does. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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
Index: content/browser/renderer_host/render_widget_host_view_aura.cc
===================================================================
--- content/browser/renderer_host/render_widget_host_view_aura.cc (revision 109708)
+++ content/browser/renderer_host/render_widget_host_view_aura.cc (working copy)
@@ -214,7 +214,7 @@
}
gfx::Rect RenderWidgetHostViewAura::GetViewBounds() const {
- return window_->bounds();
+ return window_->GetScreenBounds();
}
void RenderWidgetHostViewAura::UpdateCursor(const WebCursor& cursor) {
@@ -332,7 +332,6 @@
#endif
}
-#if defined(OS_POSIX)
void RenderWidgetHostViewAura::GetDefaultScreenInfo(
WebKit::WebScreenInfo* results) {
GetScreenInfo(results);
@@ -348,9 +347,12 @@
}
gfx::Rect RenderWidgetHostViewAura::GetRootWindowBounds() {
- return aura::Desktop::GetInstance()->bounds();
+ // TODO(beng): this is actually wrong, we are supposed to return the bounds
+ // of the container "top level" window, but we don't have a firm
+ // concept of what constitutes a toplevel right now, so just do
+ // this.
+ return window_->GetScreenBounds();
}
-#endif
void RenderWidgetHostViewAura::SetVisuallyDeemphasized(const SkColor* color,
bool animate) {
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.h ('k') | content/browser/renderer_host/test_render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698