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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 const gfx::Font& font() const { return font_; } | 190 const gfx::Font& font() const { return font_; } |
191 | 191 |
192 #if defined(OS_WIN) && !defined(USE_AURA) | 192 #if defined(OS_WIN) && !defined(USE_AURA) |
193 // Event Handlers | 193 // Event Handlers |
194 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; | 194 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; |
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 const LocationIconView* location_icon_view() const { | 201 const LocationIconView* location_icon_view() const { |
201 return location_icon_view_; | 202 return location_icon_view_; |
202 } | 203 } |
203 | 204 |
204 // AutocompleteEditController | 205 // AutocompleteEditController |
205 virtual void OnAutocompleteAccept(const GURL& url, | 206 virtual void OnAutocompleteAccept(const GURL& url, |
206 WindowOpenDisposition disposition, | 207 WindowOpenDisposition disposition, |
207 content::PageTransition transition, | 208 content::PageTransition transition, |
208 const GURL& alternate_nav_url) OVERRIDE; | 209 const GURL& alternate_nav_url) OVERRIDE; |
209 virtual void OnChanged() OVERRIDE; | 210 virtual void OnChanged() OVERRIDE; |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 // While animating, the host clips the widget and draws only the bottom | 423 // While animating, the host clips the widget and draws only the bottom |
423 // part of it. The view needs to know the pixel offset at which we are drawing | 424 // part of it. The view needs to know the pixel offset at which we are drawing |
424 // the widget so that we can draw the curved edges that attach to the toolbar | 425 // the widget so that we can draw the curved edges that attach to the toolbar |
425 // in the right location. | 426 // in the right location. |
426 int animation_offset_; | 427 int animation_offset_; |
427 | 428 |
428 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); | 429 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); |
429 }; | 430 }; |
430 | 431 |
431 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 432 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
OLD | NEW |