| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/hash_tables.h" | 12 #include "base/hash_tables.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/process.h" | 14 #include "base/process.h" |
| 15 #include "build/build_config.h" | 15 #include "build/build_config.h" |
| 16 #include "ppapi/c/pp_rect.h" | 16 #include "ppapi/c/pp_rect.h" |
| 17 #include "ppapi/c/pp_instance.h" | 17 #include "ppapi/c/pp_instance.h" |
| 18 #include "ppapi/proxy/dispatcher.h" | 18 #include "ppapi/proxy/dispatcher.h" |
| 19 #include "ppapi/shared_impl/function_group_base.h" | 19 #include "ppapi/shared_impl/function_group_base.h" |
| 20 #include "ppapi/shared_impl/ppapi_preferences.h" | 20 #include "ppapi/shared_impl/ppapi_preferences.h" |
| 21 #include "ppapi/shared_impl/ppb_view_shared.h" |
| 21 | 22 |
| 22 namespace ppapi { | 23 namespace ppapi { |
| 23 | 24 |
| 24 struct Preferences; | 25 struct Preferences; |
| 25 class Resource; | 26 class Resource; |
| 26 class WebKitForwarding; | 27 class WebKitForwarding; |
| 27 | 28 |
| 28 namespace proxy { | 29 namespace proxy { |
| 29 | 30 |
| 30 // Used to keep track of per-instance data. | 31 // Used to keep track of per-instance data. |
| 31 struct InstanceData { | 32 struct InstanceData { |
| 32 InstanceData(); | 33 InstanceData(); |
| 33 ~InstanceData(); | 34 ~InstanceData(); |
| 34 | 35 |
| 35 PP_Rect position; | 36 ViewData view; |
| 36 PP_Bool fullscreen; // Used for PPB_Fullscreen. | 37 |
| 37 PP_Bool flash_fullscreen; // Used for PPB_FlashFullscreen. | 38 PP_Bool flash_fullscreen; // Used for PPB_FlashFullscreen. |
| 38 | 39 |
| 39 // When non-0, indicates the callback to execute when mouse lock is lost. | 40 // When non-0, indicates the callback to execute when mouse lock is lost. |
| 40 PP_CompletionCallback mouse_lock_callback; | 41 PP_CompletionCallback mouse_lock_callback; |
| 41 }; | 42 }; |
| 42 | 43 |
| 43 class PPAPI_PROXY_EXPORT PluginDispatcher : public Dispatcher { | 44 class PPAPI_PROXY_EXPORT PluginDispatcher : public Dispatcher { |
| 44 public: | 45 public: |
| 45 class PPAPI_PROXY_EXPORT PluginDelegate : public ProxyChannel::Delegate { | 46 class PPAPI_PROXY_EXPORT PluginDelegate : public ProxyChannel::Delegate { |
| 46 public: | 47 public: |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 | 172 |
| 172 uint32 plugin_dispatcher_id_; | 173 uint32 plugin_dispatcher_id_; |
| 173 | 174 |
| 174 DISALLOW_COPY_AND_ASSIGN(PluginDispatcher); | 175 DISALLOW_COPY_AND_ASSIGN(PluginDispatcher); |
| 175 }; | 176 }; |
| 176 | 177 |
| 177 } // namespace proxy | 178 } // namespace proxy |
| 178 } // namespace ppapi | 179 } // namespace ppapi |
| 179 | 180 |
| 180 #endif // PPAPI_PROXY_PLUGIN_DISPATCHER_H_ | 181 #endif // PPAPI_PROXY_PLUGIN_DISPATCHER_H_ |
| OLD | NEW |