| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 virtual bool OnAfterPossibleChange(); | 140 virtual bool OnAfterPossibleChange(); |
| 141 virtual gfx::NativeView GetNativeView() const; | 141 virtual gfx::NativeView GetNativeView() const; |
| 142 virtual CommandUpdater* GetCommandUpdater(); | 142 virtual CommandUpdater* GetCommandUpdater(); |
| 143 virtual void SetInstantSuggestion(const string16& suggestion); | 143 virtual void SetInstantSuggestion(const string16& suggestion); |
| 144 virtual string16 GetInstantSuggestion() const; | 144 virtual string16 GetInstantSuggestion() const; |
| 145 virtual int TextWidth() const; | 145 virtual int TextWidth() const; |
| 146 virtual bool IsImeComposing() const; | 146 virtual bool IsImeComposing() const; |
| 147 | 147 |
| 148 #if defined(TOOLKIT_VIEWS) | 148 #if defined(TOOLKIT_VIEWS) |
| 149 virtual views::View* AddToView(views::View* parent); | 149 virtual views::View* AddToView(views::View* parent); |
| 150 virtual int OnPerformDrop(const views::DropTargetEvent& event); |
| 150 | 151 |
| 151 // Enables accessibility on AutocompleteEditView. | 152 // Enables accessibility on AutocompleteEditView. |
| 152 void EnableAccessibility(); | 153 void EnableAccessibility(); |
| 153 | 154 |
| 154 // A factory method to create an AutocompleteEditView instance initialized for | 155 // A factory method to create an AutocompleteEditView instance initialized for |
| 155 // linux_views. This currently returns an instance of | 156 // linux_views. This currently returns an instance of |
| 156 // AutocompleteEditViewGtk only, but AutocompleteEditViewViews will | 157 // AutocompleteEditViewGtk only, but AutocompleteEditViewViews will |
| 157 // be added as an option when TextfieldViews is enabled. | 158 // be added as an option when TextfieldViews is enabled. |
| 158 static AutocompleteEditView* Create(AutocompleteEditController* controller, | 159 static AutocompleteEditView* Create(AutocompleteEditController* controller, |
| 159 ToolbarModel* toolbar_model, | 160 ToolbarModel* toolbar_model, |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 ui::GtkSignalRegistrar signals_; | 543 ui::GtkSignalRegistrar signals_; |
| 543 | 544 |
| 544 #if defined(TOOLKIT_VIEWS) | 545 #if defined(TOOLKIT_VIEWS) |
| 545 scoped_ptr<AccessibleWidgetHelper> accessible_widget_helper_; | 546 scoped_ptr<AccessibleWidgetHelper> accessible_widget_helper_; |
| 546 #endif | 547 #endif |
| 547 | 548 |
| 548 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewGtk); | 549 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewGtk); |
| 549 }; | 550 }; |
| 550 | 551 |
| 551 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_ | 552 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_ |
| OLD | NEW |