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

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

Issue 12296007: [content shell] hook up navigation related WebTestDelegate methods (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « content/public/browser/navigation_controller.h ('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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « content/public/browser/navigation_controller.h ('k') | content/shell/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698