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

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

Issue 469973005: Add tests for the BrowserActionsContainer in overflow mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Peter's Created 6 years, 4 months 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 | Annotate | Revision Log
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/extensions/extension_toolbar_model.h" 10 #include "chrome/browser/extensions/extension_toolbar_model.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // specifies which view is the |owner_view|. For documentation of 136 // specifies which view is the |owner_view|. For documentation of
137 // |main_container|, see class comments. 137 // |main_container|, see class comments.
138 BrowserActionsContainer(Browser* browser, 138 BrowserActionsContainer(Browser* browser,
139 views::View* owner_view, 139 views::View* owner_view,
140 BrowserActionsContainer* main_container); 140 BrowserActionsContainer* main_container);
141 virtual ~BrowserActionsContainer(); 141 virtual ~BrowserActionsContainer();
142 142
143 void Init(); 143 void Init();
144 144
145 // Get the number of browser actions being displayed. 145 // Get the number of browser actions being displayed.
146 int num_browser_actions() const { return browser_action_views_.size(); } 146 size_t num_browser_actions() const { return browser_action_views_.size(); }
147 147
148 // Whether we are performing resize animation on the container. 148 // Whether we are performing resize animation on the container.
149 bool animating() const { return animation_target_size_ > 0; } 149 bool animating() const { return animation_target_size_ > 0; }
150 150
151 // Returns the chevron, if any. 151 // Returns the chevron, if any.
152 views::View* chevron() { return chevron_; } 152 views::View* chevron() { return chevron_; }
153 const views::View* chevron() const { return chevron_; } 153 const views::View* chevron() const { return chevron_; }
154 154
155 // Returns the profile this container is associated with. 155 // Returns the profile this container is associated with.
156 Profile* profile() const { return profile_; } 156 Profile* profile() const { return profile_; }
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 431
432 // Handles delayed showing of the overflow menu when hovering. 432 // Handles delayed showing of the overflow menu when hovering.
433 base::WeakPtrFactory<BrowserActionsContainer> show_menu_task_factory_; 433 base::WeakPtrFactory<BrowserActionsContainer> show_menu_task_factory_;
434 434
435 ObserverList<BrowserActionsContainerObserver> observers_; 435 ObserverList<BrowserActionsContainerObserver> observers_;
436 436
437 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); 437 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer);
438 }; 438 };
439 439
440 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTIONS_CONTAINER_H_ 440 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTIONS_CONTAINER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698