OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <set> | 5 #include <set> |
6 #include <string> | 6 #include <string> |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
15 #include "base/pickle.h" | 15 #include "base/pickle.h" |
16 #include "base/string16.h" | 16 #include "base/strings/string16.h" |
17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
18 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
19 #include "grit/ui_strings.h" | 19 #include "grit/ui_strings.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
21 #include "ui/base/clipboard/clipboard.h" | 21 #include "ui/base/clipboard/clipboard.h" |
22 #include "ui/base/clipboard/scoped_clipboard_writer.h" | 22 #include "ui/base/clipboard/scoped_clipboard_writer.h" |
23 #include "ui/base/dragdrop/drag_drop_types.h" | 23 #include "ui/base/dragdrop/drag_drop_types.h" |
24 #include "ui/base/events/event.h" | 24 #include "ui/base/events/event.h" |
25 #include "ui/base/ime/text_input_client.h" | 25 #include "ui/base/ime/text_input_client.h" |
26 #include "ui/base/keycodes/keyboard_codes.h" | 26 #include "ui/base/keycodes/keyboard_codes.h" |
(...skipping 1894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1921 textfield_view_->OnGestureEvent(&tap_down); | 1921 textfield_view_->OnGestureEvent(&tap_down); |
1922 // Create a new long press event since the previous one is not marked handled. | 1922 // Create a new long press event since the previous one is not marked handled. |
1923 GestureEventForTest long_press2(ui::ET_GESTURE_LONG_PRESS, eventX, eventY, 0); | 1923 GestureEventForTest long_press2(ui::ET_GESTURE_LONG_PRESS, eventX, eventY, 0); |
1924 textfield_view_->OnGestureEvent(&long_press2); | 1924 textfield_view_->OnGestureEvent(&long_press2); |
1925 EXPECT_STR_EQ("hello", textfield_->GetSelectedText()); | 1925 EXPECT_STR_EQ("hello", textfield_->GetSelectedText()); |
1926 EXPECT_FALSE(GetTouchSelectionController()); | 1926 EXPECT_FALSE(GetTouchSelectionController()); |
1927 } | 1927 } |
1928 #endif | 1928 #endif |
1929 | 1929 |
1930 } // namespace views | 1930 } // namespace views |
OLD | NEW |