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

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

Issue 11828028: [content shell] W3C SVG tests need to run in a smaller window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years, 11 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/android/shell_manager.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 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
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/callback_forward.h" 12 #include "base/callback_forward.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/string_piece.h" 14 #include "base/string_piece.h"
15 #include "content/public/browser/notification_registrar.h" 15 #include "content/public/browser/notification_registrar.h"
16 #include "content/public/browser/notification_observer.h" 16 #include "content/public/browser/notification_observer.h"
17 #include "content/public/browser/web_contents_delegate.h" 17 #include "content/public/browser/web_contents_delegate.h"
18 #include "ipc/ipc_channel.h" 18 #include "ipc/ipc_channel.h"
19 #include "ui/gfx/native_widget_types.h" 19 #include "ui/gfx/native_widget_types.h"
20 #include "ui/gfx/size.h"
20 21
21 #if defined(TOOLKIT_GTK) 22 #if defined(TOOLKIT_GTK)
22 #include <gtk/gtk.h> 23 #include <gtk/gtk.h>
23 #include "ui/base/gtk/gtk_signal.h" 24 #include "ui/base/gtk/gtk_signal.h"
24 25
25 typedef struct _GtkToolItem GtkToolItem; 26 typedef struct _GtkToolItem GtkToolItem;
26 #elif defined(OS_ANDROID) 27 #elif defined(OS_ANDROID)
27 #include "base/android/scoped_java_ref.h" 28 #include "base/android/scoped_java_ref.h"
28 #elif defined(USE_AURA) 29 #elif defined(USE_AURA)
29 namespace views { 30 namespace views {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 void ShowDevTools(); 62 void ShowDevTools();
62 void CloseDevTools(); 63 void CloseDevTools();
63 64
64 // Do one time initialization at application startup. 65 // Do one time initialization at application startup.
65 static void PlatformInitialize(); 66 static void PlatformInitialize();
66 67
67 static Shell* CreateNewWindow(BrowserContext* browser_context, 68 static Shell* CreateNewWindow(BrowserContext* browser_context,
68 const GURL& url, 69 const GURL& url,
69 SiteInstance* site_instance, 70 SiteInstance* site_instance,
70 int routing_id, 71 int routing_id,
71 WebContents* base_web_contents); 72 const gfx::Size& initial_size);
72 73
73 // Returns the Shell object corresponding to the given RenderViewHost. 74 // Returns the Shell object corresponding to the given RenderViewHost.
74 static Shell* FromRenderViewHost(RenderViewHost* rvh); 75 static Shell* FromRenderViewHost(RenderViewHost* rvh);
75 76
76 // Returns the currently open windows. 77 // Returns the currently open windows.
77 static std::vector<Shell*>& windows() { return windows_; } 78 static std::vector<Shell*>& windows() { return windows_; }
78 79
79 // Closes all windows and returns. This runs a message loop. 80 // Closes all windows and returns. This runs a message loop.
80 static void CloseAllWindows(); 81 static void CloseAllWindows();
81 82
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 static base::Callback<void(Shell*)> shell_created_callback_; 252 static base::Callback<void(Shell*)> shell_created_callback_;
252 253
253 // True if the destructur of Shell should post a quit closure on the current 254 // True if the destructur of Shell should post a quit closure on the current
254 // message loop if the destructed Shell object was the last one. 255 // message loop if the destructed Shell object was the last one.
255 static bool quit_message_loop_; 256 static bool quit_message_loop_;
256 }; 257 };
257 258
258 } // namespace content 259 } // namespace content
259 260
260 #endif // CONTENT_SHELL_SHELL_H_ 261 #endif // CONTENT_SHELL_SHELL_H_
OLDNEW
« no previous file with comments | « content/shell/android/shell_manager.cc ('k') | content/shell/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698