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

Unified Diff: apps/ui/views/shell_window_frame_view.cc

Issue 27458002: Allow setting different hit test bounds overrides for mouse and touch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | « no previous file | ash/ash_switches.h » ('j') | ui/aura/window.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/ui/views/shell_window_frame_view.cc
diff --git a/apps/ui/views/shell_window_frame_view.cc b/apps/ui/views/shell_window_frame_view.cc
index fc8e5407e26ae26be9c461b8d5bf747fe72e0749..af508592ffd88b2f54e4b3d3c2f01b9080fb8e68 100644
--- a/apps/ui/views/shell_window_frame_view.cc
+++ b/apps/ui/views/shell_window_frame_view.cc
@@ -121,9 +121,11 @@ void ShellWindowFrameView::Init(views::Widget* frame,
}
// Ensure we get resize cursors just inside our bounds as well.
// TODO(jeremya): do we need to update these when in fullscreen/maximized?
- window->set_hit_test_bounds_override_inner(
- gfx::Insets(resize_inside_bounds_size_, resize_inside_bounds_size_,
- resize_inside_bounds_size_, resize_inside_bounds_size_));
+ gfx::Insets inner_insets(resize_inside_bounds_size,
+ resize_inside_bounds_size,
+ resize_inside_bounds_size,
+ resize_inside_bounds_size);
+ window->SetHitTestBoundsOverrideInner(inner_insets, inner_insets);
#endif
}
« no previous file with comments | « no previous file | ash/ash_switches.h » ('j') | ui/aura/window.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698