| 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 "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 static void HandleBeginUserActionThunk(GtkTextBuffer* unused, gpointer self) { | 102 static void HandleBeginUserActionThunk(GtkTextBuffer* unused, gpointer self) { |
| 103 reinterpret_cast<AutocompleteEditViewGtk*>(self)->HandleBeginUserAction(); | 103 reinterpret_cast<AutocompleteEditViewGtk*>(self)->HandleBeginUserAction(); |
| 104 } | 104 } |
| 105 void HandleBeginUserAction(); | 105 void HandleBeginUserAction(); |
| 106 | 106 |
| 107 static void HandleEndUserActionThunk(GtkTextBuffer* unused, gpointer self) { | 107 static void HandleEndUserActionThunk(GtkTextBuffer* unused, gpointer self) { |
| 108 reinterpret_cast<AutocompleteEditViewGtk*>(self)->HandleEndUserAction(); | 108 reinterpret_cast<AutocompleteEditViewGtk*>(self)->HandleEndUserAction(); |
| 109 } | 109 } |
| 110 void HandleEndUserAction(); | 110 void HandleEndUserAction(); |
| 111 | 111 |
| 112 static gboolean HandleKeyPressThunk(GtkWidget* widget, |
| 113 GdkEventKey* event, |
| 114 gpointer self) { |
| 115 return reinterpret_cast<AutocompleteEditViewGtk*>(self)->HandleKeyPress( |
| 116 widget, event); |
| 117 } |
| 118 gboolean HandleKeyPress(GtkWidget* widget, GdkEventKey* event); |
| 119 |
| 120 static gboolean HandleKeyReleaseThunk(GtkWidget* widget, |
| 121 GdkEventKey* event, |
| 122 gpointer self) { |
| 123 return reinterpret_cast<AutocompleteEditViewGtk*>(self)->HandleKeyRelease( |
| 124 widget, event); |
| 125 } |
| 126 gboolean HandleKeyRelease(GtkWidget* widget, GdkEventKey* event); |
| 127 |
| 112 static void HandleViewSizeRequest(GtkWidget* view, GtkRequisition* req, | 128 static void HandleViewSizeRequest(GtkWidget* view, GtkRequisition* req, |
| 113 gpointer unused); | 129 gpointer unused); |
| 114 | 130 |
| 115 static gboolean HandleViewButtonPressThunk(GtkWidget* view, | 131 static gboolean HandleViewButtonPressThunk(GtkWidget* view, |
| 116 GdkEventButton* event, | 132 GdkEventButton* event, |
| 117 gpointer self) { | 133 gpointer self) { |
| 118 return reinterpret_cast<AutocompleteEditViewGtk*>(self)-> | 134 return reinterpret_cast<AutocompleteEditViewGtk*>(self)-> |
| 119 HandleViewButtonPress(event); | 135 HandleViewButtonPress(event); |
| 120 } | 136 } |
| 121 gboolean HandleViewButtonPress(GdkEventButton* event); | 137 gboolean HandleViewButtonPress(GdkEventButton* event); |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 ToolbarModel::SecurityLevel scheme_security_level_; | 208 ToolbarModel::SecurityLevel scheme_security_level_; |
| 193 | 209 |
| 194 // Tracking state before and after a possible change. | 210 // Tracking state before and after a possible change. |
| 195 std::wstring text_before_change_; | 211 std::wstring text_before_change_; |
| 196 CharRange sel_before_change_; | 212 CharRange sel_before_change_; |
| 197 | 213 |
| 198 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewGtk); | 214 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewGtk); |
| 199 }; | 215 }; |
| 200 | 216 |
| 201 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_ | 217 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_ |
| OLD | NEW |