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

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

Issue 10831361: Draggable region support for frameless app window on CrOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use ShouldDescendIntoChildForEventHandling Created 8 years, 4 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
Index: content/browser/renderer_host/render_widget_host_view_aura.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index efb6e6cee22bd24898d7f6c563510d9bfdb2fb04..8c15bd0c76bc41230646266f18eb2f6a90254990 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -1191,7 +1191,8 @@ int RenderWidgetHostViewAura::GetNonClientComponent(
bool RenderWidgetHostViewAura::ShouldDescendIntoChildForEventHandling(
aura::Window* child,
- const gfx::Point& location) {
+ const gfx::Point& event_location,
+ ui::EventType event_type) {
return true;
}
@@ -1498,7 +1499,8 @@ void RenderWidgetHostViewAura::UpdateCursorIfOverSelf() {
if (!root_window)
return;
- if (root_window->GetEventHandlerForPoint(screen_point) != window_)
+ if (root_window->GetEventHandlerForPoint(screen_point,
+ ui::ET_MOUSE_MOVED) != window_)
return;
gfx::NativeCursor cursor = current_cursor_.GetNativeCursor();

Powered by Google App Engine
This is Rietveld 408576698