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

Side by Side Diff: chrome/browser/ui/views/location_bar/location_bar_view.h

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to 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 (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_LOCATION_BAR_LOCATION_BAR_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 int* right_margin); 251 int* right_margin);
252 252
253 // LocationBar: 253 // LocationBar:
254 virtual void FocusLocation(bool select_all) OVERRIDE; 254 virtual void FocusLocation(bool select_all) OVERRIDE;
255 virtual void Revert() OVERRIDE; 255 virtual void Revert() OVERRIDE;
256 virtual OmniboxView* GetOmniboxView() OVERRIDE; 256 virtual OmniboxView* GetOmniboxView() OVERRIDE;
257 257
258 // views::View: 258 // views::View:
259 virtual bool HasFocus() const OVERRIDE; 259 virtual bool HasFocus() const OVERRIDE;
260 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; 260 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE;
261 virtual gfx::Size GetPreferredSize() OVERRIDE; 261 virtual gfx::Size GetPreferredSize() const OVERRIDE;
262 virtual void Layout() OVERRIDE; 262 virtual void Layout() OVERRIDE;
263 263
264 // OmniboxEditController: 264 // OmniboxEditController:
265 virtual void Update(const content::WebContents* contents) OVERRIDE; 265 virtual void Update(const content::WebContents* contents) OVERRIDE;
266 virtual void ShowURL() OVERRIDE; 266 virtual void ShowURL() OVERRIDE;
267 virtual ToolbarModel* GetToolbarModel() OVERRIDE; 267 virtual ToolbarModel* GetToolbarModel() OVERRIDE;
268 virtual content::WebContents* GetWebContents() OVERRIDE; 268 virtual content::WebContents* GetWebContents() OVERRIDE;
269 269
270 // Thickness of the edges of the omnibox background images, in normal mode. 270 // Thickness of the edges of the omnibox background images, in normal mode.
271 static const int kNormalEdgeThickness; 271 static const int kNormalEdgeThickness;
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 // Used to register for notifications received by NotificationObserver. 525 // Used to register for notifications received by NotificationObserver.
526 content::NotificationRegistrar registrar_; 526 content::NotificationRegistrar registrar_;
527 527
528 // Used to bind callback functions to this object. 528 // Used to bind callback functions to this object.
529 base::WeakPtrFactory<LocationBarView> weak_ptr_factory_; 529 base::WeakPtrFactory<LocationBarView> weak_ptr_factory_;
530 530
531 DISALLOW_COPY_AND_ASSIGN(LocationBarView); 531 DISALLOW_COPY_AND_ASSIGN(LocationBarView);
532 }; 532 };
533 533
534 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ 534 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698