| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_ |
| 6 #define CHROME_RENDERER_RENDER_VIEW_H_ | 6 #define CHROME_RENDERER_RENDER_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 void OnPepperPluginDestroy(WebPluginDelegatePepper* pepper_plugin); | 331 void OnPepperPluginDestroy(WebPluginDelegatePepper* pepper_plugin); |
| 332 | 332 |
| 333 // Creates a fullscreen container for a pepper plugin instance. | 333 // Creates a fullscreen container for a pepper plugin instance. |
| 334 webkit::ppapi::FullscreenContainer* CreatePepperFullscreenContainer( | 334 webkit::ppapi::FullscreenContainer* CreatePepperFullscreenContainer( |
| 335 webkit::ppapi::PluginInstance* plugin); | 335 webkit::ppapi::PluginInstance* plugin); |
| 336 | 336 |
| 337 // Create a new plugin without checking the content settings. | 337 // Create a new plugin without checking the content settings. |
| 338 WebKit::WebPlugin* CreatePluginNoCheck(WebKit::WebFrame* frame, | 338 WebKit::WebPlugin* CreatePluginNoCheck(WebKit::WebFrame* frame, |
| 339 const WebKit::WebPluginParams& params); | 339 const WebKit::WebPluginParams& params); |
| 340 | 340 |
| 341 // Asks the browser for the CPBrowsingContext associated with this renderer. | |
| 342 // This is an opaque identifier associated with the renderer for sending | |
| 343 // messages for the given "Chrome Plugin." The Chrome Plugin API is used | |
| 344 // only by gears and this function can be deleted when we remove gears. | |
| 345 uint32 GetCPBrowsingContext(); | |
| 346 | |
| 347 #if defined(OS_MACOSX) | 341 #if defined(OS_MACOSX) |
| 348 // Informs the render view that the given plugin has gained or lost focus. | 342 // Informs the render view that the given plugin has gained or lost focus. |
| 349 void PluginFocusChanged(bool focused, int plugin_id); | 343 void PluginFocusChanged(bool focused, int plugin_id); |
| 350 | 344 |
| 351 // Starts plugin IME. | 345 // Starts plugin IME. |
| 352 void StartPluginIme(); | 346 void StartPluginIme(); |
| 353 | 347 |
| 354 // Helper routines for accelerated plugin support. Used by the | 348 // Helper routines for accelerated plugin support. Used by the |
| 355 // WebPluginDelegateProxy, which has a pointer to the RenderView. | 349 // WebPluginDelegateProxy, which has a pointer to the RenderView. |
| 356 gfx::PluginWindowHandle AllocateFakePluginWindowHandle(bool opaque, | 350 gfx::PluginWindowHandle AllocateFakePluginWindowHandle(bool opaque, |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 // webkit_glue::WebPluginPageDelegate implementation ------------------------- | 621 // webkit_glue::WebPluginPageDelegate implementation ------------------------- |
| 628 | 622 |
| 629 virtual webkit::npapi::WebPluginDelegate* CreatePluginDelegate( | 623 virtual webkit::npapi::WebPluginDelegate* CreatePluginDelegate( |
| 630 const FilePath& file_path, | 624 const FilePath& file_path, |
| 631 const std::string& mime_type); | 625 const std::string& mime_type); |
| 632 virtual void CreatedPluginWindow(gfx::PluginWindowHandle handle); | 626 virtual void CreatedPluginWindow(gfx::PluginWindowHandle handle); |
| 633 virtual void WillDestroyPluginWindow(gfx::PluginWindowHandle handle); | 627 virtual void WillDestroyPluginWindow(gfx::PluginWindowHandle handle); |
| 634 virtual void DidMovePlugin(const webkit::npapi::WebPluginGeometry& move); | 628 virtual void DidMovePlugin(const webkit::npapi::WebPluginGeometry& move); |
| 635 virtual void DidStartLoadingForPlugin(); | 629 virtual void DidStartLoadingForPlugin(); |
| 636 virtual void DidStopLoadingForPlugin(); | 630 virtual void DidStopLoadingForPlugin(); |
| 637 virtual void ShowModalHTMLDialogForPlugin( | |
| 638 const GURL& url, | |
| 639 const gfx::Size& size, | |
| 640 const std::string& json_arguments, | |
| 641 std::string* json_retval); | |
| 642 virtual WebKit::WebCookieJar* GetCookieJar(); | 631 virtual WebKit::WebCookieJar* GetCookieJar(); |
| 643 | 632 |
| 644 // Please do not add your stuff randomly to the end here. If there is an | 633 // Please do not add your stuff randomly to the end here. If there is an |
| 645 // appropriate section, add it there. If not, there are some random functions | 634 // appropriate section, add it there. If not, there are some random functions |
| 646 // nearer to the top you can add it to. | 635 // nearer to the top you can add it to. |
| 647 | 636 |
| 648 virtual void DidFlushPaint(); | 637 virtual void DidFlushPaint(); |
| 649 | 638 |
| 650 protected: | 639 protected: |
| 651 // RenderWidget overrides: | 640 // RenderWidget overrides: |
| (...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1444 // bunch of stuff, you should probably create a helper class and put your | 1433 // bunch of stuff, you should probably create a helper class and put your |
| 1445 // data and methods on that to avoid bloating RenderView more. You can use | 1434 // data and methods on that to avoid bloating RenderView more. You can use |
| 1446 // the Observer interface to filter IPC messages and receive frame change | 1435 // the Observer interface to filter IPC messages and receive frame change |
| 1447 // notifications. | 1436 // notifications. |
| 1448 // --------------------------------------------------------------------------- | 1437 // --------------------------------------------------------------------------- |
| 1449 | 1438 |
| 1450 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1439 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 1451 }; | 1440 }; |
| 1452 | 1441 |
| 1453 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 1442 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |