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

Side by Side Diff: content/test/test_render_view_host.cc

Issue 1652483002: Browser Side Text Input State Tracking for OOPIF. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 4 years, 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/test/test_render_view_host.h" 5 #include "content/test/test_render_view_host.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" 10 #include "content/browser/dom_storage/dom_storage_context_wrapper.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 void TestRenderWidgetHostView::WasOccluded() { 115 void TestRenderWidgetHostView::WasOccluded() {
116 is_occluded_ = true; 116 is_occluded_ = true;
117 } 117 }
118 118
119 void TestRenderWidgetHostView::RenderProcessGone(base::TerminationStatus status, 119 void TestRenderWidgetHostView::RenderProcessGone(base::TerminationStatus status,
120 int error_code) { 120 int error_code) {
121 delete this; 121 delete this;
122 } 122 }
123 123
124 void TestRenderWidgetHostView::Destroy() { delete this; } 124 void TestRenderWidgetHostView::Destroy() {
125 NotifyHostDelegateAboutShutdown();
126 delete this;
127 }
125 128
126 gfx::Rect TestRenderWidgetHostView::GetViewBounds() const { 129 gfx::Rect TestRenderWidgetHostView::GetViewBounds() const {
127 return gfx::Rect(); 130 return gfx::Rect();
128 } 131 }
129 132
130 void TestRenderWidgetHostView::CopyFromCompositingSurface( 133 void TestRenderWidgetHostView::CopyFromCompositingSurface(
131 const gfx::Rect& src_subrect, 134 const gfx::Rect& src_subrect,
132 const gfx::Size& dst_size, 135 const gfx::Size& dst_size,
133 const ReadbackRequestCallback& callback, 136 const ReadbackRequestCallback& callback,
134 const SkColorType preferred_color_type) { 137 const SkColorType preferred_color_type) {
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 319
317 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { 320 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() {
318 return contents()->GetMainFrame(); 321 return contents()->GetMainFrame();
319 } 322 }
320 323
321 TestWebContents* RenderViewHostImplTestHarness::contents() { 324 TestWebContents* RenderViewHostImplTestHarness::contents() {
322 return static_cast<TestWebContents*>(web_contents()); 325 return static_cast<TestWebContents*>(web_contents());
323 } 326 }
324 327
325 } // namespace content 328 } // namespace content
OLDNEW
« content/browser/web_contents/web_contents_impl.h ('K') | « content/test/test_render_view_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698