summaryrefslogtreecommitdiffstats
path: root/chrome/browser/plugin_process_host_mac.cc
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-02 17:04:55 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-02 17:04:55 +0000
commit18db46180363c8705c6e21747b97f4beb00bfa01 (patch)
treee933f71549a0ff6594a16a7d498542512b74cef3 /chrome/browser/plugin_process_host_mac.cc
parent1350c0f41aa6842ee0e0b28bce2147fd90cec21b (diff)
downloadchromium_src-18db46180363c8705c6e21747b97f4beb00bfa01.zip
chromium_src-18db46180363c8705c6e21747b97f4beb00bfa01.tar.gz
chromium_src-18db46180363c8705c6e21747b97f4beb00bfa01.tar.bz2
Hide/show cursor according to NSCursor requests.
BUG=http://crbug.com/32703 TEST=when hiding cursor (Flash 10.1), cursor hides (but doesn't stay hidden; that's a different bug) Review URL: http://codereview.chromium.org/560003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37841 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/plugin_process_host_mac.cc')
-rw-r--r--chrome/browser/plugin_process_host_mac.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/plugin_process_host_mac.cc b/chrome/browser/plugin_process_host_mac.cc
index 2df0eae..77596a0 100644
--- a/chrome/browser/plugin_process_host_mac.cc
+++ b/chrome/browser/plugin_process_host_mac.cc
@@ -111,3 +111,13 @@ void PluginProcessHost::OnPluginReceivedFocus(int process_id, int instance_id) {
plugin->Send(new PluginProcessMsg_PluginFocusNotify(instance));
}
}
+
+void PluginProcessHost::OnPluginSetCursorVisibility(bool visible) {
+ if (plugin_cursor_visible_ != visible) {
+ plugin_cursor_visible_ = visible;
+ ChromeThread::PostTask(
+ ChromeThread::UI, FROM_HERE,
+ NewRunnableFunction(mac_util::SetCursorVisibility,
+ visible));
+ }
+}