OLD | NEW |
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/site_instance.h" | 8 #include "chrome/browser/renderer_host/site_instance.h" |
9 #include "chrome/browser/renderer_host/test/test_backing_store.h" | 9 #include "chrome/browser/renderer_host/test/test_backing_store.h" |
10 #include "chrome/browser/tab_contents/navigation_controller.h" | 10 #include "chrome/browser/tab_contents/navigation_controller.h" |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 107 |
108 gfx::Rect TestRenderWidgetHostView::GetViewBounds() const { | 108 gfx::Rect TestRenderWidgetHostView::GetViewBounds() const { |
109 return gfx::Rect(); | 109 return gfx::Rect(); |
110 } | 110 } |
111 | 111 |
112 BackingStore* TestRenderWidgetHostView::AllocBackingStore( | 112 BackingStore* TestRenderWidgetHostView::AllocBackingStore( |
113 const gfx::Size& size) { | 113 const gfx::Size& size) { |
114 return new TestBackingStore(rwh_, size); | 114 return new TestBackingStore(rwh_, size); |
115 } | 115 } |
116 | 116 |
117 VideoLayer* TestRenderWidgetHostView::AllocVideoLayer( | |
118 const gfx::Size& size) { | |
119 NOTIMPLEMENTED(); | |
120 return NULL; | |
121 } | |
122 | |
123 #if defined(OS_MACOSX) | 117 #if defined(OS_MACOSX) |
124 | 118 |
125 void TestRenderWidgetHostView::ShowPopupWithItems( | 119 void TestRenderWidgetHostView::ShowPopupWithItems( |
126 gfx::Rect bounds, | 120 gfx::Rect bounds, |
127 int item_height, | 121 int item_height, |
128 double item_font_size, | 122 double item_font_size, |
129 int selected_item, | 123 int selected_item, |
130 const std::vector<WebMenuItem>& items, | 124 const std::vector<WebMenuItem>& items, |
131 bool right_aligned) { | 125 bool right_aligned) { |
132 } | 126 } |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 contents_.reset(); | 278 contents_.reset(); |
285 | 279 |
286 // Make sure that we flush any messages related to TabContents destruction | 280 // Make sure that we flush any messages related to TabContents destruction |
287 // before we destroy the profile. | 281 // before we destroy the profile. |
288 MessageLoop::current()->RunAllPending(); | 282 MessageLoop::current()->RunAllPending(); |
289 | 283 |
290 // Release the profile on the UI thread. | 284 // Release the profile on the UI thread. |
291 message_loop_.DeleteSoon(FROM_HERE, profile_.release()); | 285 message_loop_.DeleteSoon(FROM_HERE, profile_.release()); |
292 message_loop_.RunAllPending(); | 286 message_loop_.RunAllPending(); |
293 } | 287 } |
OLD | NEW |