| OLD | NEW |
| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 class WebContents; | 47 class WebContents; |
| 48 | 48 |
| 49 // This represents one window of the Content Shell, i.e. all the UI including | 49 // This represents one window of the Content Shell, i.e. all the UI including |
| 50 // buttons and url bar, as well as the web content area. | 50 // buttons and url bar, as well as the web content area. |
| 51 class Shell : public WebContentsDelegate, | 51 class Shell : public WebContentsDelegate, |
| 52 public NotificationObserver { | 52 public NotificationObserver { |
| 53 public: | 53 public: |
| 54 virtual ~Shell(); | 54 virtual ~Shell(); |
| 55 | 55 |
| 56 void LoadURL(const GURL& url); | 56 void LoadURL(const GURL& url); |
| 57 void LoadURLForFrame(const GURL& url, const std::string& frame_name); |
| 57 void GoBackOrForward(int offset); | 58 void GoBackOrForward(int offset); |
| 58 void Reload(); | 59 void Reload(); |
| 59 void Stop(); | 60 void Stop(); |
| 60 void UpdateNavigationControls(); | 61 void UpdateNavigationControls(); |
| 61 void Close(); | 62 void Close(); |
| 62 void ShowDevTools(); | 63 void ShowDevTools(); |
| 63 void CloseDevTools(); | 64 void CloseDevTools(); |
| 64 | 65 |
| 65 // Do one time initialization at application startup. | 66 // Do one time initialization at application startup. |
| 66 static void Initialize(); | 67 static void Initialize(); |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 static base::Callback<void(Shell*)> shell_created_callback_; | 258 static base::Callback<void(Shell*)> shell_created_callback_; |
| 258 | 259 |
| 259 // True if the destructur of Shell should post a quit closure on the current | 260 // True if the destructur of Shell should post a quit closure on the current |
| 260 // message loop if the destructed Shell object was the last one. | 261 // message loop if the destructed Shell object was the last one. |
| 261 static bool quit_message_loop_; | 262 static bool quit_message_loop_; |
| 262 }; | 263 }; |
| 263 | 264 |
| 264 } // namespace content | 265 } // namespace content |
| 265 | 266 |
| 266 #endif // CONTENT_SHELL_SHELL_H_ | 267 #endif // CONTENT_SHELL_SHELL_H_ |
| OLD | NEW |