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

Side by Side Diff: content/renderer/browser_plugin/browser_plugin.h

Issue 624063002: <webview>: resizing with display:none set should resize on attachment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Istiaque's comments Created 6 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
7 7
8 #include "third_party/WebKit/public/web/WebPlugin.h" 8 #include "third_party/WebKit/public/web/WebPlugin.h"
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 bool guest_crashed_; 200 bool guest_crashed_;
201 bool plugin_focused_; 201 bool plugin_focused_;
202 // Tracks the visibility of the browser plugin regardless of the whole 202 // Tracks the visibility of the browser plugin regardless of the whole
203 // embedder RenderView's visibility. 203 // embedder RenderView's visibility.
204 bool visible_; 204 bool visible_;
205 205
206 WebCursor cursor_; 206 WebCursor cursor_;
207 207
208 bool mouse_locked_; 208 bool mouse_locked_;
209 209
210 // This indicates that the BrowserPlugin has a geometry.
211 bool ready_;
212
210 // BrowserPlugin outlives RenderViewImpl in Chrome Apps and so we need to 213 // BrowserPlugin outlives RenderViewImpl in Chrome Apps and so we need to
211 // store the BrowserPlugin's BrowserPluginManager in a member variable to 214 // store the BrowserPlugin's BrowserPluginManager in a member variable to
212 // avoid accessing the RenderViewImpl. 215 // avoid accessing the RenderViewImpl.
213 const scoped_refptr<BrowserPluginManager> browser_plugin_manager_; 216 const scoped_refptr<BrowserPluginManager> browser_plugin_manager_;
214 217
215 // Used for HW compositing. 218 // Used for HW compositing.
216 scoped_refptr<ChildFrameCompositingHelper> compositing_helper_; 219 scoped_refptr<ChildFrameCompositingHelper> compositing_helper_;
217 220
218 // URL for the embedder frame. 221 // URL for the embedder frame.
219 int browser_plugin_instance_id_; 222 int browser_plugin_instance_id_;
220 223
221 // Indicates whether the guest content is opaque. 224 // Indicates whether the guest content is opaque.
222 bool contents_opaque_; 225 bool contents_opaque_;
223 226
224 std::vector<EditCommand> edit_commands_; 227 std::vector<EditCommand> edit_commands_;
225 228
226 scoped_ptr<BrowserPluginDelegate> delegate_; 229 scoped_ptr<BrowserPluginDelegate> delegate_;
227 230
228 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might 231 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might
229 // get called after BrowserPlugin has been destroyed. 232 // get called after BrowserPlugin has been destroyed.
230 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; 233 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_;
231 234
232 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); 235 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin);
233 }; 236 };
234 237
235 } // namespace content 238 } // namespace content
236 239
237 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 240 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
OLDNEW
« no previous file with comments | « content/public/renderer/browser_plugin_delegate.h ('k') | content/renderer/browser_plugin/browser_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698