Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: views/controls/textfield/native_textfield_views_unittest.cc

Issue 8598031: views: Move widget/ directory to ui/views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reland for real Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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" 24 #include "ui/views/events/event.h"
25 #include "ui/views/focus/focus_manager.h" 25 #include "ui/views/focus/focus_manager.h"
26 #include "ui/views/ime/mock_input_method.h" 26 #include "ui/views/ime/mock_input_method.h"
27 #include "ui/views/test/test_views_delegate.h" 27 #include "ui/views/test/test_views_delegate.h"
28 #include "ui/views/test/views_test_base.h" 28 #include "ui/views/test/views_test_base.h"
29 #include "ui/views/widget/native_widget_private.h"
30 #include "ui/views/widget/widget.h"
29 #include "views/controls/textfield/native_textfield_views.h" 31 #include "views/controls/textfield/native_textfield_views.h"
30 #include "views/controls/textfield/textfield.h" 32 #include "views/controls/textfield/textfield.h"
31 #include "views/controls/textfield/textfield_controller.h" 33 #include "views/controls/textfield/textfield_controller.h"
32 #include "views/controls/textfield/textfield_views_model.h" 34 #include "views/controls/textfield/textfield_views_model.h"
33 #include "views/views_delegate.h" 35 #include "views/views_delegate.h"
34 #include "views/widget/native_widget_private.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
43 #define MAYBE_DragAndDrop_Canceled DISABLED_DragAndDrop_Canceled 43 #define MAYBE_DragAndDrop_Canceled DISABLED_DragAndDrop_Canceled
44 #else 44 #else
45 #define MAYBE_DragAndDrop_InitiateDrag DragAndDrop_InitiateDrag 45 #define MAYBE_DragAndDrop_InitiateDrag DragAndDrop_InitiateDrag
(...skipping 1520 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « views/controls/textfield/native_textfield_views.cc ('k') | views/controls/textfield/native_textfield_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698