| OLD | NEW |
| 1 // Copyright (c) 2009 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> |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // |instance_id| are both 0, this signifies that no plugin has keyboard | 126 // |instance_id| are both 0, this signifies that no plugin has keyboard |
| 127 // focus. | 127 // focus. |
| 128 void FocusNotify(WebPluginDelegateImpl* focused_delegate); | 128 void FocusNotify(WebPluginDelegateImpl* focused_delegate); |
| 129 // Set a notifier function that gets called when the delegate is accepting | 129 // Set a notifier function that gets called when the delegate is accepting |
| 130 // the focus. If no notifier function has been set, the delegate will just | 130 // the focus. If no notifier function has been set, the delegate will just |
| 131 // call FocusNotify(this). This is used in a multiprocess environment to | 131 // call FocusNotify(this). This is used in a multiprocess environment to |
| 132 // propagate focus notifications to all running plugin processes. | 132 // propagate focus notifications to all running plugin processes. |
| 133 void SetFocusNotifier(void (*notifier)(WebPluginDelegateImpl*)) { | 133 void SetFocusNotifier(void (*notifier)(WebPluginDelegateImpl*)) { |
| 134 focus_notifier_ = notifier; | 134 focus_notifier_ = notifier; |
| 135 } | 135 } |
| 136 // Informs the delegate that the plugin set a theme cursor. | 136 // Informs the delegate that the plugin set a Carbon ThemeCursor. |
| 137 void SetThemeCursor(ThemeCursor cursor); | 137 void SetThemeCursor(ThemeCursor cursor); |
| 138 // Informs the delegate that the plugin set a Cocoa NSCursor. |
| 139 void SetNSCursor(NSCursor* cursor); |
| 138 #endif | 140 #endif |
| 139 | 141 |
| 140 #if !defined(OS_MACOSX) | 142 #if !defined(OS_MACOSX) |
| 141 gfx::PluginWindowHandle windowed_handle() const { | 143 gfx::PluginWindowHandle windowed_handle() const { |
| 142 return windowed_handle_; | 144 return windowed_handle_; |
| 143 } | 145 } |
| 144 #endif | 146 #endif |
| 145 | 147 |
| 146 private: | 148 private: |
| 147 friend class DeleteTask<WebPluginDelegateImpl>; | 149 friend class DeleteTask<WebPluginDelegateImpl>; |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 ScopedRunnableMethodFactory<WebPluginDelegateImpl> user_gesture_msg_factory_; | 390 ScopedRunnableMethodFactory<WebPluginDelegateImpl> user_gesture_msg_factory_; |
| 389 #endif | 391 #endif |
| 390 | 392 |
| 391 // Holds the current cursor set by the windowless plugin. | 393 // Holds the current cursor set by the windowless plugin. |
| 392 WebCursor current_windowless_cursor_; | 394 WebCursor current_windowless_cursor_; |
| 393 | 395 |
| 394 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); | 396 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); |
| 395 }; | 397 }; |
| 396 | 398 |
| 397 #endif // WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ | 399 #endif // WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ |
| OLD | NEW |