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

Side by Side Diff: chrome/renderer/render_view_wrapper.h

Issue 6750018: Cleanup: Stop creating RenderViewObservers from chrome/ in RenderViewer. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix build on win/mac Created 9 years, 9 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_RENDERER_RENDER_VIEW_WRAPPER_H_
6 #define CHROME_RENDERER_RENDER_VIEW_WRAPPER_H_
7 #pragma once
8
9 #include "content/renderer/render_view_observer.h"
10 #include "ui/gfx/native_widget_types.h"
11
12 class PrintWebViewHelper;
13 class RenderView;
14 class SearchBox;
15
16 struct RendererPreferences;
17
18 namespace WebKit {
19 class WebView;
20 }
21
22 class RenderViewWrapper : public RenderViewObserver {
jam 2011/03/29 18:31:59 it seems a little confusing to call this RenderVie
Lei Zhang 2011/03/30 22:05:43 It was a poorly chosen name, but I had to name it
23 public:
24 RenderViewWrapper(RenderView* rv,
25 gfx::NativeViewId parent_hwnd,
26 int32 opener_id,
27 const RendererPreferences& renderer_prefs,
28 const string16& frame_name);
29 virtual ~RenderViewWrapper();
30
31 static RenderViewWrapper* FromWebView(WebKit::WebView* webview);
32
33 SearchBox* searchbox() const;
jam 2011/03/29 18:31:59 The interface of RenderViewObserver allows the imp
Lei Zhang 2011/03/30 22:05:43 I don't have a templatized helper, but I added a |
34
35 private:
36 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, BlockScriptInitiatedPrinting);
37 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, OnPrintPages);
38 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, PrintLayoutTest);
39 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, PrintWithIframe);
40
41 // The following RenderViewObservers are weak pointers.
42 PrintWebViewHelper* print_helper_;
43 SearchBox* searchbox_;
44
45 DISALLOW_COPY_AND_ASSIGN(RenderViewWrapper);
46 };
47
48 #endif // CHROME_RENDERER_RENDER_VIEW_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698