OLD | NEW |
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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 scoped_refptr<BrowserPluginCompositingHelper> compositing_helper_; | 348 scoped_refptr<BrowserPluginCompositingHelper> compositing_helper_; |
349 | 349 |
350 // Used to identify the plugin to WebBindings. | 350 // Used to identify the plugin to WebBindings. |
351 scoped_ptr<struct _NPP> npp_; | 351 scoped_ptr<struct _NPP> npp_; |
352 | 352 |
353 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might | 353 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might |
354 // get called after BrowserPlugin has been destroyed. | 354 // get called after BrowserPlugin has been destroyed. |
355 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; | 355 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; |
356 | 356 |
357 std::vector<EditCommand> edit_commands_; | 357 std::vector<EditCommand> edit_commands_; |
| 358 // This helps keep track if we need to expand damage buffer. |
| 359 gfx::Size last_seen_auto_view_size_; |
358 | 360 |
359 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); | 361 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); |
360 }; | 362 }; |
361 | 363 |
362 } // namespace content | 364 } // namespace content |
363 | 365 |
364 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 366 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
OLD | NEW |