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

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: Remove static and rename function. Created 4 years, 8 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>
tkent 2016/03/25 03:33:03 Don't use <> for 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 {
20 protected:
21 enum DragFlag {
22 SendDownEvent = 1,
23 SendUpEvent = 1 << 1
24 };
25 using DragFlags = unsigned;
26
27 void emulateMouseDrag(const IntPoint& downPoint, const IntPoint& upPoint, in t modifiers,
28 DragFlags = SendDownEvent | SendUpEvent);
29
30 void emulateMouseClick(const IntPoint& clickPoint, WebMouseEvent::Button, in t modifiers, int count = 1);
31 void emulateMouseDown(const IntPoint& clickPoint, WebMouseEvent::Button, int modifiers, int count = 1);
32
33 std::string getSelectionText();
34
35 FrameTestHelpers::WebViewHelper m_helper;
36 WebViewImpl* m_webView = nullptr;
37 RawPtrWillBePersistent<WebLocalFrameImpl> m_mainFrame = nullptr;
38 };
39
40 } // namespace blink
41
42 #endif // SelectionTestBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698