diff options
author | msw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-14 23:17:20 +0000 |
---|---|---|
committer | msw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-14 23:17:20 +0000 |
commit | 2c831b235ec39e7e4258cfd93b735de06f079a0e (patch) | |
tree | f0a49df25f1d7736bd8483de7cf09794fc06f055 /views/view.h | |
parent | 05a1ba49bd770a52a3a84aa2ce6241b0e538d7da (diff) | |
download | chromium_src-2c831b235ec39e7e4258cfd93b735de06f079a0e.zip chromium_src-2c831b235ec39e7e4258cfd93b735de06f079a0e.tar.gz chromium_src-2c831b235ec39e7e4258cfd93b735de06f079a0e.tar.bz2 |
Clean up some event code:
Update some RootView event construction.
Fixup some *MouseExited/OnLeaveNotify codepaths.
Normalize event argument names.
Move View::ConvertPoint*Ancestor defs to private section.
Review URL: http://codereview.chromium.org/6685018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78121 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/view.h')
-rw-r--r-- | views/view.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/views/view.h b/views/view.h index 1c059f1..8117ab2 100644 --- a/views/view.h +++ b/views/view.h @@ -625,7 +625,7 @@ class View : public AcceleratorTarget { // The event is in the receiver's coordinate system. // // Default implementation does nothing. Override as needed. - virtual void OnMouseMoved(const MouseEvent& e); + virtual void OnMouseMoved(const MouseEvent& event); // This method is invoked when the mouse enters this control. // @@ -667,14 +667,14 @@ class View : public AcceleratorTarget { // Subclasser should return true if the event has been processed and false // otherwise. If the event has not been processed, the parent will be given a // chance. - virtual bool OnKeyPressed(const KeyEvent& e); - virtual bool OnKeyReleased(const KeyEvent& e); + virtual bool OnKeyPressed(const KeyEvent& event); + virtual bool OnKeyReleased(const KeyEvent& event); // Invoked when the user uses the mousewheel. Implementors should return true // if the event has been processed and false otherwise. This message is sent // if the view is focused. If the event has not been processed, the parent // will be given a chance. - virtual bool OnMouseWheel(const MouseWheelEvent& e); + virtual bool OnMouseWheel(const MouseWheelEvent& event); // Accelerators -------------------------------------------------------------- @@ -756,7 +756,7 @@ class View : public AcceleratorTarget { // have it processed as an accelerator (if any) or as a tab traversal (if the // key event is for the TAB key). In that case, OnKeyPressed will // subsequently be invoked for that event. - virtual bool SkipDefaultKeyEventProcessing(const KeyEvent& e); + virtual bool SkipDefaultKeyEventProcessing(const KeyEvent& event); // Subclasses that contain traversable children that are not directly // accessible through the children hierarchy should return the associated @@ -1215,14 +1215,14 @@ class View : public AcceleratorTarget { // RootView invokes these. These in turn invoke the appropriate OnMouseXXX // method. If a drag is detected, DoDrag is invoked. - bool ProcessMousePressed(const MouseEvent& e, DragInfo* drop_info); - bool ProcessMouseDragged(const MouseEvent& e, DragInfo* drop_info); - void ProcessMouseReleased(const MouseEvent& e, bool canceled); + bool ProcessMousePressed(const MouseEvent& event, DragInfo* drop_info); + bool ProcessMouseDragged(const MouseEvent& event, DragInfo* drop_info); + void ProcessMouseReleased(const MouseEvent& event, bool canceled); #if defined(TOUCH_UI) // RootView will invoke this with incoming TouchEvents. Returns the // the result of OnTouchEvent. - TouchStatus ProcessTouchEvent(const TouchEvent& e); + TouchStatus ProcessTouchEvent(const TouchEvent& event); #endif // Accelerators -------------------------------------------------------------- @@ -1266,7 +1266,7 @@ class View : public AcceleratorTarget { // Starts a drag and drop operation originating from this view. This invokes // WriteDragData to write the data and GetDragOperations to determine the // supported drag operations. When done, OnDragDone is invoked. - void DoDrag(const MouseEvent& e, const gfx::Point& press_pt); + void DoDrag(const MouseEvent& event, const gfx::Point& press_pt); ////////////////////////////////////////////////////////////////////////////// |