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

Side by Side Diff: components/test_runner/web_widget_test_proxy.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_PROXY_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_PROXY_H_
6 #define COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_PROXY_H_ 6 #define COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_PROXY_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 } 116 }
117 bool isPointerLocked() override { 117 bool isPointerLocked() override {
118 return widget_test_client()->isPointerLocked(); 118 return widget_test_client()->isPointerLocked();
119 } 119 }
120 void setToolTipText(const blink::WebString& text, 120 void setToolTipText(const blink::WebString& text,
121 blink::WebTextDirection hint) override { 121 blink::WebTextDirection hint) override {
122 Base::setToolTipText(text, hint); 122 Base::setToolTipText(text, hint);
123 widget_test_client()->setToolTipText(text, hint); 123 widget_test_client()->setToolTipText(text, hint);
124 } 124 }
125 void resetInputMethod() override { widget_test_client()->resetInputMethod(); } 125 void resetInputMethod() override { widget_test_client()->resetInputMethod(); }
126 void startDragging(blink::WebReferrerPolicy policy,
127 const blink::WebDragData& data,
128 blink::WebDragOperationsMask mask,
129 const blink::WebImage& image,
130 const blink::WebPoint& point) override {
131 widget_test_client()->startDragging(policy, data, mask, image, point);
132 // Don't forward this call to Base because we don't want to do a real
133 // drag-and-drop.
134 }
126 135
127 private: 136 private:
128 virtual ~WebWidgetTestProxy() {} 137 virtual ~WebWidgetTestProxy() {}
129 138
130 DISALLOW_COPY_AND_ASSIGN(WebWidgetTestProxy); 139 DISALLOW_COPY_AND_ASSIGN(WebWidgetTestProxy);
131 }; 140 };
132 141
133 } // namespace test_runner 142 } // namespace test_runner
134 143
135 #endif // COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_PROXY_H_ 144 #endif // COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_PROXY_H_
OLDNEW
« no previous file with comments | « components/test_runner/web_widget_test_client.cc ('k') | content/browser/renderer_host/render_view_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698