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/logging.h" | 11 #include "base/logging.h" |
12 #include "base/mac/mac_util.h" | 12 #include "base/mac/mac_util.h" |
13 #include "content/browser/plugin_process_host.h" | 13 #include "content/browser/plugin_process_host.h" |
14 #include "content/common/plugin_messages.h" | 14 #include "content/common/plugin_messages.h" |
15 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
16 #include "ui/gfx/rect.h" | 16 #include "ui/gfx/rect.h" |
17 | 17 |
| 18 using content::BrowserThread; |
| 19 |
18 void PluginProcessHost::OnPluginSelectWindow(uint32 window_id, | 20 void PluginProcessHost::OnPluginSelectWindow(uint32 window_id, |
19 gfx::Rect window_rect, | 21 gfx::Rect window_rect, |
20 bool modal) { | 22 bool modal) { |
21 plugin_visible_windows_set_.insert(window_id); | 23 plugin_visible_windows_set_.insert(window_id); |
22 if (modal) | 24 if (modal) |
23 plugin_modal_windows_set_.insert(window_id); | 25 plugin_modal_windows_set_.insert(window_id); |
24 } | 26 } |
25 | 27 |
26 void PluginProcessHost::OnPluginShowWindow(uint32 window_id, | 28 void PluginProcessHost::OnPluginShowWindow(uint32 window_id, |
27 gfx::Rect window_rect, | 29 gfx::Rect window_rect, |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 104 |
103 void PluginProcessHost::OnPluginSetCursorVisibility(bool visible) { | 105 void PluginProcessHost::OnPluginSetCursorVisibility(bool visible) { |
104 if (plugin_cursor_visible_ != visible) { | 106 if (plugin_cursor_visible_ != visible) { |
105 plugin_cursor_visible_ = visible; | 107 plugin_cursor_visible_ = visible; |
106 BrowserThread::PostTask( | 108 BrowserThread::PostTask( |
107 BrowserThread::UI, FROM_HERE, | 109 BrowserThread::UI, FROM_HERE, |
108 NewRunnableFunction(base::mac::SetCursorVisibility, | 110 NewRunnableFunction(base::mac::SetCursorVisibility, |
109 visible)); | 111 visible)); |
110 } | 112 } |
111 } | 113 } |
OLD | NEW |