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

Side by Side Diff: third_party/WebKit/Source/web/tests/SelectionTestBase.h

Issue 1774123006: Implement link selection on alt+mouse drag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months 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
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698