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"
15 // The views-specific methods necessary for a ToolbarActionViewDelegate.
16 class ToolbarActionViewDelegateViews
: public ToolbarActionViewDelegate
{
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;
29 ~ToolbarActionViewDelegateViews() override
{}
32 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_ACTION_VIEW_DELEGATE_VIEWS_H_