| OLD | NEW |
| 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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 // Switches between fullscreen and normal mode. The transition is | 294 // Switches between fullscreen and normal mode. The transition is |
| 295 // asynchronous. WebKit will trigger corresponding VewChanged calls. | 295 // asynchronous. WebKit will trigger corresponding VewChanged calls. |
| 296 // Returns true on success, false on failure (e.g. trying to enter fullscreen | 296 // Returns true on success, false on failure (e.g. trying to enter fullscreen |
| 297 // when not processing a user gesture or trying to set fullscreen when | 297 // when not processing a user gesture or trying to set fullscreen when |
| 298 // already in fullscreen mode). | 298 // already in fullscreen mode). |
| 299 bool SetFullscreen(bool fullscreen); | 299 bool SetFullscreen(bool fullscreen); |
| 300 | 300 |
| 301 // Send the message on to the plugin. | 301 // Send the message on to the plugin. |
| 302 void HandleMessage(ppapi::ScopedPPVar message); | 302 void HandleMessage(ppapi::ScopedPPVar message); |
| 303 | 303 |
| 304 // Send the message synchronously to the plugin, and get a result. Returns |
| 305 // true if the plugin handled the message, false if it didn't. The plugin |
| 306 // won't handle the message if it has not registered a PPP_MessageHandler. |
| 307 bool HandleBlockingMessage(ppapi::ScopedPPVar message, |
| 308 ppapi::ScopedPPVar* result); |
| 309 |
| 304 // Returns true if the plugin is processing a user gesture. | 310 // Returns true if the plugin is processing a user gesture. |
| 305 bool IsProcessingUserGesture(); | 311 bool IsProcessingUserGesture(); |
| 306 | 312 |
| 307 // Returns the user gesture token to use for creating a WebScopedUserGesture, | 313 // Returns the user gesture token to use for creating a WebScopedUserGesture, |
| 308 // if IsProcessingUserGesture returned true. | 314 // if IsProcessingUserGesture returned true. |
| 309 blink::WebUserGestureToken CurrentUserGestureToken(); | 315 blink::WebUserGestureToken CurrentUserGestureToken(); |
| 310 | 316 |
| 311 // A mouse lock request was pending and this reports success or failure. | 317 // A mouse lock request was pending and this reports success or failure. |
| 312 void OnLockMouseACK(bool succeeded); | 318 void OnLockMouseACK(bool succeeded); |
| 313 // A mouse lock was in place, but has been lost. | 319 // A mouse lock was in place, but has been lost. |
| (...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 885 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; | 891 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; |
| 886 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; | 892 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; |
| 887 | 893 |
| 888 friend class PpapiPluginInstanceTest; | 894 friend class PpapiPluginInstanceTest; |
| 889 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); | 895 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); |
| 890 }; | 896 }; |
| 891 | 897 |
| 892 } // namespace content | 898 } // namespace content |
| 893 | 899 |
| 894 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 900 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
| OLD | NEW |