Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Side by Side Diff: chrome/browser/autocomplete/autocomplete_edit_view_gtk.h

Issue 362018: Reverts some useful code accidently removed by CL http://codereview.chromium.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 gboolean HandleKeyPress(GtkWidget* widget, GdkEventKey* event); 140 gboolean HandleKeyPress(GtkWidget* widget, GdkEventKey* event);
141 141
142 static gboolean HandleKeyReleaseThunk(GtkWidget* widget, 142 static gboolean HandleKeyReleaseThunk(GtkWidget* widget,
143 GdkEventKey* event, 143 GdkEventKey* event,
144 gpointer self) { 144 gpointer self) {
145 return reinterpret_cast<AutocompleteEditViewGtk*>(self)->HandleKeyRelease( 145 return reinterpret_cast<AutocompleteEditViewGtk*>(self)->HandleKeyRelease(
146 widget, event); 146 widget, event);
147 } 147 }
148 gboolean HandleKeyRelease(GtkWidget* widget, GdkEventKey* event); 148 gboolean HandleKeyRelease(GtkWidget* widget, GdkEventKey* event);
149 149
150 #if defined(OS_CHROMEOS)
151 static gboolean HandleViewButtonPressThunk(GtkWidget* view, 150 static gboolean HandleViewButtonPressThunk(GtkWidget* view,
152 GdkEventButton* event, 151 GdkEventButton* event,
153 gpointer self) { 152 gpointer self) {
154 return reinterpret_cast<AutocompleteEditViewGtk*>(self)-> 153 return reinterpret_cast<AutocompleteEditViewGtk*>(self)->
155 HandleViewButtonPress(event); 154 HandleViewButtonPress(event);
156 } 155 }
157 gboolean HandleViewButtonPress(GdkEventButton* event); 156 gboolean HandleViewButtonPress(GdkEventButton* event);
158 157
159 static gboolean HandleViewButtonReleaseThunk(GtkWidget* view, 158 static gboolean HandleViewButtonReleaseThunk(GtkWidget* view,
160 GdkEventButton* event, 159 GdkEventButton* event,
161 gpointer self) { 160 gpointer self) {
162 return reinterpret_cast<AutocompleteEditViewGtk*>(self)-> 161 return reinterpret_cast<AutocompleteEditViewGtk*>(self)->
163 HandleViewButtonRelease(event); 162 HandleViewButtonRelease(event);
164 } 163 }
165 gboolean HandleViewButtonRelease(GdkEventButton* event); 164 gboolean HandleViewButtonRelease(GdkEventButton* event);
166 #endif
167 165
168 static gboolean HandleViewFocusInThunk(GtkWidget* view, 166 static gboolean HandleViewFocusInThunk(GtkWidget* view,
169 GdkEventFocus* event, 167 GdkEventFocus* event,
170 gpointer self) { 168 gpointer self) {
171 return reinterpret_cast<AutocompleteEditViewGtk*>(self)-> 169 return reinterpret_cast<AutocompleteEditViewGtk*>(self)->
172 HandleViewFocusIn(); 170 HandleViewFocusIn();
173 } 171 }
174 gboolean HandleViewFocusIn(); 172 gboolean HandleViewFocusIn();
175 173
176 static gboolean HandleViewFocusOutThunk(GtkWidget* view, 174 static gboolean HandleViewFocusOutThunk(GtkWidget* view,
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 441
444 // Contains the character range that should have a strikethrough (used for 442 // Contains the character range that should have a strikethrough (used for
445 // insecure schemes). If the range is size one or less, no strikethrough 443 // insecure schemes). If the range is size one or less, no strikethrough
446 // is needed. 444 // is needed.
447 CharRange strikethrough_; 445 CharRange strikethrough_;
448 446
449 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewGtk); 447 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewGtk);
450 }; 448 };
451 449
452 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_ 450 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698