| 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_GTK_LOCATION_BAR_VIEW_GTK_H_ | 5 #ifndef CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ |
| 6 #define CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ | 6 #define CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 | 10 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 89 |
| 90 // Set the starred state of the bookmark star. | 90 // Set the starred state of the bookmark star. |
| 91 void SetStarred(bool starred); | 91 void SetStarred(bool starred); |
| 92 | 92 |
| 93 // Implement the AutocompleteEditController interface. | 93 // Implement the AutocompleteEditController interface. |
| 94 virtual void OnAutocompleteWillClosePopup(); | 94 virtual void OnAutocompleteWillClosePopup(); |
| 95 virtual void OnAutocompleteLosingFocus(gfx::NativeView view_gaining_focus); | 95 virtual void OnAutocompleteLosingFocus(gfx::NativeView view_gaining_focus); |
| 96 virtual void OnAutocompleteWillAccept(); | 96 virtual void OnAutocompleteWillAccept(); |
| 97 // For this implementation, the parameter is ignored. | 97 // For this implementation, the parameter is ignored. |
| 98 virtual bool OnCommitSuggestedText(const std::wstring& typed_text); | 98 virtual bool OnCommitSuggestedText(const std::wstring& typed_text); |
| 99 virtual bool AcceptCurrentInstantPreview(); |
| 99 virtual void OnSetSuggestedSearchText(const string16& suggested_text); | 100 virtual void OnSetSuggestedSearchText(const string16& suggested_text); |
| 100 virtual void OnPopupBoundsChanged(const gfx::Rect& bounds); | 101 virtual void OnPopupBoundsChanged(const gfx::Rect& bounds); |
| 101 virtual void OnAutocompleteAccept(const GURL& url, | 102 virtual void OnAutocompleteAccept(const GURL& url, |
| 102 WindowOpenDisposition disposition, | 103 WindowOpenDisposition disposition, |
| 103 PageTransition::Type transition, | 104 PageTransition::Type transition, |
| 104 const GURL& alternate_nav_url); | 105 const GURL& alternate_nav_url); |
| 105 virtual void OnChanged(); | 106 virtual void OnChanged(); |
| 106 virtual void OnSelectionBoundsChanged(); | 107 virtual void OnSelectionBoundsChanged(); |
| 107 virtual void OnKillFocus(); | 108 virtual void OnKillFocus(); |
| 108 virtual void OnSetFocus(); | 109 virtual void OnSetFocus(); |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 // The last search keyword that was shown via the |tab_to_search_box_|. | 426 // The last search keyword that was shown via the |tab_to_search_box_|. |
| 426 std::wstring last_keyword_; | 427 std::wstring last_keyword_; |
| 427 | 428 |
| 428 // True if we should update the instant controller when the edit text changes. | 429 // True if we should update the instant controller when the edit text changes. |
| 429 bool update_instant_; | 430 bool update_instant_; |
| 430 | 431 |
| 431 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); | 432 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); |
| 432 }; | 433 }; |
| 433 | 434 |
| 434 #endif // CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ | 435 #endif // CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ |
| OLD | NEW |