Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Side by Side Diff: webkit/plugins/ppapi/plugin_delegate.h

Issue 8073021: Implement Pepper IME API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge trunk. Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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.h" 10 #include "base/callback.h"
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 // When there are no more references, this renderer's dispatcher is 239 // When there are no more references, this renderer's dispatcher is
240 // destroyed, allowing the broker to shutdown if appropriate. 240 // destroyed, allowing the broker to shutdown if appropriate.
241 // Callers should not reference this object after calling Disconnect. 241 // Callers should not reference this object after calling Disconnect.
242 virtual void Disconnect(webkit::ppapi::PPB_Broker_Impl* client) = 0; 242 virtual void Disconnect(webkit::ppapi::PPB_Broker_Impl* client) = 0;
243 243
244 protected: 244 protected:
245 virtual ~PpapiBroker() {} 245 virtual ~PpapiBroker() {}
246 }; 246 };
247 247
248 // Notification that the given plugin is focused or unfocused. 248 // Notification that the given plugin is focused or unfocused.
249 virtual void PluginFocusChanged(bool focused) = 0; 249 virtual void PluginFocusChanged(webkit::ppapi::PluginInstance* instance,
250 bool focused) = 0;
251 // Notification that the text input status of the given plugin is changed.
252 virtual void PluginTextInputTypeChanged(
253 webkit::ppapi::PluginInstance* instance) = 0;
254 // Notification that the plugin requested to cancel the current composition.
255 virtual void PluginRequestedCancelComposition(
256 webkit::ppapi::PluginInstance* instance) = 0;
250 257
251 // Notification that the given plugin has crashed. When a plugin crashes, all 258 // Notification that the given plugin has crashed. When a plugin crashes, all
252 // instances associated with that plugin will notify that they've crashed via 259 // instances associated with that plugin will notify that they've crashed via
253 // this function. 260 // this function.
254 virtual void PluginCrashed(PluginInstance* instance) = 0; 261 virtual void PluginCrashed(PluginInstance* instance) = 0;
255 262
256 // Indicates that the given instance has been created. 263 // Indicates that the given instance has been created.
257 virtual void InstanceCreated(PluginInstance* instance) = 0; 264 virtual void InstanceCreated(PluginInstance* instance) = 0;
258 265
259 // Indicates that the given instance is being destroyed. This is called from 266 // Indicates that the given instance is being destroyed. This is called from
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 const WebKit::WebCursorInfo& cursor) = 0; 470 const WebKit::WebCursorInfo& cursor) = 0;
464 471
465 // Notifies that |instance| has received a mouse event. 472 // Notifies that |instance| has received a mouse event.
466 virtual void DidReceiveMouseEvent(PluginInstance* instance) = 0; 473 virtual void DidReceiveMouseEvent(PluginInstance* instance) = 0;
467 }; 474 };
468 475
469 } // namespace ppapi 476 } // namespace ppapi
470 } // namespace webkit 477 } // namespace webkit
471 478
472 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 479 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/mock_plugin_delegate.cc ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698