| 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 WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 namespace ppapi { | 52 namespace ppapi { |
| 53 struct Preferences; | 53 struct Preferences; |
| 54 } | 54 } |
| 55 | 55 |
| 56 namespace skia { | 56 namespace skia { |
| 57 class PlatformCanvas; | 57 class PlatformCanvas; |
| 58 } | 58 } |
| 59 | 59 |
| 60 namespace WebKit { | 60 namespace WebKit { |
| 61 class WebFileChooserCompletion; | 61 class WebFileChooserCompletion; |
| 62 class WebGamepads; |
| 62 struct WebCursorInfo; | 63 struct WebCursorInfo; |
| 63 struct WebFileChooserParams; | 64 struct WebFileChooserParams; |
| 64 } | 65 } |
| 65 | 66 |
| 66 namespace webkit_glue { | 67 namespace webkit_glue { |
| 67 class P2PTransport; | 68 class P2PTransport; |
| 68 } // namespace webkit_glue | 69 } // namespace webkit_glue |
| 69 | 70 |
| 70 namespace webkit { | 71 namespace webkit { |
| 71 namespace ppapi { | 72 namespace ppapi { |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 // instance. | 509 // instance. |
| 509 virtual void DidChangeCursor(PluginInstance* instance, | 510 virtual void DidChangeCursor(PluginInstance* instance, |
| 510 const WebKit::WebCursorInfo& cursor) = 0; | 511 const WebKit::WebCursorInfo& cursor) = 0; |
| 511 | 512 |
| 512 // Notifies that |instance| has received a mouse event. | 513 // Notifies that |instance| has received a mouse event. |
| 513 virtual void DidReceiveMouseEvent(PluginInstance* instance) = 0; | 514 virtual void DidReceiveMouseEvent(PluginInstance* instance) = 0; |
| 514 | 515 |
| 515 // Determines if the browser entered fullscreen mode. | 516 // Determines if the browser entered fullscreen mode. |
| 516 virtual bool IsInFullscreenMode() = 0; | 517 virtual bool IsInFullscreenMode() = 0; |
| 517 | 518 |
| 519 // Retrieve current gamepad data. |
| 520 virtual void SampleGamepads(WebKit::WebGamepads* data) = 0; |
| 521 |
| 518 // Returns true if the containing page is visible. | 522 // Returns true if the containing page is visible. |
| 519 virtual bool IsPageVisible() const = 0; | 523 virtual bool IsPageVisible() const = 0; |
| 520 }; | 524 }; |
| 521 | 525 |
| 522 } // namespace ppapi | 526 } // namespace ppapi |
| 523 } // namespace webkit | 527 } // namespace webkit |
| 524 | 528 |
| 525 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 529 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| OLD | NEW |