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

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

Issue 12218122: Revert pagescale from plugin placeholder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 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
149 Delegate* delegate_; 146 Delegate* delegate_;
150 // Destroys itself. 147 // Destroys itself.
151 WebKit::WebCursorInfo current_cursor_; 148 WebKit::WebCursorInfo current_cursor_;
152 // Owns us. 149 // Owns us.
153 WebKit::WebPluginContainer* container_; 150 WebKit::WebPluginContainer* container_;
154 // Owned by us, deleted via |close()|. 151 // Owned by us, deleted via |close()|.
155 WebKit::WebView* web_view_; 152 WebKit::WebView* web_view_;
156 gfx::Rect rect_; 153 gfx::Rect rect_;
157 154
158 WebKit::WebURLResponse response_; 155 WebKit::WebURLResponse response_;
159 std::list<std::string> data_; 156 std::list<std::string> data_;
160 bool finished_loading_; 157 bool finished_loading_;
161 scoped_ptr<WebKit::WebURLError> error_; 158 scoped_ptr<WebKit::WebURLError> error_;
162 WebKit::WebString old_title_; 159 WebKit::WebString old_title_;
163 }; 160 };
164 161
165 } // namespace webkit 162 } // namespace webkit
166 163
167 #endif // WEBKIT_PLUGINS_WEBVIEW_PLUGIN_H_ 164 #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