OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "webkit/plugins/npapi/webview_plugin.h" | 5 #include "webkit/plugins/webview_plugin.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h" |
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" |
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSize.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSize.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" |
(...skipping 22 matching lines...) Expand all Loading... |
38 using WebKit::WebRect; | 38 using WebKit::WebRect; |
39 using WebKit::WebSize; | 39 using WebKit::WebSize; |
40 using WebKit::WebString; | 40 using WebKit::WebString; |
41 using WebKit::WebURLError; | 41 using WebKit::WebURLError; |
42 using WebKit::WebURLRequest; | 42 using WebKit::WebURLRequest; |
43 using WebKit::WebURLResponse; | 43 using WebKit::WebURLResponse; |
44 using WebKit::WebVector; | 44 using WebKit::WebVector; |
45 using WebKit::WebView; | 45 using WebKit::WebView; |
46 | 46 |
47 namespace webkit { | 47 namespace webkit { |
48 namespace npapi { | |
49 | 48 |
50 WebViewPlugin::WebViewPlugin(WebViewPlugin::Delegate* delegate) | 49 WebViewPlugin::WebViewPlugin(WebViewPlugin::Delegate* delegate) |
51 : delegate_(delegate), | 50 : delegate_(delegate), |
52 container_(NULL), | 51 container_(NULL), |
53 finished_loading_(false) { | 52 finished_loading_(false) { |
54 web_view_ = WebView::create(this); | 53 web_view_ = WebView::create(this); |
55 web_view_->initializeMainFrame(this); | 54 web_view_->initializeMainFrame(this); |
56 } | 55 } |
57 | 56 |
58 // static | 57 // static |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 error.unreachableURL = request.url(); | 242 error.unreachableURL = request.url(); |
244 return error; | 243 return error; |
245 } | 244 } |
246 | 245 |
247 void WebViewPlugin::didReceiveResponse(WebFrame* frame, | 246 void WebViewPlugin::didReceiveResponse(WebFrame* frame, |
248 unsigned identifier, | 247 unsigned identifier, |
249 const WebURLResponse& response) { | 248 const WebURLResponse& response) { |
250 WebFrameClient::didReceiveResponse(frame, identifier, response); | 249 WebFrameClient::didReceiveResponse(frame, identifier, response); |
251 } | 250 } |
252 | 251 |
253 } // namespace npapi | |
254 } // namespace webkit | 252 } // namespace webkit |
OLD | NEW |