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

Unified Diff: webkit/plugins/webview_plugin.h

Issue 8461011: Clean up plug-in placeholders: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/plugins/npapi/webview_plugin.cc ('k') | webkit/plugins/webview_plugin.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/webview_plugin.h
diff --git a/webkit/plugins/npapi/webview_plugin.h b/webkit/plugins/webview_plugin.h
similarity index 95%
rename from webkit/plugins/npapi/webview_plugin.h
rename to webkit/plugins/webview_plugin.h
index c03c8a54c447fbd146bc62c4d391294f179af8fb..1d2a35da8fdcab6e9dc2cf4711b27bb05eb27411 100644
--- a/webkit/plugins/npapi/webview_plugin.h
+++ b/webkit/plugins/webview_plugin.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef WEBKIT_PLUGINS_NPAPI_WEBVIEW_PLUGIN_H_
-#define WEBKIT_PLUGINS_NPAPI_WEBVIEW_PLUGIN_H_
+#ifndef WEBKIT_PLUGINS_WEBVIEW_PLUGIN_H_
+#define WEBKIT_PLUGINS_WEBVIEW_PLUGIN_H_
#include <list>
@@ -13,7 +13,6 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebURLResponse.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebViewClient.h"
@@ -23,7 +22,6 @@ class WebMouseEvent;
struct WebPreferences;
namespace webkit {
-namespace npapi {
// This class implements the WebPlugin interface by forwarding drawing and
// handling input events to a WebView.
@@ -141,8 +139,11 @@ class WebViewPlugin: public WebKit::WebPlugin, public WebKit::WebViewClient,
virtual ~WebViewPlugin();
Delegate* delegate_;
+ // Destroys itself.
WebKit::WebCursorInfo current_cursor_;
+ // Owns us.
WebKit::WebPluginContainer* container_;
+ // Owned by us, deleted via |close()|.
WebKit::WebView* web_view_;
gfx::Rect rect_;
@@ -153,7 +154,6 @@ class WebViewPlugin: public WebKit::WebPlugin, public WebKit::WebViewClient,
WebKit::WebString old_title_;
};
-} // namespace npapi
} // namespace webkit
-#endif // WEBKIT_PLUGINS_NPAPI_WEBVIEW_PLUGIN_H_
+#endif // WEBKIT_PLUGINS_WEBVIEW_PLUGIN_H_
« no previous file with comments | « webkit/plugins/npapi/webview_plugin.cc ('k') | webkit/plugins/webview_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698