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

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

Issue 10387047: views: Refactor the way we register BrowserActionsContainer prefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 public views::DragController, 268 public views::DragController,
269 public views::ResizeAreaDelegate, 269 public views::ResizeAreaDelegate,
270 public ui::AnimationDelegate, 270 public ui::AnimationDelegate,
271 public ExtensionToolbarModel::Observer, 271 public ExtensionToolbarModel::Observer,
272 public BrowserActionOverflowMenuController::Observer, 272 public BrowserActionOverflowMenuController::Observer,
273 public views::Widget::Observer { 273 public views::Widget::Observer {
274 public: 274 public:
275 BrowserActionsContainer(Browser* browser, views::View* owner_view); 275 BrowserActionsContainer(Browser* browser, views::View* owner_view);
276 virtual ~BrowserActionsContainer(); 276 virtual ~BrowserActionsContainer();
277 277
278 static void RegisterUserPrefs(PrefService* prefs);
279
280 void Init(); 278 void Init();
281 279
282 // Get the number of browser actions being displayed. 280 // Get the number of browser actions being displayed.
283 int num_browser_actions() const { return browser_action_views_.size(); } 281 int num_browser_actions() const { return browser_action_views_.size(); }
284 282
285 // Whether we are performing resize animation on the container. 283 // Whether we are performing resize animation on the container.
286 bool animating() const { return animation_target_size_ > 0; } 284 bool animating() const { return animation_target_size_ > 0; }
287 285
288 // Returns the chevron, if any. 286 // Returns the chevron, if any.
289 views::View* chevron() { return chevron_; } 287 views::View* chevron() { return chevron_; }
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 520
523 base::WeakPtrFactory<BrowserActionsContainer> task_factory_; 521 base::WeakPtrFactory<BrowserActionsContainer> task_factory_;
524 522
525 // Handles delayed showing of the overflow menu when hovering. 523 // Handles delayed showing of the overflow menu when hovering.
526 base::WeakPtrFactory<BrowserActionsContainer> show_menu_task_factory_; 524 base::WeakPtrFactory<BrowserActionsContainer> show_menu_task_factory_;
527 525
528 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); 526 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer);
529 }; 527 };
530 528
531 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ 529 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_
OLDNEW
« no previous file with comments | « chrome/browser/prefs/browser_prefs.cc ('k') | chrome/browser/ui/views/browser_actions_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698