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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 void LoadDataWithBaseURL(const GURL& url, | 63 void LoadDataWithBaseURL(const GURL& url, |
64 const std::string& data, | 64 const std::string& data, |
65 const GURL& base_url); | 65 const GURL& base_url); |
66 void GoBackOrForward(int offset); | 66 void GoBackOrForward(int offset); |
67 void Reload(); | 67 void Reload(); |
68 void Stop(); | 68 void Stop(); |
69 void UpdateNavigationControls(bool to_different_document); | 69 void UpdateNavigationControls(bool to_different_document); |
70 void Close(); | 70 void Close(); |
71 void ShowDevTools(); | 71 void ShowDevTools(); |
72 void ShowDevToolsForElementAt(int x, int y); | 72 void ShowDevToolsForElementAt(int x, int y); |
73 void ShowDevToolsForTest(const std::string& settings, | |
74 const std::string& frontend_url); | |
75 void CloseDevTools(); | 73 void CloseDevTools(); |
76 #if defined(OS_MACOSX) | 74 #if defined(OS_MACOSX) |
77 // Resizes the web content view to the given dimensions. | 75 // Resizes the web content view to the given dimensions. |
78 void SizeTo(const gfx::Size& content_size); | 76 void SizeTo(const gfx::Size& content_size); |
79 #endif | 77 #endif |
80 | 78 |
81 // Do one time initialization at application startup. | 79 // Do one time initialization at application startup. |
82 static void Initialize(); | 80 static void Initialize(); |
83 | 81 |
84 static Shell* CreateNewWindow(BrowserContext* browser_context, | 82 static Shell* CreateNewWindow(BrowserContext* browser_context, |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 void PlatformWebContentsFocused(WebContents* contents); | 207 void PlatformWebContentsFocused(WebContents* contents); |
210 #endif | 208 #endif |
211 | 209 |
212 gfx::NativeView GetContentView(); | 210 gfx::NativeView GetContentView(); |
213 | 211 |
214 void ToggleFullscreenModeForTab(WebContents* web_contents, | 212 void ToggleFullscreenModeForTab(WebContents* web_contents, |
215 bool enter_fullscreen); | 213 bool enter_fullscreen); |
216 // WebContentsObserver | 214 // WebContentsObserver |
217 void TitleWasSet(NavigationEntry* entry, bool explicit_set) override; | 215 void TitleWasSet(NavigationEntry* entry, bool explicit_set) override; |
218 | 216 |
219 void InnerShowDevTools(const std::string& settings, | 217 void InnerShowDevTools(); |
220 const std::string& frontend_url); | |
221 void OnDevToolsWebContentsDestroyed(); | 218 void OnDevToolsWebContentsDestroyed(); |
222 | 219 |
223 scoped_ptr<ShellJavaScriptDialogManager> dialog_manager_; | 220 scoped_ptr<ShellJavaScriptDialogManager> dialog_manager_; |
224 | 221 |
225 scoped_ptr<WebContents> web_contents_; | 222 scoped_ptr<WebContents> web_contents_; |
226 | 223 |
227 scoped_ptr<DevToolsWebContentsObserver> devtools_observer_; | 224 scoped_ptr<DevToolsWebContentsObserver> devtools_observer_; |
228 ShellDevToolsFrontend* devtools_frontend_; | 225 ShellDevToolsFrontend* devtools_frontend_; |
229 | 226 |
230 bool is_fullscreen_; | 227 bool is_fullscreen_; |
(...skipping 27 matching lines...) Expand all Loading... |
258 static base::Callback<void(Shell*)> shell_created_callback_; | 255 static base::Callback<void(Shell*)> shell_created_callback_; |
259 | 256 |
260 // 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 |
261 // message loop if the destructed Shell object was the last one. | 258 // message loop if the destructed Shell object was the last one. |
262 static bool quit_message_loop_; | 259 static bool quit_message_loop_; |
263 }; | 260 }; |
264 | 261 |
265 } // namespace content | 262 } // namespace content |
266 | 263 |
267 #endif // CONTENT_SHELL_BROWSER_SHELL_H_ | 264 #endif // CONTENT_SHELL_BROWSER_SHELL_H_ |
OLD | NEW |