| 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_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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 132 |
| 133 virtual void OnTemporaryTextMaybeChanged(const string16& display_text, | 133 virtual void OnTemporaryTextMaybeChanged(const string16& display_text, |
| 134 bool save_original_selection); | 134 bool save_original_selection); |
| 135 virtual bool OnInlineAutocompleteTextMaybeChanged( | 135 virtual bool OnInlineAutocompleteTextMaybeChanged( |
| 136 const string16& display_text, size_t user_text_length); | 136 const string16& display_text, size_t user_text_length); |
| 137 virtual void OnRevertTemporaryText(); | 137 virtual void OnRevertTemporaryText(); |
| 138 virtual void OnBeforePossibleChange(); | 138 virtual void OnBeforePossibleChange(); |
| 139 virtual bool OnAfterPossibleChange(); | 139 virtual bool OnAfterPossibleChange(); |
| 140 virtual gfx::NativeView GetNativeView() const; | 140 virtual gfx::NativeView GetNativeView() const; |
| 141 virtual CommandUpdater* GetCommandUpdater(); | 141 virtual CommandUpdater* GetCommandUpdater(); |
| 142 virtual void SetInstantSuggestion(const string16& suggestion); | 142 virtual void SetInstantSuggestion(const string16& suggestion, |
| 143 bool animate_to_complete); |
| 143 virtual string16 GetInstantSuggestion() const; | 144 virtual string16 GetInstantSuggestion() const; |
| 144 virtual int TextWidth() const; | 145 virtual int TextWidth() const; |
| 145 virtual bool IsImeComposing() const; | 146 virtual bool IsImeComposing() const; |
| 146 | 147 |
| 147 #if defined(TOOLKIT_VIEWS) | 148 #if defined(TOOLKIT_VIEWS) |
| 148 virtual views::View* AddToView(views::View* parent); | 149 virtual views::View* AddToView(views::View* parent); |
| 149 virtual int OnPerformDrop(const views::DropTargetEvent& event); | 150 virtual int OnPerformDrop(const views::DropTargetEvent& event); |
| 150 | 151 |
| 151 // A factory method to create an AutocompleteEditView instance initialized for | 152 // A factory method to create an AutocompleteEditView instance initialized for |
| 152 // linux_views. This currently returns an instance of | 153 // linux_views. This currently returns an instance of |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 540 // The view that is going to be focused next. Only valid while handling | 541 // The view that is going to be focused next. Only valid while handling |
| 541 // "focus-out" events. | 542 // "focus-out" events. |
| 542 GtkWidget* going_to_focus_; | 543 GtkWidget* going_to_focus_; |
| 543 | 544 |
| 544 ui::GtkSignalRegistrar signals_; | 545 ui::GtkSignalRegistrar signals_; |
| 545 | 546 |
| 546 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewGtk); | 547 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewGtk); |
| 547 }; | 548 }; |
| 548 | 549 |
| 549 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_ | 550 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_ |
| OLD | NEW |