| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BROWSER_SHELL_H_ | 4 #ifndef CONTENT_SHELL_BROWSER_SHELL_H_ |
| 5 #define CONTENT_SHELL_BROWSER_SHELL_H_ | 5 #define CONTENT_SHELL_BROWSER_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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 // Resizes the web content view to the given dimensions. | 77 // Resizes the web content view to the given dimensions. |
| 78 void SizeTo(const gfx::Size& content_size); | 78 void SizeTo(const gfx::Size& content_size); |
| 79 #endif | 79 #endif |
| 80 | 80 |
| 81 // Do one time initialization at application startup. | 81 // Do one time initialization at application startup. |
| 82 static void Initialize(); | 82 static void Initialize(); |
| 83 | 83 |
| 84 static Shell* CreateNewWindow(BrowserContext* browser_context, | 84 static Shell* CreateNewWindow(BrowserContext* browser_context, |
| 85 const GURL& url, | 85 const GURL& url, |
| 86 SiteInstance* site_instance, | 86 SiteInstance* site_instance, |
| 87 int routing_id, | |
| 88 const gfx::Size& initial_size); | 87 const gfx::Size& initial_size); |
| 89 | 88 |
| 90 // Returns the Shell object corresponding to the given RenderViewHost. | 89 // Returns the Shell object corresponding to the given RenderViewHost. |
| 91 static Shell* FromRenderViewHost(RenderViewHost* rvh); | 90 static Shell* FromRenderViewHost(RenderViewHost* rvh); |
| 92 | 91 |
| 93 // Returns the currently open windows. | 92 // Returns the currently open windows. |
| 94 static std::vector<Shell*>& windows() { return windows_; } | 93 static std::vector<Shell*>& windows() { return windows_; } |
| 95 | 94 |
| 96 // Closes all windows and returns. This runs a message loop. | 95 // Closes all windows and returns. This runs a message loop. |
| 97 static void CloseAllWindows(); | 96 static void CloseAllWindows(); |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 static base::Callback<void(Shell*)> shell_created_callback_; | 255 static base::Callback<void(Shell*)> shell_created_callback_; |
| 257 | 256 |
| 258 // True if the destructur of Shell should post a quit closure on the current | 257 // True if the destructur of Shell should post a quit closure on the current |
| 259 // message loop if the destructed Shell object was the last one. | 258 // message loop if the destructed Shell object was the last one. |
| 260 static bool quit_message_loop_; | 259 static bool quit_message_loop_; |
| 261 }; | 260 }; |
| 262 | 261 |
| 263 } // namespace content | 262 } // namespace content |
| 264 | 263 |
| 265 #endif // CONTENT_SHELL_BROWSER_SHELL_H_ | 264 #endif // CONTENT_SHELL_BROWSER_SHELL_H_ |
| OLD | NEW |