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_GTK_LOCATION_BAR_VIEW_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_ |
6 #define CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_ | 6 #define CHROME_BROWSER_UI_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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 bool AcceptCurrentInstantPreview(); |
100 virtual void OnSetSuggestedSearchText(const string16& suggested_text); | |
101 virtual void OnPopupBoundsChanged(const gfx::Rect& bounds); | 100 virtual void OnPopupBoundsChanged(const gfx::Rect& bounds); |
102 virtual void OnAutocompleteAccept(const GURL& url, | 101 virtual void OnAutocompleteAccept(const GURL& url, |
103 WindowOpenDisposition disposition, | 102 WindowOpenDisposition disposition, |
104 PageTransition::Type transition, | 103 PageTransition::Type transition, |
105 const GURL& alternate_nav_url); | 104 const GURL& alternate_nav_url); |
106 virtual void OnChanged(); | 105 virtual void OnChanged(); |
107 virtual void OnSelectionBoundsChanged(); | 106 virtual void OnSelectionBoundsChanged(); |
108 virtual void OnKillFocus(); | 107 virtual void OnKillFocus(); |
109 virtual void OnSetFocus(); | 108 virtual void OnSetFocus(); |
110 virtual void OnInputInProgress(bool in_progress); | 109 virtual void OnInputInProgress(bool in_progress); |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 // The last search keyword that was shown via the |tab_to_search_box_|. | 425 // The last search keyword that was shown via the |tab_to_search_box_|. |
427 std::wstring last_keyword_; | 426 std::wstring last_keyword_; |
428 | 427 |
429 // True if we should update the instant controller when the edit text changes. | 428 // True if we should update the instant controller when the edit text changes. |
430 bool update_instant_; | 429 bool update_instant_; |
431 | 430 |
432 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); | 431 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); |
433 }; | 432 }; |
434 | 433 |
435 #endif // CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_ | 434 #endif // CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_ |
OLD | NEW |