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

Side by Side Diff: content/browser/renderer_host/test_render_view_host.h

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 #ifndef CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // The reason we do it this way instead of using composition is 210 // The reason we do it this way instead of using composition is
211 // similar to (b) above, essentially it gets very tricky. By using 211 // similar to (b) above, essentially it gets very tricky. By using
212 // the split interface we avoid complexity within content and maintain 212 // the split interface we avoid complexity within content and maintain
213 // reasonable utility for embedders. 213 // reasonable utility for embedders.
214 class TestRenderViewHost 214 class TestRenderViewHost
215 : public RenderViewHostImpl, 215 : public RenderViewHostImpl,
216 public RenderViewHostTester { 216 public RenderViewHostTester {
217 public: 217 public:
218 TestRenderViewHost(SiteInstance* instance, 218 TestRenderViewHost(SiteInstance* instance,
219 RenderViewHostDelegate* delegate, 219 RenderViewHostDelegate* delegate,
220 RenderWidgetHostDelegate* widget_delegate,
220 int routing_id, 221 int routing_id,
221 bool swapped_out); 222 bool swapped_out);
222 virtual ~TestRenderViewHost(); 223 virtual ~TestRenderViewHost();
223 224
224 // RenderViewHostTester implementation. Note that CreateRenderView 225 // RenderViewHostTester implementation. Note that CreateRenderView
225 // is not specified since it is synonymous with the one from 226 // is not specified since it is synonymous with the one from
226 // RenderViewHostImpl, see below. 227 // RenderViewHostImpl, see below.
227 virtual void SendNavigate(int page_id, const GURL& url) OVERRIDE; 228 virtual void SendNavigate(int page_id, const GURL& url) OVERRIDE;
228 virtual void SendNavigateWithTransition(int page_id, const GURL& url, 229 virtual void SendNavigateWithTransition(int page_id, const GURL& url,
229 PageTransition transition) OVERRIDE; 230 PageTransition transition) OVERRIDE;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 TestRenderViewHost* active_test_rvh(); 313 TestRenderViewHost* active_test_rvh();
313 TestWebContents* contents(); 314 TestWebContents* contents();
314 315
315 private: 316 private:
316 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); 317 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness);
317 }; 318 };
318 319
319 } // namespace content 320 } // namespace content
320 321
321 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ 322 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698