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

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: Merged 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
« no previous file with comments | « content/test/test_render_view_host.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 314
312 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { 315 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() {
313 return contents()->GetMainFrame(); 316 return contents()->GetMainFrame();
314 } 317 }
315 318
316 TestWebContents* RenderViewHostImplTestHarness::contents() { 319 TestWebContents* RenderViewHostImplTestHarness::contents() {
317 return static_cast<TestWebContents*>(web_contents()); 320 return static_cast<TestWebContents*>(web_contents());
318 } 321 }
319 322
320 } // namespace content 323 } // namespace content
OLDNEW
« no previous file with comments | « 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