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

Side by Side Diff: content/renderer/render_widget.h

Issue 23129015: Initialize RenderWidget(Host)(View)s with correct visibility state (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | 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_RENDERER_RENDER_WIDGET_H_ 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 10
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 // For unit tests. 220 // For unit tests.
221 friend class RenderWidgetTest; 221 friend class RenderWidgetTest;
222 222
223 enum ResizeAck { 223 enum ResizeAck {
224 SEND_RESIZE_ACK, 224 SEND_RESIZE_ACK,
225 NO_RESIZE_ACK, 225 NO_RESIZE_ACK,
226 }; 226 };
227 227
228 RenderWidget(WebKit::WebPopupType popup_type, 228 RenderWidget(WebKit::WebPopupType popup_type,
229 const WebKit::WebScreenInfo& screen_info, 229 const WebKit::WebScreenInfo& screen_info,
230 bool swapped_out); 230 bool swapped_out,
231 bool hidden);
sky 2013/08/19 20:21:47 From a readability perspective I prefer this to be
231 232
232 virtual ~RenderWidget(); 233 virtual ~RenderWidget();
233 234
234 // Initializes this view with the given opener. CompleteInit must be called 235 // Initializes this view with the given opener. CompleteInit must be called
235 // later. 236 // later.
236 bool Init(int32 opener_id); 237 bool Init(int32 opener_id);
237 238
238 // Called by Init and subclasses to perform initialization. 239 // Called by Init and subclasses to perform initialization.
239 bool DoInit(int32 opener_id, 240 bool DoInit(int32 opener_id,
240 WebKit::WebWidget* web_widget, 241 WebKit::WebWidget* web_widget,
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 #endif 737 #endif
737 738
738 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; 739 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_;
739 740
740 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 741 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
741 }; 742 };
742 743
743 } // namespace content 744 } // namespace content
744 745
745 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 746 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698