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 PPAPI_PROXY_PLUGIN_DISPATCHER_H_ | 5 #ifndef PPAPI_PROXY_PLUGIN_DISPATCHER_H_ |
6 #define PPAPI_PROXY_PLUGIN_DISPATCHER_H_ | 6 #define PPAPI_PROXY_PLUGIN_DISPATCHER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 namespace ppapi { | 27 namespace ppapi { |
28 | 28 |
29 struct Preferences; | 29 struct Preferences; |
30 class Resource; | 30 class Resource; |
31 | 31 |
32 namespace proxy { | 32 namespace proxy { |
33 | 33 |
34 // Used to keep track of per-instance data. | 34 // Used to keep track of per-instance data. |
35 struct InstanceData { | 35 struct InstanceData { |
36 InstanceData(); | 36 InstanceData(); |
37 ~InstanceData(); | |
38 | |
39 PP_Rect position; | 37 PP_Rect position; |
40 PP_Bool fullscreen; // Used for PPB_Fullscreen. | 38 PP_Bool fullscreen; // Used for PPB_Fullscreen. |
41 PP_Bool flash_fullscreen; // Used for PPB_FlashFullscreen. | 39 PP_Bool flash_fullscreen; // Used for PPB_FlashFullscreen. |
42 | |
43 // When non-0, indicates the callback to execute when mouse lock is lost. | |
44 PP_CompletionCallback mouse_lock_callback; | |
45 }; | 40 }; |
46 | 41 |
47 class PPAPI_PROXY_EXPORT PluginDispatcher : public Dispatcher { | 42 class PPAPI_PROXY_EXPORT PluginDispatcher : public Dispatcher { |
48 public: | 43 public: |
49 class PPAPI_PROXY_EXPORT PluginDelegate : public ProxyChannel::Delegate { | 44 class PPAPI_PROXY_EXPORT PluginDelegate : public ProxyChannel::Delegate { |
50 public: | 45 public: |
51 // Returns the set used for globally uniquifying PP_Instances. This same | 46 // Returns the set used for globally uniquifying PP_Instances. This same |
52 // set must be returned for all channels. | 47 // set must be returned for all channels. |
53 // | 48 // |
54 // DEREFERENCE ONLY ON THE I/O THREAD. | 49 // DEREFERENCE ONLY ON THE I/O THREAD. |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 | 170 |
176 uint32 plugin_dispatcher_id_; | 171 uint32 plugin_dispatcher_id_; |
177 | 172 |
178 DISALLOW_COPY_AND_ASSIGN(PluginDispatcher); | 173 DISALLOW_COPY_AND_ASSIGN(PluginDispatcher); |
179 }; | 174 }; |
180 | 175 |
181 } // namespace proxy | 176 } // namespace proxy |
182 } // namespace ppapi | 177 } // namespace ppapi |
183 | 178 |
184 #endif // PPAPI_PROXY_PLUGIN_DISPATCHER_H_ | 179 #endif // PPAPI_PROXY_PLUGIN_DISPATCHER_H_ |
OLD | NEW |