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 WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 bool LoadTextInputInterface(); | 493 bool LoadTextInputInterface(); |
494 bool LoadZoomInterface(); | 494 bool LoadZoomInterface(); |
495 | 495 |
496 // Determines if we think the plugin has focus, both content area and webkit | 496 // Determines if we think the plugin has focus, both content area and webkit |
497 // (see has_webkit_focus_ below). | 497 // (see has_webkit_focus_ below). |
498 bool PluginHasFocus() const; | 498 bool PluginHasFocus() const; |
499 void SendFocusChangeNotification(); | 499 void SendFocusChangeNotification(); |
500 | 500 |
501 // Returns true if the plugin has registered to accept touch events. | 501 // Returns true if the plugin has registered to accept touch events. |
502 bool IsAcceptingTouchEvents() const; | 502 bool IsAcceptingTouchEvents() const; |
| 503 // Returns true if the plugin has registered to accept wheel events. |
| 504 bool IsAcceptingWheelEvents() const; |
503 | 505 |
504 void ScheduleAsyncDidChangeView(); | 506 void ScheduleAsyncDidChangeView(); |
505 void SendAsyncDidChangeView(); | 507 void SendAsyncDidChangeView(); |
506 void SendDidChangeView(); | 508 void SendDidChangeView(); |
507 | 509 |
508 // Reports the current plugin geometry to the plugin by calling | 510 // Reports the current plugin geometry to the plugin by calling |
509 // DidChangeView. | 511 // DidChangeView. |
510 void ReportGeometry(); | 512 void ReportGeometry(); |
511 | 513 |
512 // Queries the plugin for supported print formats and sets |format| to the | 514 // Queries the plugin for supported print formats and sets |format| to the |
(...skipping 27 matching lines...) Expand all Loading... |
540 bool SendCompositionEventToPlugin( | 542 bool SendCompositionEventToPlugin( |
541 PP_InputEvent_Type type, | 543 PP_InputEvent_Type type, |
542 const string16& text); | 544 const string16& text); |
543 bool SendCompositionEventWithUnderlineInformationToPlugin( | 545 bool SendCompositionEventWithUnderlineInformationToPlugin( |
544 PP_InputEvent_Type type, | 546 PP_InputEvent_Type type, |
545 const string16& text, | 547 const string16& text, |
546 const std::vector<WebKit::WebCompositionUnderline>& underlines, | 548 const std::vector<WebKit::WebCompositionUnderline>& underlines, |
547 int selection_start, | 549 int selection_start, |
548 int selection_end); | 550 int selection_end); |
549 | 551 |
| 552 // Internal helper function for XXXInputEvents(). |
| 553 void RequestInputEventsHelper(uint32_t event_classes); |
| 554 |
550 // Checks if the security origin of the document containing this instance can | 555 // Checks if the security origin of the document containing this instance can |
551 // assess the security origin of the main frame document. | 556 // assess the security origin of the main frame document. |
552 bool CanAccessMainFrame() const; | 557 bool CanAccessMainFrame() const; |
553 | 558 |
554 // Returns true if the WebView the plugin is in renders via the accelerated | 559 // Returns true if the WebView the plugin is in renders via the accelerated |
555 // compositing path. | 560 // compositing path. |
556 bool IsViewAccelerated(); | 561 bool IsViewAccelerated(); |
557 | 562 |
558 // Track, set and reset size attributes to control the size of the plugin | 563 // Track, set and reset size attributes to control the size of the plugin |
559 // in and out of fullscreen mode. | 564 // in and out of fullscreen mode. |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
755 // calls and handles PPB_ContentDecryptor_Private calls. | 760 // calls and handles PPB_ContentDecryptor_Private calls. |
756 scoped_ptr<ContentDecryptorDelegate> content_decryptor_delegate_; | 761 scoped_ptr<ContentDecryptorDelegate> content_decryptor_delegate_; |
757 | 762 |
758 DISALLOW_COPY_AND_ASSIGN(PluginInstance); | 763 DISALLOW_COPY_AND_ASSIGN(PluginInstance); |
759 }; | 764 }; |
760 | 765 |
761 } // namespace ppapi | 766 } // namespace ppapi |
762 } // namespace webkit | 767 } // namespace webkit |
763 | 768 |
764 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 769 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
OLD | NEW |