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

Side by Side Diff: ppapi/proxy/plugin_dispatcher.h

Issue 8951014: Change the DidChangeView update to take a new ViewChanged resource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More nacl fixes Created 8 years, 11 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 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 148
148 uint32 plugin_dispatcher_id_; 149 uint32 plugin_dispatcher_id_;
149 150
150 DISALLOW_COPY_AND_ASSIGN(PluginDispatcher); 151 DISALLOW_COPY_AND_ASSIGN(PluginDispatcher);
151 }; 152 };
152 153
153 } // namespace proxy 154 } // namespace proxy
154 } // namespace ppapi 155 } // namespace ppapi
155 156
156 #endif // PPAPI_PROXY_PLUGIN_DISPATCHER_H_ 157 #endif // PPAPI_PROXY_PLUGIN_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698