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

Issue 395563002: Make RootView::DispatchGestureEvent() non-virtual (Closed)

Created:
6 years, 5 months ago by tdanderson
Modified:
6 years, 5 months ago
Reviewers:
sadrul, sky
CC:
chromium-reviews, tfarina, ben+views_chromium.org, tdanderson+views_chromium.org
Project:
chromium
Visibility:
Public.

Description

Make RootView::DispatchGestureEvent() non-virtual In preparation of removing RootView::DispatchGestureEvent(), replace its two overrides with overrides of ui::EventProcessor::OnEventFromSource() and then make the function DispatchGestureEvent() non-virtual. BUG=353641 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283673

Patch Set 1 #

Total comments: 4

Patch Set 2 : TODOs removed #

Total comments: 2

Patch Set 3 : static_cast encapsulated #

Total comments: 2

Patch Set 4 : addressed nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -89 lines) Patch
M chrome/browser/ui/views/frame/browser_root_view.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_root_view.cc View 1 2 1 chunk +9 lines, -6 lines 0 comments Download
M ui/events/event.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M ui/events/event.cc View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M ui/events/event_handler.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M ui/views/controls/menu/menu_host_root_view.h View 1 chunk +3 lines, -3 lines 0 comments Download
M ui/views/controls/menu/menu_host_root_view.cc View 1 2 1 chunk +15 lines, -9 lines 0 comments Download
M ui/views/view_targeter.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M ui/views/widget/root_view.h View 2 chunks +5 lines, -5 lines 0 comments Download
M ui/views/widget/root_view.cc View 1 2 3 3 chunks +60 lines, -60 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
tdanderson
Sadrul, can you please take a look?
6 years, 5 months ago (2014-07-14 20:58:22 UTC) #1
sadrul
lgtm https://codereview.chromium.org/395563002/diff/1/chrome/browser/ui/views/frame/browser_root_view.cc File chrome/browser/ui/views/frame/browser_root_view.cc (right): https://codereview.chromium.org/395563002/diff/1/chrome/browser/ui/views/frame/browser_root_view.cc#newcode165 chrome/browser/ui/views/frame/browser_root_view.cc:165: // once RootView::OnEventFromSource() is removed. You can actually ...
6 years, 5 months ago (2014-07-15 18:23:46 UTC) #2
tdanderson
Hi Scott, can you please take a look at the changes in chrome/ ? https://codereview.chromium.org/395563002/diff/1/chrome/browser/ui/views/frame/browser_root_view.cc ...
6 years, 5 months ago (2014-07-15 20:25:40 UTC) #3
sky
LGTM - but think about the following change to ui::Event as I think it makes ...
6 years, 5 months ago (2014-07-15 20:53:11 UTC) #4
tdanderson
Hi Scott, please see below: https://codereview.chromium.org/395563002/diff/20001/chrome/browser/ui/views/frame/browser_root_view.cc File chrome/browser/ui/views/frame/browser_root_view.cc (right): https://codereview.chromium.org/395563002/diff/20001/chrome/browser/ui/views/frame/browser_root_view.cc#newcode155 chrome/browser/ui/views/frame/browser_root_view.cc:155: if (event->IsGestureEvent()) { On ...
6 years, 5 months ago (2014-07-15 21:31:25 UTC) #5
sky
On 2014/07/15 21:31:25, tdanderson wrote: > Hi Scott, please see below: > > https://codereview.chromium.org/395563002/diff/20001/chrome/browser/ui/views/frame/browser_root_view.cc > ...
6 years, 5 months ago (2014-07-15 23:42:42 UTC) #6
tdanderson
Scott, can you please take another look?
6 years, 5 months ago (2014-07-16 16:53:57 UTC) #7
sky
LGTM https://codereview.chromium.org/395563002/diff/40001/ui/views/widget/root_view.h File ui/views/widget/root_view.h (right): https://codereview.chromium.org/395563002/diff/40001/ui/views/widget/root_view.h#newcode134 ui/views/widget/root_view.h:134: void DispatchGestureEvent(ui::GestureEvent* event); nit: move implementation to match ...
6 years, 5 months ago (2014-07-16 19:21:28 UTC) #8
tdanderson
https://codereview.chromium.org/395563002/diff/40001/ui/views/widget/root_view.h File ui/views/widget/root_view.h (right): https://codereview.chromium.org/395563002/diff/40001/ui/views/widget/root_view.h#newcode134 ui/views/widget/root_view.h:134: void DispatchGestureEvent(ui::GestureEvent* event); On 2014/07/16 19:21:28, sky wrote: > ...
6 years, 5 months ago (2014-07-16 20:50:50 UTC) #9
tdanderson
The CQ bit was checked by tdanderson@chromium.org
6 years, 5 months ago (2014-07-16 20:50:55 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/395563002/60001
6 years, 5 months ago (2014-07-16 20:51:51 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-17 00:50:06 UTC) #12
commit-bot: I haz the power
6 years, 5 months ago (2014-07-17 06:57:19 UTC) #13
Message was sent while issue was closed.
Change committed as 283673

Powered by Google App Engine
This is Rietveld 408576698