| 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 | 169 |
| 170 gfx::Rect TestRenderWidgetHostView::GetViewBounds() const { | 170 gfx::Rect TestRenderWidgetHostView::GetViewBounds() const { |
| 171 return gfx::Rect(); | 171 return gfx::Rect(); |
| 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::AcceleratedSurfaceBuffersSwapped( |
| 180 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, |
| 181 int gpu_host_id) { |
| 182 } |
| 183 |
| 179 #if defined(OS_MACOSX) | 184 #if defined(OS_MACOSX) |
| 180 | 185 |
| 181 gfx::Rect TestRenderWidgetHostView::GetViewCocoaBounds() const { | 186 gfx::Rect TestRenderWidgetHostView::GetViewCocoaBounds() const { |
| 182 return gfx::Rect(); | 187 return gfx::Rect(); |
| 183 } | 188 } |
| 184 | 189 |
| 185 void TestRenderWidgetHostView::SetActive(bool active) { | 190 void TestRenderWidgetHostView::SetActive(bool active) { |
| 186 // <viettrungluu@gmail.com>: Do I need to do anything here? | 191 // <viettrungluu@gmail.com>: Do I need to do anything here? |
| 187 } | 192 } |
| 188 | 193 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 216 uint64 surface_id) { | 221 uint64 surface_id) { |
| 217 } | 222 } |
| 218 | 223 |
| 219 void TestRenderWidgetHostView::AcceleratedSurfaceSetTransportDIB( | 224 void TestRenderWidgetHostView::AcceleratedSurfaceSetTransportDIB( |
| 220 gfx::PluginWindowHandle window, | 225 gfx::PluginWindowHandle window, |
| 221 int32 width, | 226 int32 width, |
| 222 int32 height, | 227 int32 height, |
| 223 TransportDIB::Handle transport_dib) { | 228 TransportDIB::Handle transport_dib) { |
| 224 } | 229 } |
| 225 | 230 |
| 226 void TestRenderWidgetHostView::AcceleratedSurfaceBuffersSwapped( | |
| 227 gfx::PluginWindowHandle window, | |
| 228 uint64 surface_id, | |
| 229 int renderer_id, | |
| 230 int32 route_id, | |
| 231 int gpu_host_id) { | |
| 232 } | |
| 233 | |
| 234 void TestRenderWidgetHostView::GpuRenderingStateDidChange() { | 231 void TestRenderWidgetHostView::GpuRenderingStateDidChange() { |
| 235 } | 232 } |
| 236 | 233 |
| 237 #elif defined(OS_WIN) | 234 #elif defined(OS_WIN) |
| 238 void TestRenderWidgetHostView::WillWmDestroy() { | 235 void TestRenderWidgetHostView::WillWmDestroy() { |
| 239 } | 236 } |
| 240 | 237 |
| 241 void TestRenderWidgetHostView::ShowCompositorHostWindow(bool show) { | 238 void TestRenderWidgetHostView::ShowCompositorHostWindow(bool show) { |
| 242 } | 239 } |
| 243 #endif | 240 #endif |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 SetContents(NULL); | 360 SetContents(NULL); |
| 364 | 361 |
| 365 // Make sure that we flush any messages related to TabContents destruction | 362 // Make sure that we flush any messages related to TabContents destruction |
| 366 // before we destroy the browser context. | 363 // before we destroy the browser context. |
| 367 MessageLoop::current()->RunAllPending(); | 364 MessageLoop::current()->RunAllPending(); |
| 368 | 365 |
| 369 // Release the browser context on the UI thread. | 366 // Release the browser context on the UI thread. |
| 370 message_loop_.DeleteSoon(FROM_HERE, browser_context_.release()); | 367 message_loop_.DeleteSoon(FROM_HERE, browser_context_.release()); |
| 371 message_loop_.RunAllPending(); | 368 message_loop_.RunAllPending(); |
| 372 } | 369 } |
| OLD | NEW |