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

Issue 10938009: Views fuzzing for Aura and Windows (Closed)

Created:
8 years, 3 months ago by girard
Modified:
6 years, 8 months ago
Reviewers:
tdanderson, sadrul, sky
CC:
chromium-reviews, tfarina, James Su, ben+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Touch and Mouse event handlers are now synchronized. In the case of touch, we consider any view that intersects the touch location, and select the one that has the greatest overlap. This builds off of the work done by tdanderson in https://chromiumcodereview.appspot.com/10790019/ BUG=129794

Patch Set 1 : Clean up the code for review. #

Patch Set 2 : Merged to current tree. #

Patch Set 3 : Making windows-specific code conditional. #

Total comments: 20

Patch Set 4 : Work in progress. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+263 lines, -45 lines) Patch
M chrome/browser/ui/views/omnibox/inline_omnibox_popup_view.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/omnibox/inline_omnibox_popup_view.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/tabs/base_tab.cc View 1 1 chunk +6 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.h View 1 2 3 3 chunks +16 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.cc View 1 2 3 7 chunks +88 lines, -14 lines 0 comments Download
M ui/views/view.h View 1 2 3 2 chunks +26 lines, -1 line 0 comments Download
M ui/views/view.cc View 1 2 3 4 chunks +112 lines, -7 lines 0 comments Download
M ui/views/window/non_client_view.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M ui/views/window/non_client_view.cc View 1 2 3 2 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
girard
This is a work in progress, but contains most of the code needed to get ...
8 years, 3 months ago (2012-09-18 16:58:52 UTC) #1
sadrul
http://codereview.chromium.org/10938009/diff/12002/ui/views/view.cc File ui/views/view.cc (left): http://codereview.chromium.org/10938009/diff/12002/ui/views/view.cc#oldcode762 ui/views/view.cc:762: return child->GetEventHandlerForPoint(point_in_child_coords); It is important to continue to use ...
8 years, 3 months ago (2012-09-18 17:29:22 UTC) #2
tdanderson
https://chromiumcodereview.appspot.com/10938009/diff/12002/chrome/browser/ui/views/tabs/tab_strip.cc File chrome/browser/ui/views/tabs/tab_strip.cc (right): https://chromiumcodereview.appspot.com/10938009/diff/12002/chrome/browser/ui/views/tabs/tab_strip.cc#newcode1368 chrome/browser/ui/views/tabs/tab_strip.cc:1368: int touch_size = 24; I'm not sure where this ...
8 years, 3 months ago (2012-09-18 19:19:02 UTC) #3
sky
8 years, 3 months ago (2012-09-18 19:51:41 UTC) #4
I only looked at View. You need to deal with HitTest before you can continue. In
fact you might want to do that in its own patch.

https://chromiumcodereview.appspot.com/10938009/diff/12002/ui/views/view.cc
File ui/views/view.cc (right):

https://chromiumcodereview.appspot.com/10938009/diff/12002/ui/views/view.cc#n...
ui/views/view.cc:818: View* View::GetEventHandler(const gfx::Rect& rect,
EventType type) {
ordering doesn't match header.

https://chromiumcodereview.appspot.com/10938009/diff/12002/ui/views/view.h
File ui/views/view.h (right):

https://chromiumcodereview.appspot.com/10938009/diff/12002/ui/views/view.h#ne...
ui/views/view.h:514: // Returns the appropriate event handler for the given
touch rect.
If this is specific to touch, it should be named so, eg GetEventHandlerForTouch.

https://chromiumcodereview.appspot.com/10938009/diff/12002/ui/views/view.h#ne...
ui/views/view.h:1056: public:
On 2012/09/18 16:58:52, girard wrote:
> make protected.
> This will mess up all the other headers, but it's the right thing to do.

Huh? Move the enum and function to the right sections. Arbitrarily adding new
sections doesn't scale.

https://chromiumcodereview.appspot.com/10938009/diff/12002/ui/views/view.h#ne...
ui/views/view.h:1058: enum EventType { MOUSE, TOUCH };
Make these more descriptive. Maybe EventHandlerType EVENT_HANDLER_TYPE_MOUSE and
EVENT_HANDLER_TYPE_TOUCH.

Powered by Google App Engine
This is Rietveld 408576698