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

Unified Diff: ash/wm/shelf_layout_manager.cc

Issue 10854060: ash: Use different hit-test outer-region for mouse and touch events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: scale 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
« no previous file with comments | « ash/wm/frame_painter.cc ('k') | chrome/browser/ui/views/extensions/shell_window_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/shelf_layout_manager.cc
diff --git a/ash/wm/shelf_layout_manager.cc b/ash/wm/shelf_layout_manager.cc
index 6c0d9e605f8c772efb5d9c594041909126ecfff5..7ee69d81097f84d785d708c5de5a06069f754a83 100644
--- a/ash/wm/shelf_layout_manager.cc
+++ b/ash/wm/shelf_layout_manager.cc
@@ -583,10 +583,11 @@ void ShelfLayoutManager::UpdateHitTestBounds() {
break;
}
}
- if (launcher_widget() && launcher_widget()->GetNativeWindow())
- launcher_widget()->GetNativeWindow()->set_hit_test_bounds_override_outer(
- insets);
- status_->GetNativeWindow()->set_hit_test_bounds_override_outer(insets);
+ if (launcher_widget() && launcher_widget()->GetNativeWindow()) {
+ launcher_widget()->GetNativeWindow()->SetHitTestBoundsOverrideOuter(
+ insets, 1);
+ }
+ status_->GetNativeWindow()->SetHitTestBoundsOverrideOuter( insets, 1);
}
bool ShelfLayoutManager::IsShelfWindow(aura::Window* window) {
« no previous file with comments | « ash/wm/frame_painter.cc ('k') | chrome/browser/ui/views/extensions/shell_window_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698