OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 | 7 |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 virtual void SetFocus(); | 103 virtual void SetFocus(); |
104 | 104 |
105 virtual void OnTemporaryTextMaybeChanged(const std::wstring& display_text, | 105 virtual void OnTemporaryTextMaybeChanged(const std::wstring& display_text, |
106 bool save_original_selection); | 106 bool save_original_selection); |
107 virtual bool OnInlineAutocompleteTextMaybeChanged( | 107 virtual bool OnInlineAutocompleteTextMaybeChanged( |
108 const std::wstring& display_text, size_t user_text_length); | 108 const std::wstring& display_text, size_t user_text_length); |
109 virtual void OnRevertTemporaryText(); | 109 virtual void OnRevertTemporaryText(); |
110 virtual void OnBeforePossibleChange(); | 110 virtual void OnBeforePossibleChange(); |
111 virtual bool OnAfterPossibleChange(); | 111 virtual bool OnAfterPossibleChange(); |
112 virtual gfx::NativeView GetNativeView() const; | 112 virtual gfx::NativeView GetNativeView() const; |
113 virtual gfx::NativeView GetFocusNativeView() const; | |
114 | 113 |
115 // Overridden from NotificationObserver: | 114 // Overridden from NotificationObserver: |
116 virtual void Observe(NotificationType type, | 115 virtual void Observe(NotificationType type, |
117 const NotificationSource& source, | 116 const NotificationSource& source, |
118 const NotificationDetails& details); | 117 const NotificationDetails& details); |
119 | 118 |
120 void SetBaseColor(); | 119 void SetBaseColor(); |
121 | 120 |
122 private: | 121 private: |
123 // TODO(deanm): Would be nice to insulate the thunkers better, etc. | 122 // TODO(deanm): Would be nice to insulate the thunkers better, etc. |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 | 410 |
412 // Indicates if an Enter key press is inserted as text. | 411 // Indicates if an Enter key press is inserted as text. |
413 // It's used in the key press handler to determine if an Enter key event is | 412 // It's used in the key press handler to determine if an Enter key event is |
414 // handled by IME or not. | 413 // handled by IME or not. |
415 bool enter_was_inserted_; | 414 bool enter_was_inserted_; |
416 | 415 |
417 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewGtk); | 416 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewGtk); |
418 }; | 417 }; |
419 | 418 |
420 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_ | 419 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_ |
OLD | NEW |