| 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 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 const GURL& base_url); | 64 const GURL& base_url); |
| 65 | 65 |
| 66 #if defined(OS_ANDROID) | 66 #if defined(OS_ANDROID) |
| 67 // Android-only path to allow loading long data strings. | 67 // Android-only path to allow loading long data strings. |
| 68 void LoadDataAsStringWithBaseURL(const GURL& url, | 68 void LoadDataAsStringWithBaseURL(const GURL& url, |
| 69 const std::string& data, | 69 const std::string& data, |
| 70 const GURL& base_url); | 70 const GURL& base_url); |
| 71 #endif | 71 #endif |
| 72 void GoBackOrForward(int offset); | 72 void GoBackOrForward(int offset); |
| 73 void Reload(); | 73 void Reload(); |
| 74 void ReloadBypassingCache(); |
| 74 void Stop(); | 75 void Stop(); |
| 75 void UpdateNavigationControls(bool to_different_document); | 76 void UpdateNavigationControls(bool to_different_document); |
| 76 void Close(); | 77 void Close(); |
| 77 void ShowDevTools(); | 78 void ShowDevTools(); |
| 78 void ShowDevToolsForElementAt(int x, int y); | 79 void ShowDevToolsForElementAt(int x, int y); |
| 79 void CloseDevTools(); | 80 void CloseDevTools(); |
| 80 #if defined(OS_MACOSX) | 81 #if defined(OS_MACOSX) |
| 81 // Resizes the web content view to the given dimensions. | 82 // Resizes the web content view to the given dimensions. |
| 82 void SizeTo(const gfx::Size& content_size); | 83 void SizeTo(const gfx::Size& content_size); |
| 83 #endif | 84 #endif |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 static base::Callback<void(Shell*)> shell_created_callback_; | 270 static base::Callback<void(Shell*)> shell_created_callback_; |
| 270 | 271 |
| 271 // True if the destructur of Shell should post a quit closure on the current | 272 // True if the destructur of Shell should post a quit closure on the current |
| 272 // message loop if the destructed Shell object was the last one. | 273 // message loop if the destructed Shell object was the last one. |
| 273 static bool quit_message_loop_; | 274 static bool quit_message_loop_; |
| 274 }; | 275 }; |
| 275 | 276 |
| 276 } // namespace content | 277 } // namespace content |
| 277 | 278 |
| 278 #endif // CONTENT_SHELL_BROWSER_SHELL_H_ | 279 #endif // CONTENT_SHELL_BROWSER_SHELL_H_ |
| OLD | NEW |