OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 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. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_HOST_DELEGATE_H_ | |
6 #define CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_HOST_DELEGATE_H_ | |
7 #pragma once | |
8 | |
9 #include "ui/gfx/size.h" | |
10 #include "ui/views/drag_controller.h" | |
11 | |
12 class BrowserActionButton; | |
13 class Browser; | |
14 | |
15 namespace views { | |
16 class FocusManager; | |
17 } | |
18 | |
19 | |
20 class BrowserActionsHostDelegate : public views::DragController { | |
Aaron Boodman
2012/06/12 05:53:44
Can this be BrowserActionView::Delegate? That woul
yefimt
2012/06/13 01:24:21
Done.
| |
21 public: | |
22 virtual Browser* GetBrowser() const = 0; | |
23 virtual int GetCurrentTabId() const = 0; | |
24 virtual void OnBrowserActionExecuted(BrowserActionButton* button) = 0; | |
25 virtual void OnBrowserActionVisibilityChanged() = 0; | |
Aaron Boodman
2012/06/12 05:53:44
This one is not used. Seems like something only th
yefimt
2012/06/13 01:24:21
this delegate is used by both menu and toolbar
On
| |
26 virtual gfx::Size GetContentOffset() const = 0; | |
Aaron Boodman
2012/06/12 05:53:44
This needs a better name.
yefimt
2012/06/13 01:24:21
Renamed to GetViewContentOffset()
On 2012/06/12 05
| |
27 | |
28 | |
29 protected: | |
30 BrowserActionsHostDelegate() {} | |
31 virtual ~BrowserActionsHostDelegate() {} | |
32 }; | |
33 | |
34 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_HOST_DELEGATE_H_ | |
OLD | NEW |