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_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_ | 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_ |
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_ | 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 PageTransition::Type transition, | 100 PageTransition::Type transition, |
101 const GURL& alternate_nav_url, | 101 const GURL& alternate_nav_url, |
102 size_t selected_line, | 102 size_t selected_line, |
103 const std::wstring& keyword); | 103 const std::wstring& keyword); |
104 | 104 |
105 virtual std::wstring GetText() const; | 105 virtual std::wstring GetText() const; |
106 | 106 |
107 virtual bool IsEditingOrEmpty() const; | 107 virtual bool IsEditingOrEmpty() const; |
108 virtual int GetIcon() const; | 108 virtual int GetIcon() const; |
109 | 109 |
110 virtual void SetUserText(const std::wstring& text) { | 110 virtual void SetUserText(const std::wstring& text); |
111 SetUserText(text, text, true); | |
112 } | |
113 virtual void SetUserText(const std::wstring& text, | 111 virtual void SetUserText(const std::wstring& text, |
114 const std::wstring& display_text, | 112 const std::wstring& display_text, |
115 bool update_popup); | 113 bool update_popup); |
116 | 114 |
117 virtual void SetWindowTextAndCaretPos(const std::wstring& text, | 115 virtual void SetWindowTextAndCaretPos(const std::wstring& text, |
118 size_t caret_pos); | 116 size_t caret_pos); |
119 | 117 |
120 virtual void SetForcedQuery(); | 118 virtual void SetForcedQuery(); |
121 | 119 |
122 virtual bool IsSelectAll(); | 120 virtual bool IsSelectAll(); |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 | 400 |
403 // Indicate if the tab to search should be enabled or not. It's true by | 401 // Indicate if the tab to search should be enabled or not. It's true by |
404 // default and will only be set to false if the location bar view is not able | 402 // default and will only be set to false if the location bar view is not able |
405 // to show the tab to search hint. | 403 // to show the tab to search hint. |
406 bool enable_tab_to_search_; | 404 bool enable_tab_to_search_; |
407 | 405 |
408 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewGtk); | 406 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewGtk); |
409 }; | 407 }; |
410 | 408 |
411 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_ | 409 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_ |
OLD | NEW |