| 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/message_loop.h" |
| 15 #include "base/pickle.h" | 15 #include "base/pickle.h" |
| 16 #include "base/strings/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 "grit/ui_strings.h" | 18 #include "grit/ui_strings.h" |
| 19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
| 20 #include "ui/base/clipboard/clipboard.h" | 20 #include "ui/base/clipboard/clipboard.h" |
| 21 #include "ui/base/clipboard/scoped_clipboard_writer.h" | 21 #include "ui/base/clipboard/scoped_clipboard_writer.h" |
| 22 #include "ui/base/dragdrop/drag_drop_types.h" | 22 #include "ui/base/dragdrop/drag_drop_types.h" |
| 23 #include "ui/base/events/event.h" | 23 #include "ui/base/events/event.h" |
| 24 #include "ui/base/ime/text_input_client.h" | 24 #include "ui/base/ime/text_input_client.h" |
| (...skipping 1877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1902 switches::kEnableTouchDragDrop); | 1902 switches::kEnableTouchDragDrop); |
| 1903 | 1903 |
| 1904 // Create a long press event in the selected region should start a drag. | 1904 // Create a long press event in the selected region should start a drag. |
| 1905 GestureEventForTest long_press(ui::ET_GESTURE_LONG_PRESS, | 1905 GestureEventForTest long_press(ui::ET_GESTURE_LONG_PRESS, |
| 1906 kStringPoint.x(), kStringPoint.y(), 0); | 1906 kStringPoint.x(), kStringPoint.y(), 0); |
| 1907 textfield_view_->OnGestureEvent(&long_press); | 1907 textfield_view_->OnGestureEvent(&long_press); |
| 1908 EXPECT_TRUE(textfield_view_->CanStartDragForView(NULL, | 1908 EXPECT_TRUE(textfield_view_->CanStartDragForView(NULL, |
| 1909 kStringPoint, kStringPoint)); | 1909 kStringPoint, kStringPoint)); |
| 1910 } | 1910 } |
| 1911 } // namespace views | 1911 } // namespace views |
| OLD | NEW |