| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| 6 #define CHROME_BROWSER_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 6 #define CHROME_BROWSER_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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 // Event Handlers | 171 // Event Handlers |
| 172 virtual bool OnMousePressed(const views::MouseEvent& event); | 172 virtual bool OnMousePressed(const views::MouseEvent& event); |
| 173 virtual bool OnMouseDragged(const views::MouseEvent& event); | 173 virtual bool OnMouseDragged(const views::MouseEvent& event); |
| 174 virtual void OnMouseReleased(const views::MouseEvent& event, bool canceled); | 174 virtual void OnMouseReleased(const views::MouseEvent& event, bool canceled); |
| 175 #endif | 175 #endif |
| 176 | 176 |
| 177 // AutocompleteEditController | 177 // AutocompleteEditController |
| 178 virtual void OnAutocompleteWillClosePopup(); | 178 virtual void OnAutocompleteWillClosePopup(); |
| 179 virtual void OnAutocompleteLosingFocus(gfx::NativeView view_gaining_focus); | 179 virtual void OnAutocompleteLosingFocus(gfx::NativeView view_gaining_focus); |
| 180 virtual void OnAutocompleteWillAccept(); | 180 virtual void OnAutocompleteWillAccept(); |
| 181 virtual void OnPopupBoundsChanged(const gfx::Rect& bounds); |
| 181 virtual void OnAutocompleteAccept(const GURL& url, | 182 virtual void OnAutocompleteAccept(const GURL& url, |
| 182 WindowOpenDisposition disposition, | 183 WindowOpenDisposition disposition, |
| 183 PageTransition::Type transition, | 184 PageTransition::Type transition, |
| 184 const GURL& alternate_nav_url); | 185 const GURL& alternate_nav_url); |
| 185 virtual void OnChanged(); | 186 virtual void OnChanged(); |
| 186 virtual void OnInputInProgress(bool in_progress); | 187 virtual void OnInputInProgress(bool in_progress); |
| 187 virtual void OnKillFocus(); | 188 virtual void OnKillFocus(); |
| 188 virtual void OnSetFocus(); | 189 virtual void OnSetFocus(); |
| 189 virtual SkBitmap GetFavIcon() const; | 190 virtual SkBitmap GetFavIcon() const; |
| 190 virtual std::wstring GetTitle() const; | 191 virtual std::wstring GetTitle() const; |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 // Should the match preview be updated? This is set to false in | 394 // Should the match preview be updated? This is set to false in |
| 394 // OnAutocompleteWillAccept and true in OnAutocompleteAccept. This is needed | 395 // OnAutocompleteWillAccept and true in OnAutocompleteAccept. This is needed |
| 395 // as prior to accepting an autocomplete suggestion the model is reverted | 396 // as prior to accepting an autocomplete suggestion the model is reverted |
| 396 // which triggers resetting the match preview. | 397 // which triggers resetting the match preview. |
| 397 bool update_match_preview_; | 398 bool update_match_preview_; |
| 398 | 399 |
| 399 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); | 400 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); |
| 400 }; | 401 }; |
| 401 | 402 |
| 402 #endif // CHROME_BROWSER_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 403 #endif // CHROME_BROWSER_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| OLD | NEW |