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

Unified Diff: chrome/browser/ui/views/toolbar/toolbar_button.h

Issue 1411523009: Adds OnClickCanceled callback to views::Button (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adds NotifyReleasedWithoutClick callback to views::Button (comment) Created 5 years, 1 month 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
Index: chrome/browser/ui/views/toolbar/toolbar_button.h
diff --git a/chrome/browser/ui/views/toolbar/toolbar_button.h b/chrome/browser/ui/views/toolbar/toolbar_button.h
index f607a446475015b860253cf05b3bb0866b107a9d..5740e8466209157dd968125bbfc3b7cee0152840 100644
--- a/chrome/browser/ui/views/toolbar/toolbar_button.h
+++ b/chrome/browser/ui/views/toolbar/toolbar_button.h
@@ -66,6 +66,7 @@ class ToolbarButton : public views::LabelButton,
// views::LabelButton:
bool ShouldEnterPushedState(const ui::Event& event) override;
void NotifyClick(const ui::Event& event) override;
+ void OnClickCanceled(const ui::Event& event) override;
// Returns if menu should be shown. Override this to change default behavior.
virtual bool ShouldShowMenu();
@@ -90,7 +91,7 @@ class ToolbarButton : public views::LabelButton,
// Indicates if menu is currently showing.
bool menu_showing_;
- // Y position of mouse when left mouse button is pressed
+ // Y position of mouse when left mouse button is pressed.
int y_position_on_lbuttondown_;
// Menu runner to display drop down menu.
« no previous file with comments | « no previous file | chrome/browser/ui/views/toolbar/toolbar_button.cc » ('j') | chrome/browser/ui/views/toolbar/toolbar_button.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698