| Index: chrome/browser/ui/toolbar/test_toolbar_action_view_controller.h
|
| diff --git a/chrome/browser/ui/toolbar/test_toolbar_action_view_controller.h b/chrome/browser/ui/toolbar/test_toolbar_action_view_controller.h
|
| index c3170770b4e67f49f1c0450c515603ad3f6320d5..8f43e3423e791d37e4ab0291d968343f4fd2416b 100644
|
| --- a/chrome/browser/ui/toolbar/test_toolbar_action_view_controller.h
|
| +++ b/chrome/browser/ui/toolbar/test_toolbar_action_view_controller.h
|
| @@ -33,6 +33,7 @@ class TestToolbarActionViewController : public ToolbarActionViewController {
|
| bool CanDrag() const override;
|
| bool ExecuteAction(bool by_user) override;
|
| void UpdateState() override;
|
| + bool DisabledClickOpensMenu() const override;
|
|
|
| // Instruct the controller to fake showing a popup.
|
| void ShowPopup(bool by_user);
|
| @@ -42,6 +43,7 @@ class TestToolbarActionViewController : public ToolbarActionViewController {
|
| void SetTooltip(const base::string16& tooltip);
|
| void SetEnabled(bool is_enabled);
|
| void SetWantsToRun(bool wants_to_run);
|
| + void SetDisabledClickOpensMenu(bool disabled_click_opens_menu);
|
|
|
| int execute_action_count() const { return execute_action_count_; }
|
|
|
| @@ -65,6 +67,9 @@ class TestToolbarActionViewController : public ToolbarActionViewController {
|
| // Whether or not the action wants to run. Defaults to false.
|
| bool wants_to_run_;
|
|
|
| + // Whether or not a click on a disabled action should open the context menu.
|
| + bool disabled_click_opens_menu_;
|
| +
|
| // The number of times the action would have been executed.
|
| int execute_action_count_;
|
|
|
|
|