OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "config.h" | |
6 #include "core/input/EventHandler.h" | 5 #include "core/input/EventHandler.h" |
7 | 6 |
8 #include "core/dom/Document.h" | 7 #include "core/dom/Document.h" |
9 #include "core/dom/Range.h" | 8 #include "core/dom/Range.h" |
10 #include "core/editing/Editor.h" | 9 #include "core/editing/Editor.h" |
11 #include "core/editing/FrameSelection.h" | 10 #include "core/editing/FrameSelection.h" |
12 #include "core/frame/FrameView.h" | 11 #include "core/frame/FrameView.h" |
13 #include "core/frame/LocalFrame.h" | 12 #include "core/frame/LocalFrame.h" |
14 #include "core/html/HTMLDocument.h" | 13 #include "core/html/HTMLDocument.h" |
15 #include "core/page/AutoscrollController.h" | 14 #include "core/page/AutoscrollController.h" |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 ASSERT_TRUE(selection.isCaret()); | 165 ASSERT_TRUE(selection.isCaret()); |
167 EXPECT_EQ(Position(line, 0), selection.start()); | 166 EXPECT_EQ(Position(line, 0), selection.start()); |
168 | 167 |
169 TapEventBuilder tripleTapEvent(IntPoint(0, 0), 3); | 168 TapEventBuilder tripleTapEvent(IntPoint(0, 0), 3); |
170 document().frame()->eventHandler().handleGestureEvent(tripleTapEvent); | 169 document().frame()->eventHandler().handleGestureEvent(tripleTapEvent); |
171 ASSERT_TRUE(selection.isCaret()); | 170 ASSERT_TRUE(selection.isCaret()); |
172 EXPECT_EQ(Position(line, 0), selection.start()); | 171 EXPECT_EQ(Position(line, 0), selection.start()); |
173 } | 172 } |
174 | 173 |
175 } // namespace blink | 174 } // namespace blink |
OLD | NEW |