OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef SelectionTestBase_h | |
6 #define SelectionTestBase_h | |
7 | |
8 #include "web/WebLocalFrameImpl.h" | |
9 #include "web/tests/FrameTestHelpers.h" | |
10 | |
11 #include <gtest/gtest.h> | |
12 #include <string> | |
13 | |
14 namespace blink { | |
15 class IntPoint; | |
16 class WebViewImpl; | |
17 class WebLocalFrameImpl; | |
18 | |
19 class SelectionTestBase : public ::testing::Test { | |
kotenkov
2016/03/09 17:27:59
This class is not inside the LinkSelectionTest, be
| |
20 protected: | |
21 void emulateMouseDrag(const IntPoint& downPoint, const IntPoint& upPoint, in t modifiers, | |
yosin_UTC9
2016/03/10 01:40:49
Could you avoid to use |bool| parameters?
| |
22 bool sendDownEvent = true, bool sendUpEvent = true); | |
23 | |
24 void emulateMouseClick(const IntPoint& clickPoint, WebMouseEvent::Button, in t modifiers, int count = 1); | |
25 void emulateMouseDown(const IntPoint& clickPoint, WebMouseEvent::Button, int modifiers, int count = 1); | |
26 | |
27 std::string getSelectionText(); | |
28 | |
29 FrameTestHelpers::WebViewHelper m_helper; | |
30 WebViewImpl* m_webView = nullptr; | |
31 RawPtrWillBePersistent<WebLocalFrameImpl> m_mainFrame = nullptr; | |
32 }; | |
33 | |
34 } // namespace blink | |
35 | |
36 #endif // SelectionTestBase_h | |
OLD | NEW |