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

Side by Side Diff: webkit/plugins/webview_plugin.h

Issue 11359200: Upstream the pagescalefactor fix for plugin placeholder on android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix the order of #include Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | webkit/plugins/webview_plugin.cc » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 WEBKIT_PLUGINS_WEBVIEW_PLUGIN_H_ 5 #ifndef WEBKIT_PLUGINS_WEBVIEW_PLUGIN_H_
6 #define WEBKIT_PLUGINS_WEBVIEW_PLUGIN_H_ 6 #define WEBKIT_PLUGINS_WEBVIEW_PLUGIN_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // version, so we implement this method and call the default in WebFrameClient 136 // version, so we implement this method and call the default in WebFrameClient
137 // (which does nothing) to correctly overload it. 137 // (which does nothing) to correctly overload it.
138 virtual void didReceiveResponse(WebKit::WebFrame* frame, 138 virtual void didReceiveResponse(WebKit::WebFrame* frame,
139 unsigned identifier, 139 unsigned identifier,
140 const WebKit::WebURLResponse& response); 140 const WebKit::WebURLResponse& response);
141 141
142 private: 142 private:
143 friend class base::DeleteHelper<WebViewPlugin>; 143 friend class base::DeleteHelper<WebViewPlugin>;
144 virtual ~WebViewPlugin(); 144 virtual ~WebViewPlugin();
145 145
146 // Get the scale factor for the current page.
147 float GetPageScaleFactor();
148
146 Delegate* delegate_; 149 Delegate* delegate_;
147 // Destroys itself. 150 // Destroys itself.
148 WebKit::WebCursorInfo current_cursor_; 151 WebKit::WebCursorInfo current_cursor_;
149 // Owns us. 152 // Owns us.
150 WebKit::WebPluginContainer* container_; 153 WebKit::WebPluginContainer* container_;
151 // Owned by us, deleted via |close()|. 154 // Owned by us, deleted via |close()|.
152 WebKit::WebView* web_view_; 155 WebKit::WebView* web_view_;
153 gfx::Rect rect_; 156 gfx::Rect rect_;
154 157
155 WebKit::WebURLResponse response_; 158 WebKit::WebURLResponse response_;
156 std::list<std::string> data_; 159 std::list<std::string> data_;
157 bool finished_loading_; 160 bool finished_loading_;
158 scoped_ptr<WebKit::WebURLError> error_; 161 scoped_ptr<WebKit::WebURLError> error_;
159 WebKit::WebString old_title_; 162 WebKit::WebString old_title_;
160 }; 163 };
161 164
162 } // namespace webkit 165 } // namespace webkit
163 166
164 #endif // WEBKIT_PLUGINS_WEBVIEW_PLUGIN_H_ 167 #endif // WEBKIT_PLUGINS_WEBVIEW_PLUGIN_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/plugins/webview_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698