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

Unified Diff: components/plugins/renderer/webview_plugin.h

Issue 27197004: Move renderer plugin code into a new component (re-land) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move renderer plugin code into a new component (re-land) - fix nit and rebase Created 7 years, 2 months 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 | « components/plugins/renderer/plugin_placeholder.cc ('k') | components/plugins/renderer/webview_plugin.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/plugins/renderer/webview_plugin.h
diff --git a/chrome/renderer/plugins/webview_plugin.h b/components/plugins/renderer/webview_plugin.h
similarity index 87%
rename from chrome/renderer/plugins/webview_plugin.h
rename to components/plugins/renderer/webview_plugin.h
index 791539ce1a1c11ea1fa73c0399fd6e1a2f559429..13e480c40bfe9d0867150572490d48618e3e4d36 100644
--- a/chrome/renderer/plugins/webview_plugin.h
+++ b/components/plugins/renderer/webview_plugin.h
@@ -1,9 +1,9 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_RENDERER_PLUGINS_WEBVIEW_PLUGIN_H_
-#define CHROME_RENDERER_PLUGINS_WEBVIEW_PLUGIN_H_
+#ifndef COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_
+#define COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_
#include <list>
@@ -53,11 +53,10 @@ class WebViewPlugin : public WebKit::WebPlugin,
// Convenience method to set up a new WebViewPlugin using |preferences|
// and displaying |html_data|. |url| should be a (fake) chrome:// URL; it is
// only used for navigation and never actually resolved.
- static WebViewPlugin* Create(
- Delegate* delegate,
- const WebPreferences& preferences,
- const std::string& html_data,
- const GURL& url);
+ static WebViewPlugin* Create(Delegate* delegate,
+ const WebPreferences& preferences,
+ const std::string& html_data,
+ const GURL& url);
WebKit::WebView* web_view() { return web_view_; }
@@ -82,8 +81,10 @@ class WebViewPlugin : public WebKit::WebPlugin,
// Coordinates are relative to the containing window.
virtual void updateGeometry(
- const WebKit::WebRect& frame_rect, const WebKit::WebRect& clip_rect,
- const WebKit::WebVector<WebKit::WebRect>& cut_out_rects, bool is_visible);
+ const WebKit::WebRect& frame_rect,
+ const WebKit::WebRect& clip_rect,
+ const WebKit::WebVector<WebKit::WebRect>& cut_out_rects,
+ bool is_visible);
virtual void updateFocus(bool) {}
virtual void updateVisibility(bool) {}
@@ -98,8 +99,8 @@ class WebViewPlugin : public WebKit::WebPlugin,
virtual void didFailLoading(const WebKit::WebURLError& error);
// Called in response to WebPluginContainer::loadFrameRequest
- virtual void didFinishLoadingFrameRequest(
- const WebKit::WebURL& url, void* notifyData) {}
+ virtual void didFinishLoadingFrameRequest(const WebKit::WebURL& url,
+ void* notifyData) {}
virtual void didFailLoadingFrameRequest(const WebKit::WebURL& url,
void* notify_data,
const WebKit::WebURLError& error) {}
@@ -151,4 +152,4 @@ class WebViewPlugin : public WebKit::WebPlugin,
WebKit::WebString old_title_;
};
-#endif // CHROME_RENDERER_PLUGINS_WEBVIEW_PLUGIN_H_
+#endif // COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_
« no previous file with comments | « components/plugins/renderer/plugin_placeholder.cc ('k') | components/plugins/renderer/webview_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698