Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Side by Side Diff: chrome/browser/ui/views/toolbar/browser_actions_container.h

Issue 726813002: [Extensions Toolbar] Make the ExtensionToolbarModel icon count more stable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698