| 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 "views/controls/textfield/textfield.h" | 5 #include "views/controls/textfield/textfield.h" |
| 6 | 6 |
| 7 #if defined(OS_LINUX) | 7 #if defined(OS_LINUX) |
| 8 #include <gdk/gdkkeysyms.h> | 8 #include <gdk/gdkkeysyms.h> |
| 9 #endif | 9 #endif |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
| 14 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
| 15 #include "gfx/insets.h" | |
| 16 #include "ui/base/keycodes/keyboard_codes.h" | 15 #include "ui/base/keycodes/keyboard_codes.h" |
| 16 #include "ui/gfx/insets.h" |
| 17 #include "views/controls/native/native_view_host.h" | 17 #include "views/controls/native/native_view_host.h" |
| 18 #include "views/controls/textfield/native_textfield_wrapper.h" | 18 #include "views/controls/textfield/native_textfield_wrapper.h" |
| 19 #include "views/widget/widget.h" | 19 #include "views/widget/widget.h" |
| 20 | 20 |
| 21 #if defined(OS_LINUX) | 21 #if defined(OS_LINUX) |
| 22 #include "ui/base/keycodes/keyboard_code_conversion_gtk.h" | 22 #include "ui/base/keycodes/keyboard_code_conversion_gtk.h" |
| 23 #elif defined(OS_WIN) | 23 #elif defined(OS_WIN) |
| 24 #include "base/win/win_util.h" | 24 #include "base/win/win_util.h" |
| 25 // TODO(beng): this should be removed when the OS_WIN hack from | 25 // TODO(beng): this should be removed when the OS_WIN hack from |
| 26 // ViewHierarchyChanged is removed. | 26 // ViewHierarchyChanged is removed. |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 } | 410 } |
| 411 #endif | 411 #endif |
| 412 } | 412 } |
| 413 } | 413 } |
| 414 | 414 |
| 415 std::string Textfield::GetClassName() const { | 415 std::string Textfield::GetClassName() const { |
| 416 return kViewClassName; | 416 return kViewClassName; |
| 417 } | 417 } |
| 418 | 418 |
| 419 } // namespace views | 419 } // namespace views |
| OLD | NEW |