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

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

Issue 6462017: gtk: Improve fullscreen RenderWidgetHostViewGtk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update a comment Created 9 years, 10 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) 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 // associated with the given route. When the widget needs to be shown later, 169 // associated with the given route. When the widget needs to be shown later,
170 // we'll look it up again and pass the object to the Show functions rather 170 // we'll look it up again and pass the object to the Show functions rather
171 // than the route ID. 171 // than the route ID.
172 virtual RenderWidgetHostView* CreateNewWidgetInternal( 172 virtual RenderWidgetHostView* CreateNewWidgetInternal(
173 int route_id, 173 int route_id,
174 WebKit::WebPopupType popup_type); 174 WebKit::WebPopupType popup_type);
175 virtual void ShowCreatedWidgetInternal(RenderWidgetHostView* widget_host_view, 175 virtual void ShowCreatedWidgetInternal(RenderWidgetHostView* widget_host_view,
176 const gfx::Rect& initial_pos); 176 const gfx::Rect& initial_pos);
177 virtual void ShowCreatedFullscreenWidgetInternal( 177 virtual void ShowCreatedFullscreenWidgetInternal(
178 RenderWidgetHostView* widget_host_view); 178 RenderWidgetHostView* widget_host_view);
179 virtual RenderWidgetHostView* CreateNewFullscreenWidgetInternal( 179 virtual RenderWidgetHostView* CreateNewFullscreenWidgetInternal(int route_id);
180 int route_id,
181 WebKit::WebPopupType popup_type);
182 180
183 // Common implementations of some RenderViewHostDelegate::View methods. 181 // Common implementations of some RenderViewHostDelegate::View methods.
184 RenderViewHostDelegateViewHelper delegate_view_helper_; 182 RenderViewHostDelegateViewHelper delegate_view_helper_;
185 183
186 private: 184 private:
187 // We implement these functions on RenderViewHostDelegate::View directly and 185 // We implement these functions on RenderViewHostDelegate::View directly and
188 // do some book-keeping associated with the request. The request is then 186 // do some book-keeping associated with the request. The request is then
189 // forwarded to *Internal which does platform-specific work. 187 // forwarded to *Internal which does platform-specific work.
190 virtual void CreateNewWindow( 188 virtual void CreateNewWindow(
191 int route_id, 189 int route_id,
192 const ViewHostMsg_CreateWindow_Params& params); 190 const ViewHostMsg_CreateWindow_Params& params);
193 virtual void CreateNewWidget(int route_id, WebKit::WebPopupType popup_type); 191 virtual void CreateNewWidget(int route_id, WebKit::WebPopupType popup_type);
194 virtual void CreateNewFullscreenWidget( 192 virtual void CreateNewFullscreenWidget(int route_id);
195 int route_id, WebKit::WebPopupType popup_type);
196 virtual void ShowCreatedWindow(int route_id, 193 virtual void ShowCreatedWindow(int route_id,
197 WindowOpenDisposition disposition, 194 WindowOpenDisposition disposition,
198 const gfx::Rect& initial_pos, 195 const gfx::Rect& initial_pos,
199 bool user_gesture); 196 bool user_gesture);
200 virtual void ShowCreatedWidget(int route_id, const gfx::Rect& initial_pos); 197 virtual void ShowCreatedWidget(int route_id, const gfx::Rect& initial_pos);
201 virtual void Activate(); 198 virtual void Activate();
202 virtual void Deactivate(); 199 virtual void Deactivate();
203 virtual void ShowCreatedFullscreenWidget(int route_id); 200 virtual void ShowCreatedFullscreenWidget(int route_id);
204 201
205 // The TabContents whose contents we display. 202 // The TabContents whose contents we display.
206 TabContents* tab_contents_; 203 TabContents* tab_contents_;
207 204
208 // Tracks created TabContents objects that have not been shown yet. They are 205 // Tracks created TabContents objects that have not been shown yet. They are
209 // identified by the route ID passed to CreateNewWindow. 206 // identified by the route ID passed to CreateNewWindow.
210 typedef std::map<int, TabContents*> PendingContents; 207 typedef std::map<int, TabContents*> PendingContents;
211 PendingContents pending_contents_; 208 PendingContents pending_contents_;
212 209
213 // These maps hold on to the widgets that we created on behalf of the 210 // These maps hold on to the widgets that we created on behalf of the
214 // renderer that haven't shown yet. 211 // renderer that haven't shown yet.
215 typedef std::map<int, RenderWidgetHostView*> PendingWidgetViews; 212 typedef std::map<int, RenderWidgetHostView*> PendingWidgetViews;
216 PendingWidgetViews pending_widget_views_; 213 PendingWidgetViews pending_widget_views_;
217 214
218 DISALLOW_COPY_AND_ASSIGN(TabContentsView); 215 DISALLOW_COPY_AND_ASSIGN(TabContentsView);
219 }; 216 };
220 217
221 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_ 218 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698