| 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 #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 Loading... |
| 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(const 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 | 420 |
| 427 // static | 421 // static |
| 428 NativeTextfieldWrapper* NativeTextfieldWrapper::CreateWrapper( | 422 NativeTextfieldWrapper* NativeTextfieldWrapper::CreateWrapper( |
| 429 Textfield* field) { | 423 Textfield* field) { |
| 430 if (Widget::IsPureViews()) | 424 if (Widget::IsPureViews()) |
| 431 return new NativeTextfieldViews(field); | 425 return new NativeTextfieldViews(field); |
| 432 return new NativeTextfieldGtk(field); | 426 return new NativeTextfieldGtk(field); |
| 433 } | 427 } |
| 434 | 428 |
| 435 } // namespace views | 429 } // namespace views |
| OLD | NEW |