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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 | 241 |
242 views::ImageView* GetLocationIconView(); | 242 views::ImageView* GetLocationIconView(); |
243 const views::ImageView* GetLocationIconView() const; | 243 const views::ImageView* GetLocationIconView() const; |
244 | 244 |
245 // Return a view suitable for anchoring location-bar-anchored bubbles to. | 245 // Return a view suitable for anchoring location-bar-anchored bubbles to. |
246 views::View* GetLocationBarAnchor(); | 246 views::View* GetLocationBarAnchor(); |
247 // Return the point suitable for anchoring location-bar-anchored bubbles at. | 247 // Return the point suitable for anchoring location-bar-anchored bubbles at. |
248 // The point will be returned in the coordinates of the LocationBarView. | 248 // The point will be returned in the coordinates of the LocationBarView. |
249 gfx::Point GetLocationBarAnchorPoint() const; | 249 gfx::Point GetLocationBarAnchorPoint() const; |
250 | 250 |
251 views::View* omnibox_view() { return omnibox_view_; } | 251 OmniboxViewViews* omnibox_view() { return omnibox_view_; } |
252 | 252 |
253 views::View* generated_credit_card_view(); | 253 views::View* generated_credit_card_view(); |
254 | 254 |
255 // OmniboxEditController: | 255 // OmniboxEditController: |
256 virtual void Update(const content::WebContents* contents) OVERRIDE; | 256 virtual void Update(const content::WebContents* contents) OVERRIDE; |
257 virtual void OnChanged() OVERRIDE; | 257 virtual void OnChanged() OVERRIDE; |
258 virtual void OnSetFocus() OVERRIDE; | 258 virtual void OnSetFocus() OVERRIDE; |
259 virtual InstantController* GetInstant() OVERRIDE; | 259 virtual InstantController* GetInstant() OVERRIDE; |
260 virtual content::WebContents* GetWebContents() OVERRIDE; | 260 virtual content::WebContents* GetWebContents() OVERRIDE; |
261 virtual ToolbarModel* GetToolbarModel() OVERRIDE; | 261 virtual ToolbarModel* GetToolbarModel() OVERRIDE; |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 // Used to register for notifications received by NotificationObserver. | 533 // Used to register for notifications received by NotificationObserver. |
534 content::NotificationRegistrar registrar_; | 534 content::NotificationRegistrar registrar_; |
535 | 535 |
536 // Used to bind callback functions to this object. | 536 // Used to bind callback functions to this object. |
537 base::WeakPtrFactory<LocationBarView> weak_ptr_factory_; | 537 base::WeakPtrFactory<LocationBarView> weak_ptr_factory_; |
538 | 538 |
539 DISALLOW_COPY_AND_ASSIGN(LocationBarView); | 539 DISALLOW_COPY_AND_ASSIGN(LocationBarView); |
540 }; | 540 }; |
541 | 541 |
542 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 542 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
OLD | NEW |