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

Side by Side Diff: chrome/renderer/render_view.cc

Issue 3176027: Mac: Well-behaved accelerated plugins, actual fix (Closed)
Patch Set: test Created 10 years, 4 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/renderer/render_view.h" 5 #include "chrome/renderer/render_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 5370 matching lines...) Expand 10 before | Expand all | Expand 10 after
5381 if (!has_document_tag_) { 5381 if (!has_document_tag_) {
5382 // Make the call to get the tag. 5382 // Make the call to get the tag.
5383 Send(new ViewHostMsg_GetDocumentTag(routing_id_, &document_tag_)); 5383 Send(new ViewHostMsg_GetDocumentTag(routing_id_, &document_tag_));
5384 has_document_tag_ = true; 5384 has_document_tag_ = true;
5385 } 5385 }
5386 #endif 5386 #endif
5387 } 5387 }
5388 5388
5389 #if defined(OS_MACOSX) 5389 #if defined(OS_MACOSX)
5390 gfx::PluginWindowHandle RenderView::AllocateFakePluginWindowHandle( 5390 gfx::PluginWindowHandle RenderView::AllocateFakePluginWindowHandle(
5391 bool opaque, bool root) { 5391 bool opaque, bool can_draw_transparent, bool root) {
5392 gfx::PluginWindowHandle window = NULL; 5392 gfx::PluginWindowHandle window = NULL;
5393 Send(new ViewHostMsg_AllocateFakePluginWindowHandle( 5393 Send(new ViewHostMsg_AllocateFakePluginWindowHandle(
5394 routing_id(), opaque, root, &window)); 5394 routing_id(), opaque, can_draw_transparent, root, &window));
5395 return window; 5395 return window;
5396 } 5396 }
5397 5397
5398 void RenderView::DestroyFakePluginWindowHandle(gfx::PluginWindowHandle window) { 5398 void RenderView::DestroyFakePluginWindowHandle(gfx::PluginWindowHandle window) {
5399 if (window) 5399 if (window)
5400 Send(new ViewHostMsg_DestroyFakePluginWindowHandle(routing_id(), window)); 5400 Send(new ViewHostMsg_DestroyFakePluginWindowHandle(routing_id(), window));
5401 } 5401 }
5402 5402
5403 void RenderView::AcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window, 5403 void RenderView::AcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window,
5404 int32 width, 5404 int32 width,
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
5549 PendingOpenFileSystem* request = pending_file_system_requests_.Lookup( 5549 PendingOpenFileSystem* request = pending_file_system_requests_.Lookup(
5550 request_id); 5550 request_id);
5551 DCHECK(request); 5551 DCHECK(request);
5552 if (accepted) 5552 if (accepted)
5553 request->callbacks->didOpenFileSystem(name, root_path); 5553 request->callbacks->didOpenFileSystem(name, root_path);
5554 else 5554 else
5555 request->callbacks->didFail(WebKit::WebFileErrorSecurity); 5555 request->callbacks->didFail(WebKit::WebFileErrorSecurity);
5556 request->callbacks = NULL; 5556 request->callbacks = NULL;
5557 pending_file_system_requests_.Remove(request_id); 5557 pending_file_system_requests_.Remove(request_id);
5558 } 5558 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698