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

Side by Side Diff: content/browser/renderer_host/render_view_host_factory.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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_FACTORY_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_FACTORY_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_FACTORY_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_FACTORY_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 10
(...skipping 11 matching lines...) Expand all
22 public: 22 public:
23 // Creates a RenderViewHost using the currently registered factory, or the 23 // Creates a RenderViewHost using the currently registered factory, or the
24 // default one if no factory is registered. Ownership of the returned 24 // default one if no factory is registered. Ownership of the returned
25 // pointer will be passed to the caller. 25 // pointer will be passed to the caller.
26 static RenderViewHost* Create( 26 static RenderViewHost* Create(
27 SiteInstance* instance, 27 SiteInstance* instance,
28 RenderViewHostDelegate* delegate, 28 RenderViewHostDelegate* delegate,
29 RenderWidgetHostDelegate* widget_delegate, 29 RenderWidgetHostDelegate* widget_delegate,
30 int routing_id, 30 int routing_id,
31 int main_frame_routing_id, 31 int main_frame_routing_id,
32 bool swapped_out); 32 bool swapped_out,
33 bool hidden);
33 34
34 // Returns true if there is currently a globally-registered factory. 35 // Returns true if there is currently a globally-registered factory.
35 static bool has_factory() { 36 static bool has_factory() {
36 return !!factory_; 37 return !!factory_;
37 } 38 }
38 39
39 protected: 40 protected:
40 RenderViewHostFactory() {} 41 RenderViewHostFactory() {}
41 virtual ~RenderViewHostFactory() {} 42 virtual ~RenderViewHostFactory() {}
42 43
(...skipping 20 matching lines...) Expand all
63 // The current globally registered factory. This is NULL when we should 64 // The current globally registered factory. This is NULL when we should
64 // create the default RenderViewHosts. 65 // create the default RenderViewHosts.
65 CONTENT_EXPORT static RenderViewHostFactory* factory_; 66 CONTENT_EXPORT static RenderViewHostFactory* factory_;
66 67
67 DISALLOW_COPY_AND_ASSIGN(RenderViewHostFactory); 68 DISALLOW_COPY_AND_ASSIGN(RenderViewHostFactory);
68 }; 69 };
69 70
70 } // namespace content 71 } // namespace content
71 72
72 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_FACTORY_H_ 73 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_FACTORY_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/tabs/tab_strip_model.cc ('k') | content/browser/renderer_host/render_view_host_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698