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

Side by Side Diff: content/browser/web_contents/web_contents_impl_unittest.cc

Issue 10377158: Move keyboard related methods from RenderViewHostDelegate to a new RenderWidgetHostDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove crbug link Created 8 years, 7 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 | Annotate | Revision Log
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 "base/logging.h" 5 #include "base/logging.h"
6 #include "base/utf_string_conversions.h" 6 #include "base/utf_string_conversions.h"
7 #include "content/browser/mock_content_browser_client.h" 7 #include "content/browser/mock_content_browser_client.h"
8 #include "content/browser/renderer_host/render_view_host_impl.h" 8 #include "content/browser/renderer_host/render_view_host_impl.h"
9 #include "content/browser/renderer_host/test_render_view_host.h" 9 #include "content/browser/renderer_host/test_render_view_host.h"
10 #include "content/browser/site_instance_impl.h" 10 #include "content/browser/site_instance_impl.h"
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 } 214 }
215 215
216 void set_delegate(Delegate* delegate) { 216 void set_delegate(Delegate* delegate) {
217 delegate_ = delegate; 217 delegate_ = delegate;
218 } 218 }
219 219
220 protected: 220 protected:
221 virtual content::RenderViewHost* CreateRenderViewHost() OVERRIDE { 221 virtual content::RenderViewHost* CreateRenderViewHost() OVERRIDE {
222 return new TestRenderViewHost( 222 return new TestRenderViewHost(
223 SiteInstance::Create(web_contents()->GetBrowserContext()), 223 SiteInstance::Create(web_contents()->GetBrowserContext()),
224 this, MSG_ROUTING_NONE, false); 224 this, this, MSG_ROUTING_NONE, false);
225 } 225 }
226 226
227 virtual content::WebContentsView* CreateWebContentsView() OVERRIDE { 227 virtual content::WebContentsView* CreateWebContentsView() OVERRIDE {
228 return NULL; 228 return NULL;
229 } 229 }
230 230
231 private: 231 private:
232 InterstitialState* state_; 232 InterstitialState* state_;
233 bool* deleted_; 233 bool* deleted_;
234 int command_received_count_; 234 int command_received_count_;
(...skipping 1698 matching lines...) Expand 10 before | Expand all | Expand 10 after
1933 // It should have a transient entry. 1933 // It should have a transient entry.
1934 EXPECT_TRUE(other_controller.GetTransientEntry()); 1934 EXPECT_TRUE(other_controller.GetTransientEntry());
1935 1935
1936 // And the interstitial should be showing. 1936 // And the interstitial should be showing.
1937 EXPECT_TRUE(other_contents->ShowingInterstitialPage()); 1937 EXPECT_TRUE(other_contents->ShowingInterstitialPage());
1938 1938
1939 // And the interstitial should do a reload on don't proceed. 1939 // And the interstitial should do a reload on don't proceed.
1940 EXPECT_TRUE(static_cast<InterstitialPageImpl*>( 1940 EXPECT_TRUE(static_cast<InterstitialPageImpl*>(
1941 other_contents->GetInterstitialPage())->reload_on_dont_proceed()); 1941 other_contents->GetInterstitialPage())->reload_on_dont_proceed());
1942 } 1942 }
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/browser/web_contents/web_contents_view_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698