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

Issue 27458002: Allow setting different hit test bounds overrides for mouse and touch (Closed)

Created:
7 years, 2 months ago by pkotwicz
Modified:
7 years, 1 month ago
CC:
chromium-reviews, jennb, ben+aura_chromium.org, tfarina, jianli, Dmitry Titov, sadrul, dcheng, chromium-apps-reviews_chromium.org, kalyank
Visibility:
Public.

Description

Allow setting different hit test bounds overrides for mouse and touch. This is needed so that the ImmersiveModeController can be used in conjunction with CustomFrameViewAsh (eg for the task manager). Plumbing the content::WebContents* to CustomFrameViewAsh in all cases would be difficult BUG=307622 TEST=ImmersiveModeControllerAshTestWithBrowserView.RevealViaGestureChildWindowConsumesTouchEvents

Patch Set 1 : #

Total comments: 4

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+304 lines, -210 lines) Patch
M apps/ui/views/shell_window_frame_view.cc View 1 2 1 chunk +5 lines, -3 lines 0 comments Download
M ash/ash_switches.h View 1 chunk +0 lines, -1 line 0 comments Download
M ash/ash_switches.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M ash/shelf/shelf_layout_manager.cc View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M ash/shelf/shelf_layout_manager_unittest.cc View 1 2 3 chunks +8 lines, -6 lines 0 comments Download
M ash/system/web_notification/web_notification_tray_unittest.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M ash/wm/frame_border_hit_test_controller.h View 1 1 chunk +4 lines, -1 line 0 comments Download
M ash/wm/frame_border_hit_test_controller.cc View 1 3 chunks +39 lines, -8 lines 0 comments Download
M ash/wm/window_properties.h View 1 1 chunk +0 lines, -6 lines 0 comments Download
M ash/wm/window_properties.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M ash/wm/window_state.h View 1 2 3 chunks +12 lines, -0 lines 0 comments Download
M ash/wm/window_state.cc View 1 2 4 chunks +22 lines, -0 lines 0 comments Download
M ash/wm/window_state_observer.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M ash/wm/wm_types.h View 1 2 1 chunk +26 lines, -2 lines 0 comments Download
M chrome/browser/notifications/fullscreen_notification_blocker.cc View 1 2 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate_browsertest.cc View 1 2 2 chunks +3 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/frame/app_non_client_frame_view_ash.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_ash_browsertest.cc View 1 2 5 chunks +34 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/immersive_mode_controller.h View 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/frame/immersive_mode_controller_ash.h View 4 chunks +0 lines, -17 lines 0 comments Download
M chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc View 1 2 12 chunks +22 lines, -56 lines 0 comments Download
M chrome/browser/ui/views/frame/immersive_mode_controller_ash_browsertest.cc View 2 chunks +0 lines, -34 lines 0 comments Download
M chrome/browser/ui/views/frame/immersive_mode_controller_ash_unittest.cc View 1 2 8 chunks +76 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/panels/panel_frame_view.cc View 1 chunk +5 lines, -3 lines 0 comments Download
M ui/aura/window.h View 2 chunks +18 lines, -9 lines 1 comment Download
M ui/aura/window.cc View 1 chunk +7 lines, -3 lines 0 comments Download
M ui/aura/window_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ui/oak/oak_aura_window_display.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
pkotwicz
James, PTAL I decided to add a kFullscreenTypeKey property and remove the kFullscreenUsesMinimalChromeKey property (as ...
7 years, 2 months ago (2013-10-16 05:21:49 UTC) #1
James Cook
https://codereview.chromium.org/27458002/diff/11001/ash/wm/frame_border_hittest_controller.cc File ash/wm/frame_border_hittest_controller.cc (right): https://codereview.chromium.org/27458002/diff/11001/ash/wm/frame_border_hittest_controller.cc#newcode26 ash/wm/frame_border_hittest_controller.cc:26: const int kImmersiveFullscreenTopInnerInsetTouch = 8; Are you sure you ...
7 years, 2 months ago (2013-10-16 16:38:34 UTC) #2
pkotwicz
James, can you please take another look? https://codereview.chromium.org/27458002/diff/11001/ash/wm/frame_border_hittest_controller.cc File ash/wm/frame_border_hittest_controller.cc (right): https://codereview.chromium.org/27458002/diff/11001/ash/wm/frame_border_hittest_controller.cc#newcode26 ash/wm/frame_border_hittest_controller.cc:26: const int ...
7 years, 2 months ago (2013-10-17 04:45:07 UTC) #3
James Cook
https://codereview.chromium.org/27458002/diff/17001/ash/wm/frame_border_hit_test_controller.cc File ash/wm/frame_border_hit_test_controller.cc (right): https://codereview.chromium.org/27458002/diff/17001/ash/wm/frame_border_hit_test_controller.cc#newcode24 ash/wm/frame_border_hit_test_controller.cc:24: const int kImmersiveFullscreenTopInnerInsetTouch = 8; OK, sounds good to ...
7 years, 2 months ago (2013-10-17 16:56:24 UTC) #4
pkotwicz
James, can you please take another look? https://codereview.chromium.org/27458002/diff/17001/ash/wm/window_state.cc File ash/wm/window_state.cc (right): https://codereview.chromium.org/27458002/diff/17001/ash/wm/window_state.cc#newcode202 ash/wm/window_state.cc:202: void WindowState::SetFullscreenType(FullscreenType ...
7 years, 2 months ago (2013-10-17 22:14:26 UTC) #5
James Cook
LGTM
7 years, 2 months ago (2013-10-17 22:40:56 UTC) #6
pkotwicz
Scott, can you please take a look at the changes in ui/ Sadrul, can you ...
7 years, 2 months ago (2013-10-17 23:01:48 UTC) #7
Ben Goodger (Google)
https://codereview.chromium.org/27458002/diff/40001/ui/aura/window.h File ui/aura/window.h (right): https://codereview.chromium.org/27458002/diff/40001/ui/aura/window.h#newcode261 ui/aura/window.h:261: void SetHitTestBoundsOverrideInner(const gfx::Insets& mouse_insets, Can we try and remove ...
7 years, 2 months ago (2013-10-17 23:04:48 UTC) #8
pkotwicz
I do not see an easy way of removing this from aura::Window. (This is used ...
7 years, 2 months ago (2013-10-18 00:25:58 UTC) #9
Ben Goodger (Google)
I actually think we could add a single WindowDelegate method. The delegate would be consulted ...
7 years, 2 months ago (2013-10-18 04:42:05 UTC) #10
pkotwicz
There are other callers (exactly 3) of aura::Window::HitTest() but I think we can deal with ...
7 years, 2 months ago (2013-10-18 19:04:04 UTC) #11
pkotwicz
7 years, 1 month ago (2013-10-27 23:38:10 UTC) #12
I am closing this CL because I have split it up into 2:
https://codereview.chromium.org/32943006/ (jamescook@ is a reviewer)
https://codereview.chromium.org/30923002/ (ben@ is a reviewer) ben@, I will post
a new version of that CL shortly

Powered by Google App Engine
This is Rietveld 408576698