| OLD | NEW |
| 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_BROWSER_ACTIONS_CONTAINER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTIONS_CONTAINER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTIONS_CONTAINER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTIONS_CONTAINER_H_ |
| 7 | 7 |
| 8 #include "base/observer_list.h" | 8 #include "base/observer_list.h" |
| 9 #include "chrome/browser/extensions/extension_keybinding_registry.h" | 9 #include "chrome/browser/extensions/extension_keybinding_registry.h" |
| 10 #include "chrome/browser/ui/toolbar/toolbar_actions_bar.h" | 10 #include "chrome/browser/ui/toolbar/toolbar_actions_bar.h" |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 // Overridden from ToolbarActionView::Delegate: | 226 // Overridden from ToolbarActionView::Delegate: |
| 227 content::WebContents* GetCurrentWebContents() override; | 227 content::WebContents* GetCurrentWebContents() override; |
| 228 bool ShownInsideMenu() const override; | 228 bool ShownInsideMenu() const override; |
| 229 void OnToolbarActionViewDragDone() override; | 229 void OnToolbarActionViewDragDone() override; |
| 230 views::MenuButton* GetOverflowReferenceView() override; | 230 views::MenuButton* GetOverflowReferenceView() override; |
| 231 void SetPopupOwner(ToolbarActionView* popup_owner) override; | 231 void SetPopupOwner(ToolbarActionView* popup_owner) override; |
| 232 void HideActivePopup() override; | 232 void HideActivePopup() override; |
| 233 ToolbarActionView* GetMainViewForAction(ToolbarActionView* view) override; | 233 ToolbarActionView* GetMainViewForAction(ToolbarActionView* view) override; |
| 234 | 234 |
| 235 // ToolbarActionsBarDelegate: | 235 // ToolbarActionsBarDelegate: |
| 236 bool IsReady() const override; |
| 236 void AddViewForAction(ToolbarActionViewController* action, | 237 void AddViewForAction(ToolbarActionViewController* action, |
| 237 size_t index) override; | 238 size_t index) override; |
| 238 void RemoveViewForAction(ToolbarActionViewController* action) override; | 239 void RemoveViewForAction(ToolbarActionViewController* action) override; |
| 239 void RemoveAllViews() override; | 240 void RemoveAllViews() override; |
| 240 void Redraw(bool order_changed) override; | 241 void Redraw(bool order_changed) override; |
| 241 void ResizeAndAnimate(gfx::Tween::Type tween_type, | 242 void ResizeAndAnimate(gfx::Tween::Type tween_type, |
| 242 int target_width, | 243 int target_width, |
| 243 bool suppress_chevron) override; | 244 bool suppress_chevron) override; |
| 244 void SetChevronVisibility(bool chevron_visible) override; | 245 void SetChevronVisibility(bool chevron_visible) override; |
| 245 int GetWidth() const override; | 246 int GetWidth() const override; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 | 339 |
| 339 // The class that registers for keyboard shortcuts for extension commands. | 340 // The class that registers for keyboard shortcuts for extension commands. |
| 340 scoped_ptr<ExtensionKeybindingRegistryViews> extension_keybinding_registry_; | 341 scoped_ptr<ExtensionKeybindingRegistryViews> extension_keybinding_registry_; |
| 341 | 342 |
| 342 ObserverList<BrowserActionsContainerObserver> observers_; | 343 ObserverList<BrowserActionsContainerObserver> observers_; |
| 343 | 344 |
| 344 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); | 345 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); |
| 345 }; | 346 }; |
| 346 | 347 |
| 347 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTIONS_CONTAINER_H_ | 348 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTIONS_CONTAINER_H_ |
| OLD | NEW |