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

Side by Side Diff: components/plugins/renderer/webview_plugin.h

Issue 2369613003: Require WebLocalFrame to be created with a non-null client (Closed)
Patch Set: oops Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ 5 #ifndef COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_
6 #define COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ 6 #define COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_
7 7
8 #include <list> 8 #include <list>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 Delegate* delegate_; 147 Delegate* delegate_;
148 148
149 blink::WebCursorInfo current_cursor_; 149 blink::WebCursorInfo current_cursor_;
150 150
151 // Owns us. 151 // Owns us.
152 blink::WebPluginContainer* container_; 152 blink::WebPluginContainer* container_;
153 153
154 // Owned by us, deleted via |close()|. 154 // Owned by us, deleted via |close()|.
155 blink::WebView* web_view_; 155 blink::WebView* web_view_;
156 156
157 // Owned by us, deleted via |close()|.
158 blink::WebFrameWidget* web_frame_widget_;
159
160 // Owned by us, deleted via |close()|.
161 blink::WebFrame* web_frame_;
162 gfx::Rect rect_; 157 gfx::Rect rect_;
163 158
164 blink::WebString old_title_; 159 blink::WebString old_title_;
165 bool focused_; 160 bool focused_;
166 bool is_painting_; 161 bool is_painting_;
167 bool is_resizing_; 162 bool is_resizing_;
168 163
169 // A helper needed to create a WebLocalFrame. 164 // A helper needed to create a WebLocalFrame.
170 class PluginWebFrameClient : public blink::WebFrameClient { 165 class PluginWebFrameClient : public blink::WebFrameClient {
171 public: 166 public:
172 PluginWebFrameClient(WebViewPlugin* plugin) : plugin_(plugin) {} 167 PluginWebFrameClient(WebViewPlugin* plugin) : plugin_(plugin) {}
173 ~PluginWebFrameClient() override {} 168 ~PluginWebFrameClient() override {}
174 void didClearWindowObject(blink::WebLocalFrame* frame) override; 169 void didClearWindowObject(blink::WebLocalFrame* frame) override;
175 170
176 private: 171 private:
177 WebViewPlugin* plugin_; 172 WebViewPlugin* plugin_;
178 }; 173 };
179 PluginWebFrameClient web_frame_client_; 174 PluginWebFrameClient web_frame_client_;
180 175
181 // Should be invalidated when destroy() is called. 176 // Should be invalidated when destroy() is called.
182 base::WeakPtrFactory<WebViewPlugin> weak_factory_; 177 base::WeakPtrFactory<WebViewPlugin> weak_factory_;
183 }; 178 };
184 179
185 #endif // COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ 180 #endif // COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_
OLDNEW
« no previous file with comments | « no previous file | components/plugins/renderer/webview_plugin.cc » ('j') | components/printing/renderer/print_web_view_helper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698