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

Side by Side Diff: content/renderer/pepper/pepper_plugin_instance_impl.h

Issue 264303002: PPAPI: Implement synchronous postMessage (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 // Switches between fullscreen and normal mode. The transition is 296 // Switches between fullscreen and normal mode. The transition is
297 // asynchronous. WebKit will trigger corresponding VewChanged calls. 297 // asynchronous. WebKit will trigger corresponding VewChanged calls.
298 // Returns true on success, false on failure (e.g. trying to enter fullscreen 298 // Returns true on success, false on failure (e.g. trying to enter fullscreen
299 // when not processing a user gesture or trying to set fullscreen when 299 // when not processing a user gesture or trying to set fullscreen when
300 // already in fullscreen mode). 300 // already in fullscreen mode).
301 bool SetFullscreen(bool fullscreen); 301 bool SetFullscreen(bool fullscreen);
302 302
303 // Send the message on to the plugin. 303 // Send the message on to the plugin.
304 void HandleMessage(ppapi::ScopedPPVar message); 304 void HandleMessage(ppapi::ScopedPPVar message);
305 305
306 // Send the message synchronously to the plugin, and get a result. Returns
307 // true if the plugin handled the message, false if it didn't. The plugin
308 // won't handle the message if it has not registered a PPP_MessageHandler.
309 bool HandleBlockingMessage(ppapi::ScopedPPVar message,
310 ppapi::ScopedPPVar* result);
311
306 // Returns true if the plugin is processing a user gesture. 312 // Returns true if the plugin is processing a user gesture.
307 bool IsProcessingUserGesture(); 313 bool IsProcessingUserGesture();
308 314
309 // Returns the user gesture token to use for creating a WebScopedUserGesture, 315 // Returns the user gesture token to use for creating a WebScopedUserGesture,
310 // if IsProcessingUserGesture returned true. 316 // if IsProcessingUserGesture returned true.
311 blink::WebUserGestureToken CurrentUserGestureToken(); 317 blink::WebUserGestureToken CurrentUserGestureToken();
312 318
313 // A mouse lock request was pending and this reports success or failure. 319 // A mouse lock request was pending and this reports success or failure.
314 void OnLockMouseACK(bool succeeded); 320 void OnLockMouseACK(bool succeeded);
315 // A mouse lock was in place, but has been lost. 321 // A mouse lock was in place, but has been lost.
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
898 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; 904 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_;
899 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; 905 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_;
900 906
901 friend class PpapiPluginInstanceTest; 907 friend class PpapiPluginInstanceTest;
902 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); 908 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl);
903 }; 909 };
904 910
905 } // namespace content 911 } // namespace content
906 912
907 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ 913 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/message_channel.cc ('k') | content/renderer/pepper/pepper_plugin_instance_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698