OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
363 // Overridden from BrowserActionOverflowMenuController::Observer: | 363 // Overridden from BrowserActionOverflowMenuController::Observer: |
364 virtual void NotifyMenuDeleted( | 364 virtual void NotifyMenuDeleted( |
365 BrowserActionOverflowMenuController* controller) OVERRIDE; | 365 BrowserActionOverflowMenuController* controller) OVERRIDE; |
366 | 366 |
367 // Overridden from views::Widget::Observer | 367 // Overridden from views::Widget::Observer |
368 virtual void OnWidgetClosing(views::Widget* widget) OVERRIDE; | 368 virtual void OnWidgetClosing(views::Widget* widget) OVERRIDE; |
369 | 369 |
370 // Moves a browser action with |id| to |new_index|. | 370 // Moves a browser action with |id| to |new_index|. |
371 void MoveBrowserAction(const std::string& extension_id, size_t new_index); | 371 void MoveBrowserAction(const std::string& extension_id, size_t new_index); |
372 | 372 |
373 // Show a popup. | |
374 void ShowPopup(BrowserActionButton* button, const GURL& popup_url); | |
Yoyo Zhou
2012/05/24 00:55:26
Does this need to be public?
not at google - send to devlin
2012/05/25 00:55:40
Nope. Thanks, made private (I put it here to be al
| |
375 | |
373 // Hide the current popup. | 376 // Hide the current popup. |
374 void HidePopup(); | 377 void HidePopup(); |
375 | 378 |
376 // Simulate a click on a browser action button. This should only be | 379 // Simulate a click on a browser action button. This should only be |
377 // used by unit tests. | 380 // used by unit tests. |
378 void TestExecuteBrowserAction(int index); | 381 void TestExecuteBrowserAction(int index); |
379 | 382 |
380 // Retrieve the current popup. This should only be used by unit tests. | 383 // Retrieve the current popup. This should only be used by unit tests. |
381 ExtensionPopup* TestGetPopup() { return popup_; } | 384 ExtensionPopup* TestGetPopup() { return popup_; } |
382 | 385 |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
525 | 528 |
526 base::WeakPtrFactory<BrowserActionsContainer> task_factory_; | 529 base::WeakPtrFactory<BrowserActionsContainer> task_factory_; |
527 | 530 |
528 // Handles delayed showing of the overflow menu when hovering. | 531 // Handles delayed showing of the overflow menu when hovering. |
529 base::WeakPtrFactory<BrowserActionsContainer> show_menu_task_factory_; | 532 base::WeakPtrFactory<BrowserActionsContainer> show_menu_task_factory_; |
530 | 533 |
531 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); | 534 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); |
532 }; | 535 }; |
533 | 536 |
534 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ | 537 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ |
OLD | NEW |