OLD | NEW |
1 // Copyright (c) 2010 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" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 } | 336 } |
337 | 337 |
338 gfx::NativeView NativeTextfieldGtk::GetTestingHandle() const { | 338 gfx::NativeView NativeTextfieldGtk::GetTestingHandle() const { |
339 return native_view(); | 339 return native_view(); |
340 } | 340 } |
341 | 341 |
342 bool NativeTextfieldGtk::IsIMEComposing() const { | 342 bool NativeTextfieldGtk::IsIMEComposing() const { |
343 return false; | 343 return false; |
344 } | 344 } |
345 | 345 |
| 346 void NativeTextfieldGtk::GetSelectedRange(TextRange* range) const { |
| 347 NOTREACHED(); |
| 348 } |
| 349 |
| 350 void NativeTextfieldGtk::SelectRange(const TextRange& range) { |
| 351 NOTREACHED(); |
| 352 } |
| 353 |
| 354 size_t NativeTextfieldGtk::GetCursorPosition() const { |
| 355 NOTREACHED(); |
| 356 return 0U; |
| 357 } |
| 358 |
346 bool NativeTextfieldGtk::HandleKeyPressed(const views::KeyEvent& e) { | 359 bool NativeTextfieldGtk::HandleKeyPressed(const views::KeyEvent& e) { |
347 return false; | 360 return false; |
348 } | 361 } |
349 | 362 |
350 bool NativeTextfieldGtk::HandleKeyReleased(const views::KeyEvent& e) { | 363 bool NativeTextfieldGtk::HandleKeyReleased(const views::KeyEvent& e) { |
351 return false; | 364 return false; |
352 } | 365 } |
353 | 366 |
354 void NativeTextfieldGtk::HandleWillGainFocus() { | 367 void NativeTextfieldGtk::HandleWillGainFocus() { |
355 } | 368 } |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 // static | 482 // static |
470 NativeTextfieldWrapper* NativeTextfieldWrapper::CreateWrapper( | 483 NativeTextfieldWrapper* NativeTextfieldWrapper::CreateWrapper( |
471 Textfield* field) { | 484 Textfield* field) { |
472 if (NativeTextfieldViews::IsTextfieldViewsEnabled()) { | 485 if (NativeTextfieldViews::IsTextfieldViewsEnabled()) { |
473 return new NativeTextfieldViews(field); | 486 return new NativeTextfieldViews(field); |
474 } | 487 } |
475 return new NativeTextfieldGtk(field); | 488 return new NativeTextfieldGtk(field); |
476 } | 489 } |
477 | 490 |
478 } // namespace views | 491 } // namespace views |
OLD | NEW |