| 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_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ |
| 6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ | 6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <list> | 9 #include <list> |
| 10 | 10 |
| (...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 | 467 |
| 468 // Called by the message filter hook when the plugin enters a modal loop. | 468 // Called by the message filter hook when the plugin enters a modal loop. |
| 469 void OnModalLoopEntered(); | 469 void OnModalLoopEntered(); |
| 470 | 470 |
| 471 // Returns true if the message passed in corresponds to a user gesture. | 471 // Returns true if the message passed in corresponds to a user gesture. |
| 472 static bool IsUserGesture(const WebKit::WebInputEvent& event); | 472 static bool IsUserGesture(const WebKit::WebInputEvent& event); |
| 473 | 473 |
| 474 // The url with which the plugin was instantiated. | 474 // The url with which the plugin was instantiated. |
| 475 std::string plugin_url_; | 475 std::string plugin_url_; |
| 476 | 476 |
| 477 #if defined(OS_WIN) | 477 #if defined(OS_WIN) && !defined(USE_AURA) |
| 478 // Indicates the end of a user gesture period. | 478 // Indicates the end of a user gesture period. |
| 479 void OnUserGestureEnd(); | 479 void OnUserGestureEnd(); |
| 480 | 480 |
| 481 // Handle to the message filter hook | 481 // Handle to the message filter hook |
| 482 HHOOK handle_event_message_filter_hook_; | 482 HHOOK handle_event_message_filter_hook_; |
| 483 | 483 |
| 484 // Event which is set when the plugin enters a modal loop in the course | 484 // Event which is set when the plugin enters a modal loop in the course |
| 485 // of a NPP_HandleEvent call. | 485 // of a NPP_HandleEvent call. |
| 486 HANDLE handle_event_pump_messages_event_; | 486 HANDLE handle_event_pump_messages_event_; |
| 487 | 487 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 // True if NPP_New did not return an error. | 521 // True if NPP_New did not return an error. |
| 522 bool creation_succeeded_; | 522 bool creation_succeeded_; |
| 523 | 523 |
| 524 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); | 524 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); |
| 525 }; | 525 }; |
| 526 | 526 |
| 527 } // namespace npapi | 527 } // namespace npapi |
| 528 } // namespace webkit | 528 } // namespace webkit |
| 529 | 529 |
| 530 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ | 530 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ |
| OLD | NEW |