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

Unified Diff: views/controls/button/button_dropdown.h

Issue 159838: Right clicking the back and forward buttons is buggy. A single right click op... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 4 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 | views/controls/button/button_dropdown.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/button/button_dropdown.h
===================================================================
--- views/controls/button/button_dropdown.h (revision 22914)
+++ views/controls/button/button_dropdown.h (working copy)
@@ -30,10 +30,11 @@
virtual bool GetAccessibleState(AccessibilityTypes::State* state);
private:
- // Overridden from Button
+ // Overridden from CustomButton
virtual bool OnMousePressed(const MouseEvent& e);
virtual void OnMouseReleased(const MouseEvent& e, bool canceled);
virtual bool OnMouseDragged(const MouseEvent& e);
+ virtual void OnMouseExited(const MouseEvent& e);
// Overridden from View. Used to display the right-click menu, as triggered
// by the keyboard, for instance. Using the member function ShowDropDownMenu
@@ -42,6 +43,12 @@
int y,
bool is_mouse_gesture);
+ // Overridden from CustomButton. Returns true if the button should become
+ // pressed when a user holds the mouse down over the button. For this
+ // implementation, both left and right mouse buttons can trigger a change
+ // to the PUSHED state.
+ virtual bool ShouldEnterPushedState(const MouseEvent& e);
+
// Internal function to show the dropdown menu
void ShowDropDownMenu(gfx::NativeView window);
« no previous file with comments | « no previous file | views/controls/button/button_dropdown.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698