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

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

Issue 15702006: [content shell] add support for running headless on mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years, 6 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/shell/renderer/webkit_test_runner.cc ('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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 class ShellDevToolsFrontend; 44 class ShellDevToolsFrontend;
45 class ShellJavaScriptDialogManager; 45 class ShellJavaScriptDialogManager;
46 class SiteInstance; 46 class SiteInstance;
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 static const int kDefaultTestWindowWidthDip;
55 static const int kDefaultTestWindowHeightDip;
56
54 virtual ~Shell(); 57 virtual ~Shell();
55 58
56 void LoadURL(const GURL& url); 59 void LoadURL(const GURL& url);
57 void LoadURLForFrame(const GURL& url, const std::string& frame_name); 60 void LoadURLForFrame(const GURL& url, const std::string& frame_name);
58 void GoBackOrForward(int offset); 61 void GoBackOrForward(int offset);
59 void Reload(); 62 void Reload();
60 void Stop(); 63 void Stop();
61 void UpdateNavigationControls(); 64 void UpdateNavigationControls();
62 void Close(); 65 void Close();
63 void ShowDevTools(); 66 void ShowDevTools();
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 static base::Callback<void(Shell*)> shell_created_callback_; 272 static base::Callback<void(Shell*)> shell_created_callback_;
270 273
271 // True if the destructur of Shell should post a quit closure on the current 274 // 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. 275 // message loop if the destructed Shell object was the last one.
273 static bool quit_message_loop_; 276 static bool quit_message_loop_;
274 }; 277 };
275 278
276 } // namespace content 279 } // namespace content
277 280
278 #endif // CONTENT_SHELL_SHELL_H_ 281 #endif // CONTENT_SHELL_SHELL_H_
OLDNEW
« no previous file with comments | « content/shell/renderer/webkit_test_runner.cc ('k') | content/shell/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698