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

Side by Side Diff: content/shell/shell.h

Issue 11614037: Call ShowRootWindow on NativeWindow's RootWindow to display the window. (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Add explicit keyword Created 7 years, 11 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
« no previous file with comments | « content/shell/minimal_ash.cc ('k') | content/shell/shell.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CONTENT_SHELL_SHELL_H_ 4 #ifndef CONTENT_SHELL_SHELL_H_
5 #define CONTENT_SHELL_SHELL_H_ 5 #define CONTENT_SHELL_SHELL_H_
6 6
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 void LoadURL(const GURL& url); 55 void LoadURL(const GURL& url);
56 void GoBackOrForward(int offset); 56 void GoBackOrForward(int offset);
57 void Reload(); 57 void Reload();
58 void Stop(); 58 void Stop();
59 void UpdateNavigationControls(); 59 void UpdateNavigationControls();
60 void Close(); 60 void Close();
61 void ShowDevTools(); 61 void ShowDevTools();
62 void CloseDevTools(); 62 void CloseDevTools();
63 63
64 // Do one time initialization at application startup. 64 // Do one time initialization at application startup.
65 static void PlatformInitialize(); 65 static void Initialize();
66 66
67 static Shell* CreateNewWindow(BrowserContext* browser_context, 67 static Shell* CreateNewWindow(BrowserContext* browser_context,
68 const GURL& url, 68 const GURL& url,
69 SiteInstance* site_instance, 69 SiteInstance* site_instance,
70 int routing_id, 70 int routing_id,
71 const gfx::Size& initial_size); 71 const gfx::Size& initial_size);
72 72
73 // Returns the Shell object corresponding to the given RenderViewHost. 73 // Returns the Shell object corresponding to the given RenderViewHost.
74 static Shell* FromRenderViewHost(RenderViewHost* rvh); 74 static Shell* FromRenderViewHost(RenderViewHost* rvh);
75 75
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 BACK_BUTTON, 139 BACK_BUTTON,
140 FORWARD_BUTTON, 140 FORWARD_BUTTON,
141 STOP_BUTTON 141 STOP_BUTTON
142 }; 142 };
143 143
144 explicit Shell(WebContents* web_contents); 144 explicit Shell(WebContents* web_contents);
145 145
146 // Helper to create a new Shell given a newly created WebContents. 146 // Helper to create a new Shell given a newly created WebContents.
147 static Shell* CreateShell(WebContents* web_contents); 147 static Shell* CreateShell(WebContents* web_contents);
148 148
149 // Helper for one time initialization of application
150 static void PlatformInitialize(gfx::Size default_window_size);
oshima 2013/01/24 01:56:11 const gfx::Size&
Nayan 2013/01/24 03:27:50 Done.
151
149 // All the methods that begin with Platform need to be implemented by the 152 // All the methods that begin with Platform need to be implemented by the
150 // platform specific Shell implementation. 153 // platform specific Shell implementation.
151 // Called from the destructor to let each platform do any necessary cleanup. 154 // Called from the destructor to let each platform do any necessary cleanup.
152 void PlatformCleanUp(); 155 void PlatformCleanUp();
153 // Creates the main window GUI. 156 // Creates the main window GUI.
154 void PlatformCreateWindow(int width, int height); 157 void PlatformCreateWindow(int width, int height);
155 // Links the WebContents into the newly created window. 158 // Links the WebContents into the newly created window.
156 void PlatformSetContents(); 159 void PlatformSetContents();
157 // Resize the content area and GUI. 160 // Resize the content area and GUI.
158 void PlatformResizeSubViews(); 161 void PlatformResizeSubViews();
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 static base::Callback<void(Shell*)> shell_created_callback_; 256 static base::Callback<void(Shell*)> shell_created_callback_;
254 257
255 // True if the destructur of Shell should post a quit closure on the current 258 // True if the destructur of Shell should post a quit closure on the current
256 // message loop if the destructed Shell object was the last one. 259 // message loop if the destructed Shell object was the last one.
257 static bool quit_message_loop_; 260 static bool quit_message_loop_;
258 }; 261 };
259 262
260 } // namespace content 263 } // namespace content
261 264
262 #endif // CONTENT_SHELL_SHELL_H_ 265 #endif // CONTENT_SHELL_SHELL_H_
OLDNEW
« no previous file with comments | « content/shell/minimal_ash.cc ('k') | content/shell/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698