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 #include <Carbon/Carbon.h> | 5 #include <Carbon/Carbon.h> |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/mac/mac_util.h" | 13 #include "base/mac/mac_util.h" |
14 #include "base/process_util.h" | 14 #include "base/process_util.h" |
15 #include "content/browser/browser_child_process_host_impl.h" | 15 #include "content/browser/browser_child_process_host_impl.h" |
16 #include "content/browser/plugin_process_host.h" | 16 #include "content/browser/plugin_process_host.h" |
17 #include "content/common/plugin_messages.h" | |
18 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
19 #include "content/public/browser/child_process_data.h" | 18 #include "content/public/browser/child_process_data.h" |
20 #include "ui/gfx/rect.h" | 19 #include "ui/gfx/rect.h" |
21 | 20 |
22 namespace content { | 21 namespace content { |
23 | 22 |
24 void PluginProcessHost::OnPluginSelectWindow(uint32 window_id, | 23 void PluginProcessHost::OnPluginSelectWindow(uint32 window_id, |
25 gfx::Rect window_rect, | 24 gfx::Rect window_rect, |
26 bool modal) { | 25 bool modal) { |
27 plugin_visible_windows_set_.insert(window_id); | 26 plugin_visible_windows_set_.insert(window_id); |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 void PluginProcessHost::OnPluginSetCursorVisibility(bool visible) { | 106 void PluginProcessHost::OnPluginSetCursorVisibility(bool visible) { |
108 if (plugin_cursor_visible_ != visible) { | 107 if (plugin_cursor_visible_ != visible) { |
109 plugin_cursor_visible_ = visible; | 108 plugin_cursor_visible_ = visible; |
110 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, | 109 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, |
111 base::Bind(base::mac::SetCursorVisibility, | 110 base::Bind(base::mac::SetCursorVisibility, |
112 visible)); | 111 visible)); |
113 } | 112 } |
114 } | 113 } |
115 | 114 |
116 } // namespace content | 115 } // namespace content |
OLD | NEW |