| 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 <string> | 5 #include <string> |
| 6 #include <vector> | 6 #include <vector> |
| 7 | 7 |
| 8 #include "base/auto_reset.h" | 8 #include "base/auto_reset.h" |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
| 13 #include "base/pickle.h" | 13 #include "base/pickle.h" |
| 14 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
| 15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 17 #include "ui/base/clipboard/clipboard.h" | 17 #include "ui/base/clipboard/clipboard.h" |
| 18 #include "ui/base/clipboard/scoped_clipboard_writer.h" | 18 #include "ui/base/clipboard/scoped_clipboard_writer.h" |
| 19 #include "ui/base/dragdrop/drag_drop_types.h" | 19 #include "ui/base/dragdrop/drag_drop_types.h" |
| 20 #include "ui/base/ime/text_input_client.h" | 20 #include "ui/base/ime/text_input_client.h" |
| 21 #include "ui/base/keycodes/keyboard_codes.h" | 21 #include "ui/base/keycodes/keyboard_codes.h" |
| 22 #include "ui/base/l10n/l10n_util.h" | 22 #include "ui/base/l10n/l10n_util.h" |
| 23 #include "ui/gfx/render_text.h" | 23 #include "ui/gfx/render_text.h" |
| 24 #include "ui/views/events/event.h" |
| 25 #include "ui/views/focus/focus_manager.h" |
| 24 #include "ui/views/ime/mock_input_method.h" | 26 #include "ui/views/ime/mock_input_method.h" |
| 25 #include "ui/views/test/test_views_delegate.h" | 27 #include "ui/views/test/test_views_delegate.h" |
| 26 #include "ui/views/test/views_test_base.h" | 28 #include "ui/views/test/views_test_base.h" |
| 27 #include "views/controls/textfield/native_textfield_views.h" | 29 #include "views/controls/textfield/native_textfield_views.h" |
| 28 #include "views/controls/textfield/textfield.h" | 30 #include "views/controls/textfield/textfield.h" |
| 29 #include "views/controls/textfield/textfield_controller.h" | 31 #include "views/controls/textfield/textfield_controller.h" |
| 30 #include "views/controls/textfield/textfield_views_model.h" | 32 #include "views/controls/textfield/textfield_views_model.h" |
| 31 #include "views/events/event.h" | |
| 32 #include "views/focus/focus_manager.h" | |
| 33 #include "views/views_delegate.h" | 33 #include "views/views_delegate.h" |
| 34 #include "views/widget/native_widget_private.h" | 34 #include "views/widget/native_widget_private.h" |
| 35 #include "views/widget/widget.h" | 35 #include "views/widget/widget.h" |
| 36 | 36 |
| 37 // Drag and drop for aura in linux hasn't been implemented yet. | 37 // Drag and drop for aura in linux hasn't been implemented yet. |
| 38 // Bug http://crbug.com/97845 | 38 // Bug http://crbug.com/97845 |
| 39 #if defined(USE_AURA) && defined(OS_LINUX) | 39 #if defined(USE_AURA) && defined(OS_LINUX) |
| 40 #define MAYBE_DragAndDrop_InitiateDrag DISABLED_DragAndDrop_InitiateDrag | 40 #define MAYBE_DragAndDrop_InitiateDrag DISABLED_DragAndDrop_InitiateDrag |
| 41 #define MAYBE_DragAndDrop_ToTheLeft DISABLED_DragAndDrop_ToTheLeft | 41 #define MAYBE_DragAndDrop_ToTheLeft DISABLED_DragAndDrop_ToTheLeft |
| 42 #define MAYBE_DragAndDrop_ToTheRight DISABLED_DragAndDrop_ToTheRight | 42 #define MAYBE_DragAndDrop_ToTheRight DISABLED_DragAndDrop_ToTheRight |
| (...skipping 1523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1566 #else | 1566 #else |
| 1567 EXPECT_EQ(500U, textfield_->GetCursorPosition()); | 1567 EXPECT_EQ(500U, textfield_->GetCursorPosition()); |
| 1568 #endif | 1568 #endif |
| 1569 #endif // !defined(OS_WIN) | 1569 #endif // !defined(OS_WIN) |
| 1570 | 1570 |
| 1571 // Reset locale. | 1571 // Reset locale. |
| 1572 base::i18n::SetICUDefaultLocale(locale); | 1572 base::i18n::SetICUDefaultLocale(locale); |
| 1573 } | 1573 } |
| 1574 | 1574 |
| 1575 } // namespace views | 1575 } // namespace views |
| OLD | NEW |