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_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 Loading... |
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 Loading... |
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_ |
OLD | NEW |