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

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

Issue 10412052: Pull browser action click logic into ToolbarModelController, so that when I (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: views changes Created 8 years, 7 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 (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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698