OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_ACTIONS_CONTAINER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 | 272 |
273 void Init(); | 273 void Init(); |
274 | 274 |
275 // Get the number of browser actions being displayed. | 275 // Get the number of browser actions being displayed. |
276 int num_browser_actions() const { return browser_action_views_.size(); } | 276 int num_browser_actions() const { return browser_action_views_.size(); } |
277 | 277 |
278 // Whether we are performing resize animation on the container. | 278 // Whether we are performing resize animation on the container. |
279 bool animating() const { return animation_target_size_ > 0; } | 279 bool animating() const { return animation_target_size_ > 0; } |
280 | 280 |
281 // Returns the chevron, if any. | 281 // Returns the chevron, if any. |
| 282 views::View* chevron() { return chevron_; } |
282 const views::View* chevron() const { return chevron_; } | 283 const views::View* chevron() const { return chevron_; } |
283 | 284 |
284 // Returns the profile this container is associated with. | 285 // Returns the profile this container is associated with. |
285 Profile* profile() const { return profile_; } | 286 Profile* profile() const { return profile_; } |
286 | 287 |
287 // Returns the browser this container is associated with. | 288 // Returns the browser this container is associated with. |
288 Browser* browser() const { return browser_; } | 289 Browser* browser() const { return browser_; } |
289 | 290 |
290 // Returns the current tab's ID, or -1 if there is no current tab. | 291 // Returns the current tab's ID, or -1 if there is no current tab. |
291 int GetCurrentTabId() const; | 292 int GetCurrentTabId() const; |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 | 513 |
513 base::WeakPtrFactory<BrowserActionsContainer> task_factory_; | 514 base::WeakPtrFactory<BrowserActionsContainer> task_factory_; |
514 | 515 |
515 // Handles delayed showing of the overflow menu when hovering. | 516 // Handles delayed showing of the overflow menu when hovering. |
516 base::WeakPtrFactory<BrowserActionsContainer> show_menu_task_factory_; | 517 base::WeakPtrFactory<BrowserActionsContainer> show_menu_task_factory_; |
517 | 518 |
518 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); | 519 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); |
519 }; | 520 }; |
520 | 521 |
521 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ | 522 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ |
OLD | NEW |