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

Side by Side Diff: chrome/plugin/plugin_thread.cc

Issue 257008: Fix several issues around fullscreen Mac plugins:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "chrome/plugin/plugin_thread.h" 5 #include "chrome/plugin/plugin_thread.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 PluginThread* plugin_thread = PluginThread::current(); 157 PluginThread* plugin_thread = PluginThread::current();
158 if (!plugin_thread) 158 if (!plugin_thread)
159 return false; 159 return false;
160 160
161 plugin_thread->Send( 161 plugin_thread->Send(
162 new PluginProcessHostMsg_GetPluginFinderUrl(plugin_finder_url)); 162 new PluginProcessHostMsg_GetPluginFinderUrl(plugin_finder_url));
163 DCHECK(!plugin_finder_url->empty()); 163 DCHECK(!plugin_finder_url->empty());
164 return true; 164 return true;
165 } 165 }
166 166
167 #if defined(OS_MACOSX)
168 __attribute__((visibility("default")))
darin (slow to review) 2009/10/01 22:19:53 what's up with these GCC attributes?
Amanda Walker 2009/10/01 23:17:06 They allow the interposed library that we use to i
169 void NotifyBrowserOfPluginSelectWindow(uint32 window_id, CGRect bounds) {
170 PluginThread* plugin_thread = PluginThread::current();
171 if (plugin_thread) {
172 gfx::Rect window_bounds(bounds);
173 plugin_thread->Send(
174 new PluginProcessHostMsg_PluginSelectWindow(window_id, window_bounds));
175 }
176 }
177
178 __attribute__((visibility("default")))
179 void NotifyBrowserOfPluginShowWindow(uint32 window_id, CGRect bounds) {
180 PluginThread* plugin_thread = PluginThread::current();
181 if (plugin_thread) {
182 gfx::Rect window_bounds(bounds);
183 plugin_thread->Send(
184 new PluginProcessHostMsg_PluginShowWindow(window_id, window_bounds));
185 }
186 }
187
188 __attribute__((visibility("default")))
189 void NotifyBrowserOfPluginHideWindow(uint32 window_id, CGRect bounds) {
190 PluginThread* plugin_thread = PluginThread::current();
191 if (plugin_thread) {
192 gfx::Rect window_bounds(bounds);
193 plugin_thread->Send(
194 new PluginProcessHostMsg_PluginHideWindow(window_id, window_bounds));
195 }
196 }
197
198 __attribute__((visibility("default")))
199 void NotifyBrowserOfPluginDisposeWindow(uint32 window_id, CGRect bounds) {
200 PluginThread* plugin_thread = PluginThread::current();
201 if (plugin_thread) {
202 gfx::Rect window_bounds(bounds);
203 plugin_thread->Send(
204 new PluginProcessHostMsg_PluginDisposeWindow(window_id, window_bounds));
205 }
206 }
207 #endif
208
167 bool IsDefaultPluginEnabled() { 209 bool IsDefaultPluginEnabled() {
168 #if defined(OS_WIN) 210 #if defined(OS_WIN)
169 return true; 211 return true;
170 #elif defined(OS_LINUX) 212 #elif defined(OS_LINUX)
171 // http://code.google.com/p/chromium/issues/detail?id=10952 213 // http://code.google.com/p/chromium/issues/detail?id=10952
172 return false; 214 return false;
173 #elif defined(OS_MACOSX) 215 #elif defined(OS_MACOSX)
174 // http://code.google.com/p/chromium/issues/detail?id=17392 216 // http://code.google.com/p/chromium/issues/detail?id=17392
175 return false; 217 return false;
176 #endif 218 #endif
(...skipping 15 matching lines...) Expand all
192 } 234 }
193 235
194 if (!result || net_error != net::OK) 236 if (!result || net_error != net::OK)
195 return false; 237 return false;
196 238
197 *proxy_list = proxy_result; 239 *proxy_list = proxy_result;
198 return true; 240 return true;
199 } 241 }
200 242
201 } // namespace webkit_glue 243 } // namespace webkit_glue
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698