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

Side by Side Diff: components/test_runner/web_view_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_VIEW_TEST_CLIENT_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_VIEW_TEST_CLIENT_H_
6 #define COMPONENTS_TEST_RUNNER_WEB_VIEW_TEST_CLIENT_H_ 6 #define COMPONENTS_TEST_RUNNER_WEB_VIEW_TEST_CLIENT_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "third_party/WebKit/public/web/WebViewClient.h" 9 #include "third_party/WebKit/public/web/WebViewClient.h"
10 10
(...skipping 18 matching lines...) Expand all
29 WebViewTestClient(WebViewTestProxyBase* web_view_test_proxy_base); 29 WebViewTestClient(WebViewTestProxyBase* web_view_test_proxy_base);
30 30
31 virtual ~WebViewTestClient(); 31 virtual ~WebViewTestClient();
32 32
33 // WebViewClient overrides needed by WebViewTestProxy. 33 // WebViewClient overrides needed by WebViewTestProxy.
34 void showValidationMessage(const blink::WebRect& anchor_in_root_view, 34 void showValidationMessage(const blink::WebRect& anchor_in_root_view,
35 const blink::WebString& main_message, 35 const blink::WebString& main_message,
36 blink::WebTextDirection main_message_hint, 36 blink::WebTextDirection main_message_hint,
37 const blink::WebString& sub_message, 37 const blink::WebString& sub_message,
38 blink::WebTextDirection sub_message_hint) override; 38 blink::WebTextDirection sub_message_hint) override;
39 void startDragging(blink::WebLocalFrame* frame,
40 const blink::WebDragData& data,
41 blink::WebDragOperationsMask mask,
42 const blink::WebImage& image,
43 const blink::WebPoint& point) override;
44 void didChangeContents() override; 39 void didChangeContents() override;
45 blink::WebView* createView(blink::WebLocalFrame* creator, 40 blink::WebView* createView(blink::WebLocalFrame* creator,
46 const blink::WebURLRequest& request, 41 const blink::WebURLRequest& request,
47 const blink::WebWindowFeatures& features, 42 const blink::WebWindowFeatures& features,
48 const blink::WebString& frame_name, 43 const blink::WebString& frame_name,
49 blink::WebNavigationPolicy policy, 44 blink::WebNavigationPolicy policy,
50 bool suppress_opener) override; 45 bool suppress_opener) override;
51 void setStatusText(const blink::WebString& text) override; 46 void setStatusText(const blink::WebString& text) override;
52 void printPage(blink::WebLocalFrame* frame) override; 47 void printPage(blink::WebLocalFrame* frame) override;
53 blink::WebSpeechRecognizer* speechRecognizer() override; 48 blink::WebSpeechRecognizer* speechRecognizer() override;
54 blink::WebString acceptLanguages() override; 49 blink::WebString acceptLanguages() override;
55 void didFocus() override; 50 void didFocus() override;
56 51
57 private: 52 private:
58 WebTestDelegate* delegate(); 53 WebTestDelegate* delegate();
59 TestRunner* test_runner(); 54 TestRunner* test_runner();
60 55
61 // Borrowed pointer to WebViewTestProxyBase. 56 // Borrowed pointer to WebViewTestProxyBase.
62 WebViewTestProxyBase* web_view_test_proxy_base_; 57 WebViewTestProxyBase* web_view_test_proxy_base_;
63 58
64 DISALLOW_COPY_AND_ASSIGN(WebViewTestClient); 59 DISALLOW_COPY_AND_ASSIGN(WebViewTestClient);
65 }; 60 };
66 61
67 } // namespace test_runner 62 } // namespace test_runner
68 63
69 #endif // COMPONENTS_TEST_RUNNER_WEB_VIEW_TEST_CLIENT_H_ 64 #endif // COMPONENTS_TEST_RUNNER_WEB_VIEW_TEST_CLIENT_H_
OLDNEW
« no previous file with comments | « components/plugins/renderer/webview_plugin.cc ('k') | components/test_runner/web_view_test_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698