OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE; | 195 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE; |
196 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; | 196 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; |
197 virtual void OnMouseCaptureLost() OVERRIDE; | 197 virtual void OnMouseCaptureLost() OVERRIDE; |
198 #endif | 198 #endif |
199 | 199 |
200 LocationIconView* location_icon_view() { return location_icon_view_; } | 200 LocationIconView* location_icon_view() { return location_icon_view_; } |
201 const LocationIconView* location_icon_view() const { | 201 const LocationIconView* location_icon_view() const { |
202 return location_icon_view_; | 202 return location_icon_view_; |
203 } | 203 } |
204 | 204 |
| 205 views::View* location_entry_view() const { return location_entry_view_; } |
| 206 |
205 // AutocompleteEditController | 207 // AutocompleteEditController |
206 virtual void OnAutocompleteAccept(const GURL& url, | 208 virtual void OnAutocompleteAccept(const GURL& url, |
207 WindowOpenDisposition disposition, | 209 WindowOpenDisposition disposition, |
208 content::PageTransition transition, | 210 content::PageTransition transition, |
209 const GURL& alternate_nav_url) OVERRIDE; | 211 const GURL& alternate_nav_url) OVERRIDE; |
210 virtual void OnChanged() OVERRIDE; | 212 virtual void OnChanged() OVERRIDE; |
211 virtual void OnSelectionBoundsChanged() OVERRIDE; | 213 virtual void OnSelectionBoundsChanged() OVERRIDE; |
212 virtual void OnInputInProgress(bool in_progress) OVERRIDE; | 214 virtual void OnInputInProgress(bool in_progress) OVERRIDE; |
213 virtual void OnKillFocus() OVERRIDE; | 215 virtual void OnKillFocus() OVERRIDE; |
214 virtual void OnSetFocus() OVERRIDE; | 216 virtual void OnSetFocus() OVERRIDE; |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 // While animating, the host clips the widget and draws only the bottom | 425 // While animating, the host clips the widget and draws only the bottom |
424 // part of it. The view needs to know the pixel offset at which we are drawing | 426 // part of it. The view needs to know the pixel offset at which we are drawing |
425 // the widget so that we can draw the curved edges that attach to the toolbar | 427 // the widget so that we can draw the curved edges that attach to the toolbar |
426 // in the right location. | 428 // in the right location. |
427 int animation_offset_; | 429 int animation_offset_; |
428 | 430 |
429 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); | 431 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); |
430 }; | 432 }; |
431 | 433 |
432 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 434 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
OLD | NEW |