| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ | 5 #ifndef WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ |
| 6 #define WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ | 6 #define WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 #include <list> | 11 #include <list> |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 void FocusNotify(WebPluginDelegateImpl* focused_delegate); | 127 void FocusNotify(WebPluginDelegateImpl* focused_delegate); |
| 128 // Set a notifier function that gets called when the delegate is accepting | 128 // Set a notifier function that gets called when the delegate is accepting |
| 129 // the focus. If no notifier function has been set, the delegate will just | 129 // the focus. If no notifier function has been set, the delegate will just |
| 130 // call FocusNotify(this). This is used in a multiprocess environment to | 130 // call FocusNotify(this). This is used in a multiprocess environment to |
| 131 // propagate focus notifications to all running plugin processes. | 131 // propagate focus notifications to all running plugin processes. |
| 132 void SetFocusNotifier(void (*notifier)(WebPluginDelegateImpl*)) { | 132 void SetFocusNotifier(void (*notifier)(WebPluginDelegateImpl*)) { |
| 133 focus_notifier_ = notifier; | 133 focus_notifier_ = notifier; |
| 134 } | 134 } |
| 135 #endif | 135 #endif |
| 136 | 136 |
| 137 #if !defined(OS_MACOSX) |
| 138 gfx::PluginWindowHandle windowed_handle() const { |
| 139 return windowed_handle_; |
| 140 } |
| 141 #endif |
| 142 |
| 137 private: | 143 private: |
| 138 friend class DeleteTask<WebPluginDelegateImpl>; | 144 friend class DeleteTask<WebPluginDelegateImpl>; |
| 139 friend class webkit_glue::WebPluginDelegate; | 145 friend class webkit_glue::WebPluginDelegate; |
| 140 | 146 |
| 141 WebPluginDelegateImpl(gfx::PluginWindowHandle containing_view, | 147 WebPluginDelegateImpl(gfx::PluginWindowHandle containing_view, |
| 142 NPAPI::PluginInstance *instance); | 148 NPAPI::PluginInstance *instance); |
| 143 ~WebPluginDelegateImpl(); | 149 ~WebPluginDelegateImpl(); |
| 144 | 150 |
| 145 // Called by Initialize() for platform-specific initialization. | 151 // Called by Initialize() for platform-specific initialization. |
| 146 void PlatformInitialize(); | 152 void PlatformInitialize(); |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 ScopedRunnableMethodFactory<WebPluginDelegateImpl> user_gesture_msg_factory_; | 388 ScopedRunnableMethodFactory<WebPluginDelegateImpl> user_gesture_msg_factory_; |
| 383 #endif | 389 #endif |
| 384 | 390 |
| 385 // Holds the current cursor set by the windowless plugin. | 391 // Holds the current cursor set by the windowless plugin. |
| 386 WebCursor current_windowless_cursor_; | 392 WebCursor current_windowless_cursor_; |
| 387 | 393 |
| 388 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); | 394 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); |
| 389 }; | 395 }; |
| 390 | 396 |
| 391 #endif // WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ | 397 #endif // WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ |
| OLD | NEW |