| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_GLUE_WEBPLUGIN_DELEGATE_H__ | 5 #ifndef WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H__ |
| 6 #define WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H__ | 6 #define WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H__ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 // Called when the WebPlugin is being destroyed. This is a signal to the | 42 // Called when the WebPlugin is being destroyed. This is a signal to the |
| 43 // delegate that it should tear-down the plugin implementation and not call | 43 // delegate that it should tear-down the plugin implementation and not call |
| 44 // methods on the WebPlugin again. | 44 // methods on the WebPlugin again. |
| 45 virtual void PluginDestroyed() = 0; | 45 virtual void PluginDestroyed() = 0; |
| 46 | 46 |
| 47 // Update the geometry of the plugin. This is a request to move the | 47 // Update the geometry of the plugin. This is a request to move the |
| 48 // plugin, relative to its containing window, to the coords given by | 48 // plugin, relative to its containing window, to the coords given by |
| 49 // window_rect. Its contents should be clipped to the coords given | 49 // window_rect. Its contents should be clipped to the coords given |
| 50 // by clip_rect, which are relative to the origin of the plugin | 50 // by clip_rect, which are relative to the origin of the plugin |
| 51 // window. It's contents should also not overlap the given cutout | 51 // window. The clip_rect is in plugin-relative coordinates. |
| 52 // rects. The clip_rect and cutout_rects are in plugin-relative | |
| 53 // coordinates. | |
| 54 virtual void UpdateGeometry(const gfx::Rect& window_rect, | 52 virtual void UpdateGeometry(const gfx::Rect& window_rect, |
| 55 const gfx::Rect& clip_rect, | 53 const gfx::Rect& clip_rect) = 0; |
| 56 const std::vector<gfx::Rect>& cutout_rects, | |
| 57 bool visible) = 0; | |
| 58 | 54 |
| 59 // Tells the plugin to paint the damaged rect. The HDC is only used for | 55 // Tells the plugin to paint the damaged rect. The HDC is only used for |
| 60 // windowless plugins. | 56 // windowless plugins. |
| 61 virtual void Paint(HDC hdc, const gfx::Rect& rect) = 0; | 57 virtual void Paint(HDC hdc, const gfx::Rect& rect) = 0; |
| 62 | 58 |
| 63 // Tells the plugin to print itself. | 59 // Tells the plugin to print itself. |
| 64 virtual void Print(HDC hdc) = 0; | 60 virtual void Print(HDC hdc) = 0; |
| 65 | 61 |
| 66 // Informs the plugin that it now has focus. | 62 // Informs the plugin that it now has focus. |
| 67 virtual void SetFocus() = 0; | 63 virtual void SetFocus() = 0; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 void* stream) = 0; | 114 void* stream) = 0; |
| 119 // Notifies the delegate about a Get/Post URL request getting routed | 115 // Notifies the delegate about a Get/Post URL request getting routed |
| 120 virtual void URLRequestRouted(const std::string&url, bool notify_needed, | 116 virtual void URLRequestRouted(const std::string&url, bool notify_needed, |
| 121 void* notify_data) = 0; | 117 void* notify_data) = 0; |
| 122 private: | 118 private: |
| 123 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegate); | 119 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegate); |
| 124 }; | 120 }; |
| 125 | 121 |
| 126 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H__ | 122 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H__ |
| 127 | 123 |
| OLD | NEW |