Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / ui / views / toolbar / toolbar_action_view_delegate_views.h
blob216be70367fadb67fdec00e7bafdff915e5268f1
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_ACTION_VIEW_DELEGATE_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_ACTION_VIEW_DELEGATE_VIEWS_H_
8 #include "chrome/browser/ui/toolbar/toolbar_action_view_delegate.h"
10 namespace views {
11 class FocusManager;
12 class View;
15 // The views-specific methods necessary for a ToolbarActionViewDelegate.
16 class ToolbarActionViewDelegateViews : public ToolbarActionViewDelegate {
17 public:
18 // Returns |this| as a view. We need this because our subclasses implement
19 // different kinds of views, and inheriting View here is a really bad idea.
20 virtual views::View* GetAsView() = 0;
22 // Returns the FocusManager to use when registering accelerators.
23 virtual views::FocusManager* GetFocusManagerForAccelerator() = 0;
25 // Returns the reference view for the extension action's popup.
26 virtual views::View* GetReferenceViewForPopup() = 0;
28 protected:
29 ~ToolbarActionViewDelegateViews() override {}
32 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_ACTION_VIEW_DELEGATE_VIEWS_H_