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

Side by Side Diff: content/browser/web_contents/web_contents_view_helper.h

Issue 10031044: TabContents -> WebContentsImpl, part 5. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase (fixed) Created 8 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 | 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_TAB_CONTENTS_TAB_CONTENTS_VIEW_HELPER_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_HELPER_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_HELPER_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_HELPER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "content/public/browser/notification_observer.h" 14 #include "content/public/browser/notification_observer.h"
15 #include "content/public/browser/notification_registrar.h" 15 #include "content/public/browser/notification_registrar.h"
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
(...skipping 10 matching lines...) Expand all
27 namespace gfx { 27 namespace gfx {
28 class Rect; 28 class Rect;
29 } 29 }
30 30
31 // TODO(avi): Once all the TabContentsViews implementations are in content (I'm 31 // TODO(avi): Once all the TabContentsViews implementations are in content (I'm
32 // looking at you, TabContentsViewViews...) then change the parameters to take 32 // looking at you, TabContentsViewViews...) then change the parameters to take
33 // WebContentsImpl rather than WebContents. 33 // WebContentsImpl rather than WebContents.
34 34
35 // Provides helper methods that provide common implementations of some 35 // Provides helper methods that provide common implementations of some
36 // WebContentsView methods. 36 // WebContentsView methods.
37 class CONTENT_EXPORT TabContentsViewHelper 37 class CONTENT_EXPORT WebContentsViewHelper
38 : public content::NotificationObserver { 38 : public content::NotificationObserver {
39 public: 39 public:
40 TabContentsViewHelper(); 40 WebContentsViewHelper();
41 virtual ~TabContentsViewHelper(); 41 virtual ~WebContentsViewHelper();
42 42
43 // Creates a new window; call |ShowCreatedWindow| below to show it. 43 // Creates a new window; call |ShowCreatedWindow| below to show it.
44 WebContentsImpl* CreateNewWindow( 44 WebContentsImpl* CreateNewWindow(
45 content::WebContents* web_contents, 45 content::WebContents* web_contents,
46 int route_id, 46 int route_id,
47 const ViewHostMsg_CreateWindow_Params& params); 47 const ViewHostMsg_CreateWindow_Params& params);
48 48
49 // Creates a new popup or fullscreen widget; call |ShowCreatedWidget| below to 49 // Creates a new popup or fullscreen widget; call |ShowCreatedWidget| below to
50 // show it. If |is_fullscreen| is true it is a fullscreen widget, if not then 50 // show it. If |is_fullscreen| is true it is a fullscreen widget, if not then
51 // a pop-up. |popup_type| is only meaningful for a pop-up. 51 // a pop-up. |popup_type| is only meaningful for a pop-up.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 PendingContents pending_contents_; 91 PendingContents pending_contents_;
92 92
93 // These maps hold on to the widgets that we created on behalf of the renderer 93 // These maps hold on to the widgets that we created on behalf of the renderer
94 // that haven't shown yet. 94 // that haven't shown yet.
95 typedef std::map<int, content::RenderWidgetHostView*> PendingWidgetViews; 95 typedef std::map<int, content::RenderWidgetHostView*> PendingWidgetViews;
96 PendingWidgetViews pending_widget_views_; 96 PendingWidgetViews pending_widget_views_;
97 97
98 // Registers and unregisters us for notifications. 98 // Registers and unregisters us for notifications.
99 content::NotificationRegistrar registrar_; 99 content::NotificationRegistrar registrar_;
100 100
101 DISALLOW_COPY_AND_ASSIGN(TabContentsViewHelper); 101 DISALLOW_COPY_AND_ASSIGN(WebContentsViewHelper);
102 }; 102 };
103 103
104 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_HELPER_H_ 104 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698