OLD | NEW |
1 | 1 |
2 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
5 | 5 |
6 #include "content/browser/browser_url_handler.h" | 6 #include "content/browser/browser_url_handler.h" |
7 #include "content/browser/renderer_host/test_backing_store.h" | 7 #include "content/browser/renderer_host/test_backing_store.h" |
8 #include "content/browser/renderer_host/test_render_view_host.h" | 8 #include "content/browser/renderer_host/test_render_view_host.h" |
9 #include "content/browser/site_instance.h" | 9 #include "content/browser/site_instance.h" |
10 #include "content/browser/tab_contents/navigation_controller.h" | 10 #include "content/browser/tab_contents/navigation_controller.h" |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 } | 172 } |
173 | 173 |
174 BackingStore* TestRenderWidgetHostView::AllocBackingStore( | 174 BackingStore* TestRenderWidgetHostView::AllocBackingStore( |
175 const gfx::Size& size) { | 175 const gfx::Size& size) { |
176 return new TestBackingStore(rwh_, size); | 176 return new TestBackingStore(rwh_, size); |
177 } | 177 } |
178 | 178 |
179 void TestRenderWidgetHostView::OnAcceleratedCompositingStateChange() { | 179 void TestRenderWidgetHostView::OnAcceleratedCompositingStateChange() { |
180 } | 180 } |
181 | 181 |
182 void TestRenderWidgetHostView::AcceleratedSurfaceBuffersSwapped( | |
183 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | |
184 int gpu_host_id) { | |
185 } | |
186 | |
187 #if defined(OS_MACOSX) | 182 #if defined(OS_MACOSX) |
188 | 183 |
189 gfx::Rect TestRenderWidgetHostView::GetViewCocoaBounds() const { | 184 gfx::Rect TestRenderWidgetHostView::GetViewCocoaBounds() const { |
190 return gfx::Rect(); | 185 return gfx::Rect(); |
191 } | 186 } |
192 | 187 |
193 void TestRenderWidgetHostView::SetActive(bool active) { | 188 void TestRenderWidgetHostView::SetActive(bool active) { |
194 // <viettrungluu@gmail.com>: Do I need to do anything here? | 189 // <viettrungluu@gmail.com>: Do I need to do anything here? |
195 } | 190 } |
196 | 191 |
(...skipping 27 matching lines...) Expand all Loading... |
224 uint64 surface_id) { | 219 uint64 surface_id) { |
225 } | 220 } |
226 | 221 |
227 void TestRenderWidgetHostView::AcceleratedSurfaceSetTransportDIB( | 222 void TestRenderWidgetHostView::AcceleratedSurfaceSetTransportDIB( |
228 gfx::PluginWindowHandle window, | 223 gfx::PluginWindowHandle window, |
229 int32 width, | 224 int32 width, |
230 int32 height, | 225 int32 height, |
231 TransportDIB::Handle transport_dib) { | 226 TransportDIB::Handle transport_dib) { |
232 } | 227 } |
233 | 228 |
| 229 void TestRenderWidgetHostView::AcceleratedSurfaceBuffersSwapped( |
| 230 gfx::PluginWindowHandle window, |
| 231 uint64 surface_id, |
| 232 int renderer_id, |
| 233 int32 route_id, |
| 234 int gpu_host_id) { |
| 235 } |
| 236 |
234 #elif defined(OS_WIN) | 237 #elif defined(OS_WIN) |
235 void TestRenderWidgetHostView::WillWmDestroy() { | 238 void TestRenderWidgetHostView::WillWmDestroy() { |
236 } | 239 } |
237 | 240 |
238 #endif | 241 #endif |
239 | 242 |
240 #if defined(OS_POSIX) || defined(USE_AURA) | 243 #if defined(OS_POSIX) || defined(USE_AURA) |
241 gfx::Rect TestRenderWidgetHostView::GetRootWindowBounds() { | 244 gfx::Rect TestRenderWidgetHostView::GetRootWindowBounds() { |
242 return gfx::Rect(); | 245 return gfx::Rect(); |
243 } | 246 } |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 SetContents(NULL); | 361 SetContents(NULL); |
359 | 362 |
360 // Make sure that we flush any messages related to TabContents destruction | 363 // Make sure that we flush any messages related to TabContents destruction |
361 // before we destroy the browser context. | 364 // before we destroy the browser context. |
362 MessageLoop::current()->RunAllPending(); | 365 MessageLoop::current()->RunAllPending(); |
363 | 366 |
364 // Release the browser context on the UI thread. | 367 // Release the browser context on the UI thread. |
365 message_loop_.DeleteSoon(FROM_HERE, browser_context_.release()); | 368 message_loop_.DeleteSoon(FROM_HERE, browser_context_.release()); |
366 message_loop_.RunAllPending(); | 369 message_loop_.RunAllPending(); |
367 } | 370 } |
OLD | NEW |