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

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

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More compile fix for ToT Created 6 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 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 // Executes |command| registered by |extension|. 166 // Executes |command| registered by |extension|.
167 void ExecuteExtensionCommand(const extensions::Extension* extension, 167 void ExecuteExtensionCommand(const extensions::Extension* extension,
168 const extensions::Command& command); 168 const extensions::Command& command);
169 169
170 // Add or remove an observer. 170 // Add or remove an observer.
171 void AddObserver(BrowserActionsContainerObserver* observer); 171 void AddObserver(BrowserActionsContainerObserver* observer);
172 void RemoveObserver(BrowserActionsContainerObserver* observer); 172 void RemoveObserver(BrowserActionsContainerObserver* observer);
173 173
174 // Overridden from views::View: 174 // Overridden from views::View:
175 virtual gfx::Size GetPreferredSize() OVERRIDE; 175 virtual gfx::Size GetPreferredSize() const OVERRIDE;
176 virtual gfx::Size GetMinimumSize() OVERRIDE; 176 virtual gfx::Size GetMinimumSize() const OVERRIDE;
177 virtual void Layout() OVERRIDE; 177 virtual void Layout() OVERRIDE;
178 virtual bool GetDropFormats(int* formats, 178 virtual bool GetDropFormats(int* formats,
179 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) OVERRIDE; 179 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) OVERRIDE;
180 virtual bool AreDropTypesRequired() OVERRIDE; 180 virtual bool AreDropTypesRequired() OVERRIDE;
181 virtual bool CanDrop(const ui::OSExchangeData& data) OVERRIDE; 181 virtual bool CanDrop(const ui::OSExchangeData& data) OVERRIDE;
182 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE; 182 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE;
183 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE; 183 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE;
184 virtual void OnDragExited() OVERRIDE; 184 virtual void OnDragExited() OVERRIDE;
185 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; 185 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE;
186 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; 186 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE;
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 403
404 // Handles delayed showing of the overflow menu when hovering. 404 // Handles delayed showing of the overflow menu when hovering.
405 base::WeakPtrFactory<BrowserActionsContainer> show_menu_task_factory_; 405 base::WeakPtrFactory<BrowserActionsContainer> show_menu_task_factory_;
406 406
407 ObserverList<BrowserActionsContainerObserver> observers_; 407 ObserverList<BrowserActionsContainerObserver> observers_;
408 408
409 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); 409 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer);
410 }; 410 };
411 411
412 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTIONS_CONTAINER_H_ 412 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTIONS_CONTAINER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/toolbar/browser_action_view.cc ('k') | chrome/browser/ui/views/toolbar/browser_actions_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698