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

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

Issue 6990072: The first step for enabling off-the-spot IME on Pepper on ChromeOS/Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed a silly mistake lacking an initialization. Created 9 years, 6 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_old.h" 10 #include "base/callback_old.h"
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 // Decrements the references to the broker. 219 // Decrements the references to the broker.
220 // When there are no more references, this renderer's dispatcher is 220 // When there are no more references, this renderer's dispatcher is
221 // destroyed, allowing the broker to shutdown if appropriate. 221 // destroyed, allowing the broker to shutdown if appropriate.
222 // Callers should not reference this object after calling Disconnect. 222 // Callers should not reference this object after calling Disconnect.
223 virtual void Disconnect(webkit::ppapi::PPB_Broker_Impl* client) = 0; 223 virtual void Disconnect(webkit::ppapi::PPB_Broker_Impl* client) = 0;
224 224
225 protected: 225 protected:
226 virtual ~PpapiBroker() {} 226 virtual ~PpapiBroker() {}
227 }; 227 };
228 228
229 // Notification that the given plugin is focused or unfocused.
230 virtual void PluginFocusChanged(bool focused) = 0;
231
229 // Notification that the given plugin has crashed. When a plugin crashes, all 232 // Notification that the given plugin has crashed. When a plugin crashes, all
230 // instances associated with that plugin will notify that they've crashed via 233 // instances associated with that plugin will notify that they've crashed via
231 // this function. 234 // this function.
232 virtual void PluginCrashed(PluginInstance* instance) = 0; 235 virtual void PluginCrashed(PluginInstance* instance) = 0;
233 236
234 // Indicates that the given instance has been created. 237 // Indicates that the given instance has been created.
235 virtual void InstanceCreated(PluginInstance* instance) = 0; 238 virtual void InstanceCreated(PluginInstance* instance) = 0;
236 239
237 // Indicates that the given instance is being destroyed. This is called from 240 // Indicates that the given instance is being destroyed. This is called from
238 // the destructor, so it's important that the instance is not dereferenced 241 // the destructor, so it's important that the instance is not dereferenced
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 400
398 // Create an anonymous shared memory segment of size |size| bytes, and return 401 // Create an anonymous shared memory segment of size |size| bytes, and return
399 // a pointer to it, or NULL on error. Caller owns the returned pointer. 402 // a pointer to it, or NULL on error. Caller owns the returned pointer.
400 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0; 403 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0;
401 }; 404 };
402 405
403 } // namespace ppapi 406 } // namespace ppapi
404 } // namespace webkit 407 } // namespace webkit
405 408
406 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 409 #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.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698