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 WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback_old.h" | 10 #include "base/callback_old.h" |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 // When there are no more references, this renderer's dispatcher is | 238 // When there are no more references, this renderer's dispatcher is |
239 // destroyed, allowing the broker to shutdown if appropriate. | 239 // destroyed, allowing the broker to shutdown if appropriate. |
240 // Callers should not reference this object after calling Disconnect. | 240 // Callers should not reference this object after calling Disconnect. |
241 virtual void Disconnect(webkit::ppapi::PPB_Broker_Impl* client) = 0; | 241 virtual void Disconnect(webkit::ppapi::PPB_Broker_Impl* client) = 0; |
242 | 242 |
243 protected: | 243 protected: |
244 virtual ~PpapiBroker() {} | 244 virtual ~PpapiBroker() {} |
245 }; | 245 }; |
246 | 246 |
247 // Notification that the given plugin is focused or unfocused. | 247 // Notification that the given plugin is focused or unfocused. |
248 virtual void PluginFocusChanged(bool focused) = 0; | 248 virtual void PluginFocusChanged(webkit::ppapi::PluginInstance* instance, |
| 249 bool focused) = 0; |
| 250 // Notification that the text input status of the given plugin is changed. |
| 251 virtual void PluginTextInputTypeChanged( |
| 252 webkit::ppapi::PluginInstance* instance) = 0; |
| 253 // Notification that the plugin requested to cancel the current composition. |
| 254 virtual void PluginRequestedCancelComposition( |
| 255 webkit::ppapi::PluginInstance* instance) = 0; |
249 | 256 |
250 // Notification that the given plugin has crashed. When a plugin crashes, all | 257 // Notification that the given plugin has crashed. When a plugin crashes, all |
251 // instances associated with that plugin will notify that they've crashed via | 258 // instances associated with that plugin will notify that they've crashed via |
252 // this function. | 259 // this function. |
253 virtual void PluginCrashed(PluginInstance* instance) = 0; | 260 virtual void PluginCrashed(PluginInstance* instance) = 0; |
254 | 261 |
255 // Indicates that the given instance has been created. | 262 // Indicates that the given instance has been created. |
256 virtual void InstanceCreated(PluginInstance* instance) = 0; | 263 virtual void InstanceCreated(PluginInstance* instance) = 0; |
257 | 264 |
258 // Indicates that the given instance is being destroyed. This is called from | 265 // Indicates that the given instance is being destroyed. This is called from |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 // the only cause of losing mouse lock. For example, a user may press the Esc | 459 // the only cause of losing mouse lock. For example, a user may press the Esc |
453 // key to quit the mouse lock mode, which also results in an OnMouseLockLost() | 460 // key to quit the mouse lock mode, which also results in an OnMouseLockLost() |
454 // call to the current mouse lock owner. | 461 // call to the current mouse lock owner. |
455 virtual void UnlockMouse(PluginInstance* instance) = 0; | 462 virtual void UnlockMouse(PluginInstance* instance) = 0; |
456 }; | 463 }; |
457 | 464 |
458 } // namespace ppapi | 465 } // namespace ppapi |
459 } // namespace webkit | 466 } // namespace webkit |
460 | 467 |
461 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 468 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
OLD | NEW |