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

Side by Side Diff: webkit/glue/plugins/webview_plugin.cc

Issue 5998002: Revert "Move the NPAPI files from webkit/glue/plugins to webkit/plugins/npapi" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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 | Annotate | Revision Log
« no previous file with comments | « webkit/glue/plugins/webview_plugin.h ('k') | webkit/glue/webkit_glue.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/glue/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/WebKit/chromium/public/WebCursorInfo.h" 9 #include "third_party/WebKit/WebKit/chromium/public/WebCursorInfo.h"
10 #include "third_party/WebKit/WebKit/chromium/public/WebElement.h" 10 #include "third_party/WebKit/WebKit/chromium/public/WebElement.h"
11 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" 11 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h"
12 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" 12 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h"
13 #include "third_party/WebKit/WebKit/chromium/public/WebPluginContainer.h" 13 #include "third_party/WebKit/WebKit/chromium/public/WebPluginContainer.h"
14 #include "third_party/WebKit/WebKit/chromium/public/WebSize.h" 14 #include "third_party/WebKit/WebKit/chromium/public/WebSize.h"
15 #include "third_party/WebKit/WebKit/chromium/public/WebURL.h" 15 #include "third_party/WebKit/WebKit/chromium/public/WebURL.h"
(...skipping 20 matching lines...) Expand all
36 using WebKit::WebPluginContainer; 36 using WebKit::WebPluginContainer;
37 using WebKit::WebPoint; 37 using WebKit::WebPoint;
38 using WebKit::WebRect; 38 using WebKit::WebRect;
39 using WebKit::WebSize; 39 using WebKit::WebSize;
40 using WebKit::WebURLError; 40 using WebKit::WebURLError;
41 using WebKit::WebURLRequest; 41 using WebKit::WebURLRequest;
42 using WebKit::WebURLResponse; 42 using WebKit::WebURLResponse;
43 using WebKit::WebVector; 43 using WebKit::WebVector;
44 using WebKit::WebView; 44 using WebKit::WebView;
45 45
46 namespace webkit {
47 namespace npapi {
48
49 WebViewPlugin::WebViewPlugin(WebViewPlugin::Delegate* delegate) 46 WebViewPlugin::WebViewPlugin(WebViewPlugin::Delegate* delegate)
50 : delegate_(delegate), 47 : delegate_(delegate),
51 container_(NULL), 48 container_(NULL),
52 finished_loading_(false) { 49 finished_loading_(false) {
53 web_view_ = WebView::create(this, NULL); 50 web_view_ = WebView::create(this, NULL);
54 web_view_->initializeMainFrame(this); 51 web_view_->initializeMainFrame(this);
55 } 52 }
56 53
57 // static 54 // static
58 WebViewPlugin* WebViewPlugin::Create(WebViewPlugin::Delegate* delegate, 55 WebViewPlugin* WebViewPlugin::Create(WebViewPlugin::Delegate* delegate,
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 WebURLError WebViewPlugin::cancelledError(WebFrame* frame, 226 WebURLError WebViewPlugin::cancelledError(WebFrame* frame,
230 const WebURLRequest& request) { 227 const WebURLRequest& request) {
231 // Return an error with a non-zero reason so isNull() on the corresponding 228 // Return an error with a non-zero reason so isNull() on the corresponding
232 // ResourceError is false. 229 // ResourceError is false.
233 WebURLError error; 230 WebURLError error;
234 error.domain = "WebViewPlugin"; 231 error.domain = "WebViewPlugin";
235 error.reason = -1; 232 error.reason = -1;
236 error.unreachableURL = request.url(); 233 error.unreachableURL = request.url();
237 return error; 234 return error;
238 } 235 }
239
240 } // namespace npapi
241 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/glue/plugins/webview_plugin.h ('k') | webkit/glue/webkit_glue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698