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" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
12 #include "gfx/gtk_util.h" | 12 #include "ui/gfx/gtk_util.h" |
13 #include "gfx/insets.h" | 13 #include "ui/gfx/insets.h" |
14 #include "gfx/skia_utils_gtk.h" | 14 #include "ui/gfx/skia_utils_gtk.h" |
15 #include "views/controls/textfield/gtk_views_entry.h" | 15 #include "views/controls/textfield/gtk_views_entry.h" |
16 #include "views/controls/textfield/gtk_views_textview.h" | 16 #include "views/controls/textfield/gtk_views_textview.h" |
17 #include "views/controls/textfield/native_textfield_views.h" | 17 #include "views/controls/textfield/native_textfield_views.h" |
18 #include "views/controls/textfield/textfield.h" | 18 #include "views/controls/textfield/textfield.h" |
19 #include "views/widget/widget_gtk.h" | 19 #include "views/widget/widget_gtk.h" |
20 | 20 |
21 namespace views { | 21 namespace views { |
22 | 22 |
23 // A character used to hide a text in password mode. | 23 // A character used to hide a text in password mode. |
24 static const char kPasswordChar = '*'; | 24 static const char kPasswordChar = '*'; |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 // static | 482 // static |
483 NativeTextfieldWrapper* NativeTextfieldWrapper::CreateWrapper( | 483 NativeTextfieldWrapper* NativeTextfieldWrapper::CreateWrapper( |
484 Textfield* field) { | 484 Textfield* field) { |
485 if (NativeTextfieldViews::IsTextfieldViewsEnabled()) { | 485 if (NativeTextfieldViews::IsTextfieldViewsEnabled()) { |
486 return new NativeTextfieldViews(field); | 486 return new NativeTextfieldViews(field); |
487 } | 487 } |
488 return new NativeTextfieldGtk(field); | 488 return new NativeTextfieldGtk(field); |
489 } | 489 } |
490 | 490 |
491 } // namespace views | 491 } // namespace views |
OLD | NEW |