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

Side by Side Diff: chrome/browser/tab_contents/tab_contents_view.h

Issue 3055009: Use RenderWidget(Host) for full screen (Closed)
Patch Set: Add IPC::SyncMessage dependency. Fix auto complete. Created 10 years, 4 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 // 162 //
163 // The Create function returns the newly created widget so it can be 163 // The Create function returns the newly created widget so it can be
164 // associated with the given route. When the widget needs to be shown later, 164 // associated with the given route. When the widget needs to be shown later,
165 // we'll look it up again and pass the object to the Show functions rather 165 // we'll look it up again and pass the object to the Show functions rather
166 // than the route ID. 166 // than the route ID.
167 virtual RenderWidgetHostView* CreateNewWidgetInternal( 167 virtual RenderWidgetHostView* CreateNewWidgetInternal(
168 int route_id, 168 int route_id,
169 WebKit::WebPopupType popup_type); 169 WebKit::WebPopupType popup_type);
170 virtual void ShowCreatedWidgetInternal(RenderWidgetHostView* widget_host_view, 170 virtual void ShowCreatedWidgetInternal(RenderWidgetHostView* widget_host_view,
171 const gfx::Rect& initial_pos); 171 const gfx::Rect& initial_pos);
172 virtual void ShowCreatedFullscreenWidgetInternal(
173 RenderWidgetHostView* widget_host_view);
174 virtual RenderWidgetHostView* CreateNewFullscreenWidgetInternal(
175 int route_id,
176 WebKit::WebPopupType popup_type);
172 177
173 // Common implementations of some RenderViewHostDelegate::View methods. 178 // Common implementations of some RenderViewHostDelegate::View methods.
174 RenderViewHostDelegateViewHelper delegate_view_helper_; 179 RenderViewHostDelegateViewHelper delegate_view_helper_;
175 180
176 private: 181 private:
177 // We implement these functions on RenderViewHostDelegate::View directly and 182 // We implement these functions on RenderViewHostDelegate::View directly and
178 // do some book-keeping associated with the request. The request is then 183 // do some book-keeping associated with the request. The request is then
179 // forwarded to *Internal which does platform-specific work. 184 // forwarded to *Internal which does platform-specific work.
180 virtual void CreateNewWindow( 185 virtual void CreateNewWindow(
181 int route_id, 186 int route_id,
182 WindowContainerType window_container_type, 187 WindowContainerType window_container_type,
183 const string16& frame_name); 188 const string16& frame_name);
184 virtual void CreateNewWidget(int route_id, WebKit::WebPopupType popup_type); 189 virtual void CreateNewWidget(int route_id, WebKit::WebPopupType popup_type);
190 virtual void CreateNewFullscreenWidget(
191 int route_id, WebKit::WebPopupType popup_type);
185 virtual void ShowCreatedWindow(int route_id, 192 virtual void ShowCreatedWindow(int route_id,
186 WindowOpenDisposition disposition, 193 WindowOpenDisposition disposition,
187 const gfx::Rect& initial_pos, 194 const gfx::Rect& initial_pos,
188 bool user_gesture); 195 bool user_gesture);
189 virtual void ShowCreatedWidget(int route_id, const gfx::Rect& initial_pos); 196 virtual void ShowCreatedWidget(int route_id, const gfx::Rect& initial_pos);
190 virtual void Activate(); 197 virtual void Activate();
191 virtual void Deactivate(); 198 virtual void Deactivate();
199 virtual void ShowCreatedFullscreenWidget(int route_id);
192 200
193 // The TabContents whose contents we display. 201 // The TabContents whose contents we display.
194 TabContents* tab_contents_; 202 TabContents* tab_contents_;
195 203
196 // Tracks created TabContents objects that have not been shown yet. They are 204 // Tracks created TabContents objects that have not been shown yet. They are
197 // identified by the route ID passed to CreateNewWindow. 205 // identified by the route ID passed to CreateNewWindow.
198 typedef std::map<int, TabContents*> PendingContents; 206 typedef std::map<int, TabContents*> PendingContents;
199 PendingContents pending_contents_; 207 PendingContents pending_contents_;
200 208
201 // These maps hold on to the widgets that we created on behalf of the 209 // These maps hold on to the widgets that we created on behalf of the
202 // renderer that haven't shown yet. 210 // renderer that haven't shown yet.
203 typedef std::map<int, RenderWidgetHostView*> PendingWidgetViews; 211 typedef std::map<int, RenderWidgetHostView*> PendingWidgetViews;
204 PendingWidgetViews pending_widget_views_; 212 PendingWidgetViews pending_widget_views_;
205 213
206 DISALLOW_COPY_AND_ASSIGN(TabContentsView); 214 DISALLOW_COPY_AND_ASSIGN(TabContentsView);
207 }; 215 };
208 216
209 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_ 217 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/render_view_host_delegate_helper.cc ('k') | chrome/browser/tab_contents/tab_contents_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698