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

Side by Side Diff: views/controls/textfield/native_textfield_gtk.cc

Issue 7265011: RenderText API Outline. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Almost at parity with the current implementation. Created 9 years, 5 months 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
OLDNEW
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 #include <gdk/gdkkeysyms.h> 5 #include <gdk/gdkkeysyms.h>
6 #include <gtk/gtk.h> 6 #include <gtk/gtk.h>
7 7
8 #include "views/controls/textfield/native_textfield_gtk.h" 8 #include "views/controls/textfield/native_textfield_gtk.h"
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 void NativeTextfieldGtk::HandleFocus() { 276 void NativeTextfieldGtk::HandleFocus() {
277 } 277 }
278 278
279 void NativeTextfieldGtk::HandleBlur() { 279 void NativeTextfieldGtk::HandleBlur() {
280 } 280 }
281 281
282 TextInputClient* NativeTextfieldGtk::GetTextInputClient() { 282 TextInputClient* NativeTextfieldGtk::GetTextInputClient() {
283 return NULL; 283 return NULL;
284 } 284 }
285 285
286 TextStyle* NativeTextfieldGtk::CreateTextStyle() { 286 void NativeTextfieldGtk::ApplyStyleRange(gfx::StyleRange style) {
287 NOTREACHED();
288 return NULL;
289 }
290
291 void NativeTextfieldGtk::ApplyTextStyle(const TextStyle* style,
292 const ui::Range& range) {
293 NOTREACHED(); 287 NOTREACHED();
294 } 288 }
295 289
296 void NativeTextfieldGtk::ClearAllTextStyles() { 290 void NativeTextfieldGtk::ApplyDefaultStyle() {
297 NOTREACHED(); 291 NOTREACHED();
298 } 292 }
299 293
300 void NativeTextfieldGtk::ClearEditHistory() { 294 void NativeTextfieldGtk::ClearEditHistory() {
301 NOTREACHED(); 295 NOTREACHED();
302 } 296 }
303 297
304 void NativeTextfieldGtk::OnActivate(GtkWidget* native_widget) { 298 void NativeTextfieldGtk::OnActivate(GtkWidget* native_widget) {
305 GdkEvent* event = gtk_get_current_event(); 299 GdkEvent* event = gtk_get_current_event();
306 if (!event || event->type != GDK_KEY_PRESS) 300 if (!event || event->type != GDK_KEY_PRESS)
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 424
431 // static 425 // static
432 NativeTextfieldWrapper* NativeTextfieldWrapper::CreateWrapper( 426 NativeTextfieldWrapper* NativeTextfieldWrapper::CreateWrapper(
433 Textfield* field) { 427 Textfield* field) {
434 if (Widget::IsPureViews()) 428 if (Widget::IsPureViews())
435 return new NativeTextfieldViews(field); 429 return new NativeTextfieldViews(field);
436 return new NativeTextfieldGtk(field); 430 return new NativeTextfieldGtk(field);
437 } 431 }
438 432
439 } // namespace views 433 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698