OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 MOJO_EXAMPLES_PEPPER_CONTAINER_APP_PLUGIN_INSTANCE_H_ | 5 #ifndef MOJO_EXAMPLES_PEPPER_CONTAINER_APP_PLUGIN_INSTANCE_H_ |
6 #define MOJO_EXAMPLES_PEPPER_CONTAINER_APP_PLUGIN_INSTANCE_H_ | 6 #define MOJO_EXAMPLES_PEPPER_CONTAINER_APP_PLUGIN_INSTANCE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "mojo/examples/pepper_container_app/plugin_module.h" | 10 #include "mojo/examples/pepper_container_app/plugin_module.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 virtual ppapi::Resource* GetSingletonResource( | 76 virtual ppapi::Resource* GetSingletonResource( |
77 PP_Instance instance, ppapi::SingletonResourceID id) OVERRIDE; | 77 PP_Instance instance, ppapi::SingletonResourceID id) OVERRIDE; |
78 virtual int32_t RequestInputEvents(PP_Instance instance, | 78 virtual int32_t RequestInputEvents(PP_Instance instance, |
79 uint32_t event_classes) OVERRIDE; | 79 uint32_t event_classes) OVERRIDE; |
80 virtual int32_t RequestFilteringInputEvents(PP_Instance instance, | 80 virtual int32_t RequestFilteringInputEvents(PP_Instance instance, |
81 uint32_t event_classes) OVERRIDE; | 81 uint32_t event_classes) OVERRIDE; |
82 virtual void ClearInputEventRequest(PP_Instance instance, | 82 virtual void ClearInputEventRequest(PP_Instance instance, |
83 uint32_t event_classes) OVERRIDE; | 83 uint32_t event_classes) OVERRIDE; |
84 virtual void StartTrackingLatency(PP_Instance instance) OVERRIDE; | 84 virtual void StartTrackingLatency(PP_Instance instance) OVERRIDE; |
85 virtual void PostMessage(PP_Instance instance, PP_Var message) OVERRIDE; | 85 virtual void PostMessage(PP_Instance instance, PP_Var message) OVERRIDE; |
| 86 virtual int32_t RegisterMessageHandler(PP_Instance instance, |
| 87 void* user_data, |
| 88 const PPP_MessageHandler_0_1* handler, |
| 89 PP_Resource message_loop) OVERRIDE; |
| 90 virtual void UnregisterMessageHandler(PP_Instance instance) OVERRIDE; |
86 virtual PP_Bool SetCursor(PP_Instance instance, | 91 virtual PP_Bool SetCursor(PP_Instance instance, |
87 PP_MouseCursor_Type type, | 92 PP_MouseCursor_Type type, |
88 PP_Resource image, | 93 PP_Resource image, |
89 const PP_Point* hot_spot) OVERRIDE; | 94 const PP_Point* hot_spot) OVERRIDE; |
90 virtual int32_t LockMouse( | 95 virtual int32_t LockMouse( |
91 PP_Instance instance, | 96 PP_Instance instance, |
92 scoped_refptr<ppapi::TrackedCallback> callback) OVERRIDE; | 97 scoped_refptr<ppapi::TrackedCallback> callback) OVERRIDE; |
93 virtual void UnlockMouse(PP_Instance instance) OVERRIDE; | 98 virtual void UnlockMouse(PP_Instance instance) OVERRIDE; |
94 virtual void SetTextInputType(PP_Instance instance, | 99 virtual void SetTextInputType(PP_Instance instance, |
95 PP_TextInput_Type type) OVERRIDE; | 100 PP_TextInput_Type type) OVERRIDE; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 scoped_refptr<PluginModule> plugin_module_; | 167 scoped_refptr<PluginModule> plugin_module_; |
163 ppapi::ScopedPPResource bound_graphics_; | 168 ppapi::ScopedPPResource bound_graphics_; |
164 | 169 |
165 DISALLOW_COPY_AND_ASSIGN(PluginInstance); | 170 DISALLOW_COPY_AND_ASSIGN(PluginInstance); |
166 }; | 171 }; |
167 | 172 |
168 } // namespace examples | 173 } // namespace examples |
169 } // namespace mojo | 174 } // namespace mojo |
170 | 175 |
171 #endif // MOJO_EXAMPLES_PEPPER_CONTAINER_APP_PLUGIN_INSTANCE_H_ | 176 #endif // MOJO_EXAMPLES_PEPPER_CONTAINER_APP_PLUGIN_INSTANCE_H_ |
OLD | NEW |