Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(576)

Side by Side Diff: content/browser/plugin_process_host_mac.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/plugin_process_host.cc ('k') | content/browser/plugin_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « content/browser/plugin_process_host.cc ('k') | content/browser/plugin_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698