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

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

Issue 10837177: Add a menu item to content_shell to open devtools to make it more discoverable. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix android compile, and add gtk support Created 8 years, 4 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
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 4
5 #ifndef CONTENT_SHELL_SHELL_H_ 5 #ifndef CONTENT_SHELL_SHELL_H_
6 #define CONTENT_SHELL_SHELL_H_ 6 #define CONTENT_SHELL_SHELL_H_
7 7
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 public NotificationObserver { 51 public NotificationObserver {
52 public: 52 public:
53 virtual ~Shell(); 53 virtual ~Shell();
54 54
55 void LoadURL(const GURL& url); 55 void LoadURL(const GURL& url);
56 void GoBackOrForward(int offset); 56 void GoBackOrForward(int offset);
57 void Reload(); 57 void Reload();
58 void Stop(); 58 void Stop();
59 void UpdateNavigationControls(); 59 void UpdateNavigationControls();
60 void Close(); 60 void Close();
61 void ShowDevTools();
61 62
62 // Do one time initialization at application startup. 63 // Do one time initialization at application startup.
63 static void PlatformInitialize(); 64 static void PlatformInitialize();
64 65
65 // This is called indirectly by the modules that need access resources. 66 // This is called indirectly by the modules that need access resources.
66 static base::StringPiece PlatformResourceProvider(int key); 67 static base::StringPiece PlatformResourceProvider(int key);
67 68
68 static Shell* CreateNewWindow(BrowserContext* browser_context, 69 static Shell* CreateNewWindow(BrowserContext* browser_context,
69 const GURL& url, 70 const GURL& url,
70 SiteInstance* site_instance, 71 SiteInstance* site_instance,
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 static base::Callback<void(Shell*)> shell_created_callback_; 229 static base::Callback<void(Shell*)> shell_created_callback_;
229 230
230 // True if the destructur of Shell should post a quit closure on the current 231 // True if the destructur of Shell should post a quit closure on the current
231 // message loop if the destructed Shell object was the last one. 232 // message loop if the destructed Shell object was the last one.
232 static bool quit_message_loop_; 233 static bool quit_message_loop_;
233 }; 234 };
234 235
235 } // namespace content 236 } // namespace content
236 237
237 #endif // CONTENT_SHELL_SHELL_H_ 238 #endif // CONTENT_SHELL_SHELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698