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

Side by Side Diff: chrome/browser/renderer_host/test/test_render_view_host.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/browser/renderer_host/test/test_render_view_host.h" 5 #include "chrome/browser/renderer_host/test/test_render_view_host.h"
6 6
7 #include "chrome/browser/browser_url_handler.h" 7 #include "chrome/browser/browser_url_handler.h"
8 #include "chrome/browser/renderer_host/test/test_backing_store.h" 8 #include "chrome/browser/renderer_host/test/test_backing_store.h"
9 #include "chrome/browser/tab_contents/test_tab_contents.h" 9 #include "chrome/browser/tab_contents/test_tab_contents.h"
10 #include "chrome/common/dom_storage_common.h" 10 #include "chrome/common/dom_storage_common.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 return gfx::Rect(); 118 return gfx::Rect();
119 } 119 }
120 120
121 void TestRenderWidgetHostView::SetActive(bool active) { 121 void TestRenderWidgetHostView::SetActive(bool active) {
122 // <viettrungluu@gmail.com>: Do I need to do anything here? 122 // <viettrungluu@gmail.com>: Do I need to do anything here?
123 } 123 }
124 124
125 gfx::PluginWindowHandle 125 gfx::PluginWindowHandle
126 TestRenderWidgetHostView::AllocateFakePluginWindowHandle( 126 TestRenderWidgetHostView::AllocateFakePluginWindowHandle(
127 bool opaque, 127 bool opaque,
128 bool can_draw_transparent,
128 bool root) { 129 bool root) {
129 return NULL; 130 return NULL;
130 } 131 }
131 132
132 void TestRenderWidgetHostView::DestroyFakePluginWindowHandle( 133 void TestRenderWidgetHostView::DestroyFakePluginWindowHandle(
133 gfx::PluginWindowHandle window) { 134 gfx::PluginWindowHandle window) {
134 } 135 }
135 136
136 void TestRenderWidgetHostView::AcceleratedSurfaceSetIOSurface( 137 void TestRenderWidgetHostView::AcceleratedSurfaceSetIOSurface(
137 gfx::PluginWindowHandle window, 138 gfx::PluginWindowHandle window,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 contents_.reset(); 188 contents_.reset();
188 189
189 // Make sure that we flush any messages related to TabContents destruction 190 // Make sure that we flush any messages related to TabContents destruction
190 // before we destroy the profile. 191 // before we destroy the profile.
191 MessageLoop::current()->RunAllPending(); 192 MessageLoop::current()->RunAllPending();
192 193
193 // Release the profile on the UI thread. 194 // Release the profile on the UI thread.
194 message_loop_.DeleteSoon(FROM_HERE, profile_.release()); 195 message_loop_.DeleteSoon(FROM_HERE, profile_.release());
195 message_loop_.RunAllPending(); 196 message_loop_.RunAllPending();
196 } 197 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698