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

Side by Side Diff: chrome/browser/ui/views/toolbar/toolbar_action_view.h

Issue 2495213006: [top-chrome-md] Made extension buttons show the highlight when focused. (Closed)
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_ACTION_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_ACTION_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_ACTION_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_ACTION_VIEW_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "chrome/browser/ui/views/toolbar/toolbar_action_view_delegate_views.h" 10 #include "chrome/browser/ui/views/toolbar/toolbar_action_view_delegate_views.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 Delegate* delegate); 68 Delegate* delegate);
69 ~ToolbarActionView() override; 69 ~ToolbarActionView() override;
70 70
71 // views::MenuButton: 71 // views::MenuButton:
72 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; 72 void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
73 std::unique_ptr<views::LabelButtonBorder> CreateDefaultBorder() 73 std::unique_ptr<views::LabelButtonBorder> CreateDefaultBorder()
74 const override; 74 const override;
75 bool IsTriggerableEvent(const ui::Event& event) override; 75 bool IsTriggerableEvent(const ui::Event& event) override;
76 SkColor GetInkDropBaseColor() const override; 76 SkColor GetInkDropBaseColor() const override;
77 std::unique_ptr<views::InkDrop> CreateInkDrop() override; 77 std::unique_ptr<views::InkDrop> CreateInkDrop() override;
78 std::unique_ptr<views::InkDropRipple> CreateInkDropRipple() const override;
78 79
79 // ToolbarActionViewDelegateViews: 80 // ToolbarActionViewDelegateViews:
80 content::WebContents* GetCurrentWebContents() const override; 81 content::WebContents* GetCurrentWebContents() const override;
81 void UpdateState() override; 82 void UpdateState() override;
82 83
83 // views::MenuButtonListener: 84 // views::MenuButtonListener:
84 void OnMenuButtonClicked(views::MenuButton* source, 85 void OnMenuButtonClicked(views::MenuButton* source,
85 const gfx::Point& point, 86 const gfx::Point& point,
86 const ui::Event* event) override; 87 const ui::Event* event) override;
87 88
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 161
161 // The time the popup was last closed. 162 // The time the popup was last closed.
162 base::TimeTicks popup_closed_time_; 163 base::TimeTicks popup_closed_time_;
163 164
164 base::WeakPtrFactory<ToolbarActionView> weak_factory_; 165 base::WeakPtrFactory<ToolbarActionView> weak_factory_;
165 166
166 DISALLOW_COPY_AND_ASSIGN(ToolbarActionView); 167 DISALLOW_COPY_AND_ASSIGN(ToolbarActionView);
167 }; 168 };
168 169
169 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_ACTION_VIEW_H_ 170 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_ACTION_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698