Index: chrome/browser/ui/views/toolbar/browser_actions_container.h |
diff --git a/chrome/browser/ui/views/toolbar/browser_actions_container.h b/chrome/browser/ui/views/toolbar/browser_actions_container.h |
index 18b527b8e7add2fd90cb326904ca2a9b44e6a330..efd8a723c02b4b7593e5ff49a8ef7a111b3be1d4 100644 |
--- a/chrome/browser/ui/views/toolbar/browser_actions_container.h |
+++ b/chrome/browser/ui/views/toolbar/browser_actions_container.h |
@@ -127,7 +127,6 @@ class BrowserActionsContainer |
public views::ResizeAreaDelegate, |
public gfx::AnimationDelegate, |
public extensions::ExtensionToolbarModel::Observer, |
- public BrowserActionOverflowMenuController::Observer, |
public BrowserActionView::Delegate, |
public extensions::ExtensionKeybindingRegistry::Delegate { |
public: |
@@ -152,8 +151,8 @@ class BrowserActionsContainer |
bool animating() const { return animation_target_size_ > 0; } |
// Returns the chevron, if any. |
- views::View* chevron() { return chevron_; } |
- const views::View* chevron() const { return chevron_; } |
+ views::View* chevron() { return chevron_.get(); } |
+ const views::View* chevron() const { return chevron_.get(); } |
// Returns the profile this container is associated with. |
Profile* profile() const { return profile_; } |
@@ -239,10 +238,6 @@ class BrowserActionsContainer |
virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE; |
virtual void AnimationEnded(const gfx::Animation* animation) OVERRIDE; |
- // Overridden from BrowserActionOverflowMenuController::Observer: |
- virtual void NotifyMenuDeleted( |
- BrowserActionOverflowMenuController* controller) OVERRIDE; |
- |
// Overridden from BrowserActionView::Delegate: |
virtual content::WebContents* GetCurrentWebContents() OVERRIDE; |
virtual bool ShownInsideMenu() const OVERRIDE; |
@@ -317,18 +312,6 @@ class BrowserActionsContainer |
// are displayed. |
void SetChevronVisibility(); |
- // Closes the overflow menu if open. |
- void CloseOverflowMenu(); |
- |
- // Cancels the timer for showing the drop down menu. |
- void StopShowFolderDropMenuTimer(); |
- |
- // Show the drop down folder after a slight delay. |
- void StartShowFolderDropMenuTimer(); |
- |
- // Show the overflow menu. |
- void ShowDropFolder(); |
- |
// Given a number of |icons| and whether to |display_chevron|, returns the |
// amount of pixels needed to draw the entire container. For convenience, |
// callers can set |icons| to -1 to mean "all icons". |
@@ -398,15 +381,11 @@ class BrowserActionsContainer |
// The chevron for accessing the overflow items. Can be NULL when in overflow |
// mode or if the toolbar is permanently suppressing the chevron menu. |
- views::MenuButton* chevron_; |
+ scoped_ptr<ChevronMenuButton> chevron_; |
// The painter used when we are highlighting a subset of extensions. |
scoped_ptr<views::Painter> highlight_painter_; |
- // The menu to show for the overflow button (chevron). This class manages its |
- // own lifetime so that it can stay alive during drag and drop operations. |
- BrowserActionOverflowMenuController* overflow_menu_; |
- |
// The animation that happens when the container snaps to place. |
scoped_ptr<gfx::SlideAnimation> resize_animation_; |
@@ -435,9 +414,6 @@ class BrowserActionsContainer |
// icons in the application menu). |
static int icons_per_overflow_menu_row_; |
- // Handles delayed showing of the overflow menu when hovering. |
- base::WeakPtrFactory<BrowserActionsContainer> show_menu_task_factory_; |
- |
DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); |
}; |