OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. | 3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 // execution, if any. | 97 // execution, if any. |
98 virtual WebString executeScriptURL(const WebURL&, bool popupsAllowed) = 0; | 98 virtual WebString executeScriptURL(const WebURL&, bool popupsAllowed) = 0; |
99 | 99 |
100 // Loads an URL in the specified frame (or the frame containing this | 100 // Loads an URL in the specified frame (or the frame containing this |
101 // plugin if target is empty). If notifyNeeded is true, then upon | 101 // plugin if target is empty). If notifyNeeded is true, then upon |
102 // completion, WebPlugin::didFinishLoadingFrameRequest is called if the | 102 // completion, WebPlugin::didFinishLoadingFrameRequest is called if the |
103 // load was successful or WebPlugin::didFailLoadingFrameRequest is | 103 // load was successful or WebPlugin::didFailLoadingFrameRequest is |
104 // called if the load failed. The given notifyData is passed along to | 104 // called if the load failed. The given notifyData is passed along to |
105 // the callback. | 105 // the callback. |
106 virtual void loadFrameRequest( | 106 virtual void loadFrameRequest( |
107 const WebURLRequest&, const WebString& target, bool notifyNeeded, void*
notifyData) = 0; | 107 const WebURLRequest&, const WebString& target) = 0; |
108 | 108 |
109 // Determines whether the given rectangle in this plugin is above all other | 109 // Determines whether the given rectangle in this plugin is above all other |
110 // content. The rectangle is in the plugin's coordinate system. | 110 // content. The rectangle is in the plugin's coordinate system. |
111 virtual bool isRectTopmost(const WebRect&) = 0; | 111 virtual bool isRectTopmost(const WebRect&) = 0; |
112 | 112 |
113 // Notifies when the plugin changes the kind of touch-events it accepts. | 113 // Notifies when the plugin changes the kind of touch-events it accepts. |
114 virtual void requestTouchEventType(TouchEventRequestType) = 0; | 114 virtual void requestTouchEventType(TouchEventRequestType) = 0; |
115 | 115 |
116 // Notifies when the plugin starts/stops accepting wheel events. Without | 116 // Notifies when the plugin starts/stops accepting wheel events. Without |
117 // calling the function with true, the container might not always able to | 117 // calling the function with true, the container might not always able to |
(...skipping 18 matching lines...) Expand all Loading... |
136 // WebPluginContainer does *not* take ownership. | 136 // WebPluginContainer does *not* take ownership. |
137 virtual void setWebLayer(WebLayer*) = 0; | 137 virtual void setWebLayer(WebLayer*) = 0; |
138 | 138 |
139 protected: | 139 protected: |
140 ~WebPluginContainer() { } | 140 ~WebPluginContainer() { } |
141 }; | 141 }; |
142 | 142 |
143 } // namespace blink | 143 } // namespace blink |
144 | 144 |
145 #endif | 145 #endif |
OLD | NEW |