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

Side by Side Diff: components/test_runner/web_widget_test_client.h

Issue 2475443003: Drag-and-drop: Move startDrag out of WebView/RenderView. (Closed)
Patch Set: Removed unneeded declarations. Created 4 years, 1 month 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_CLIENT_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_CLIENT_H_
6 #define COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_CLIENT_H_ 6 #define COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_CLIENT_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "third_party/WebKit/public/web/WebWidgetClient.h" 10 #include "third_party/WebKit/public/web/WebWidgetClient.h"
(...skipping 16 matching lines...) Expand all
27 // WebWidgetTestClient or to the product code (i.e. currently to 27 // WebWidgetTestClient or to the product code (i.e. currently to
28 // RenderViewImpl). 28 // RenderViewImpl).
29 class WebWidgetTestClient : public blink::WebWidgetClient { 29 class WebWidgetTestClient : public blink::WebWidgetClient {
30 public: 30 public:
31 // Caller has to ensure that all arguments (i.e. |test_runner| and |delegate|) 31 // Caller has to ensure that all arguments (i.e. |test_runner| and |delegate|)
32 // live longer than |this|. 32 // live longer than |this|.
33 WebWidgetTestClient(WebWidgetTestProxyBase* web_widget_test_proxy_base); 33 WebWidgetTestClient(WebWidgetTestProxyBase* web_widget_test_proxy_base);
34 34
35 virtual ~WebWidgetTestClient(); 35 virtual ~WebWidgetTestClient();
36 36
37 // WebWidgetClient overrides needed by WebViewTestProxy. 37 // WebWidgetClient overrides needed by WebWidgetTestProxy.
38 blink::WebScreenInfo screenInfo() override; 38 blink::WebScreenInfo screenInfo() override;
39 void scheduleAnimation() override; 39 void scheduleAnimation() override;
40 bool requestPointerLock() override; 40 bool requestPointerLock() override;
41 void requestPointerUnlock() override; 41 void requestPointerUnlock() override;
42 bool isPointerLocked() override; 42 bool isPointerLocked() override;
43 void setToolTipText(const blink::WebString& text, 43 void setToolTipText(const blink::WebString& text,
44 blink::WebTextDirection direction) override; 44 blink::WebTextDirection direction) override;
45 void resetInputMethod() override; 45 void resetInputMethod() override;
46 void startDragging(blink::WebReferrerPolicy policy,
47 const blink::WebDragData& data,
48 blink::WebDragOperationsMask mask,
49 const blink::WebImage& image,
50 const blink::WebPoint& point) override;
46 51
47 private: 52 private:
48 void AnimateNow(); 53 void AnimateNow();
49 54
50 WebTestDelegate* delegate(); 55 WebTestDelegate* delegate();
51 TestRunnerForSpecificView* view_test_runner(); 56 TestRunnerForSpecificView* view_test_runner();
52 TestRunner* test_runner(); 57 TestRunner* test_runner();
53 58
54 // Borrowed pointer to WebWidgetTestProxyBase. 59 // Borrowed pointer to WebWidgetTestProxyBase.
55 WebWidgetTestProxyBase* web_widget_test_proxy_base_; 60 WebWidgetTestProxyBase* web_widget_test_proxy_base_;
56 61
57 bool animation_scheduled_; 62 bool animation_scheduled_;
58 63
59 base::WeakPtrFactory<WebWidgetTestClient> weak_factory_; 64 base::WeakPtrFactory<WebWidgetTestClient> weak_factory_;
60 65
61 DISALLOW_COPY_AND_ASSIGN(WebWidgetTestClient); 66 DISALLOW_COPY_AND_ASSIGN(WebWidgetTestClient);
62 }; 67 };
63 68
64 } // namespace test_runner 69 } // namespace test_runner
65 70
66 #endif // COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_CLIENT_H_ 71 #endif // COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_CLIENT_H_
OLDNEW
« no previous file with comments | « components/test_runner/web_view_test_proxy.h ('k') | components/test_runner/web_widget_test_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698