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

Side by Side Diff: trunk/src/content/shell/browser/shell.h

Issue 30413002: Revert 229507 "aura: Allow creating content_shell without views." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 2 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 | « trunk/src/content/shell/DEPS ('k') | trunk/src/content/shell/browser/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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BROWSER_SHELL_H_ 4 #ifndef CONTENT_SHELL_BROWSER_SHELL_H_
5 #define CONTENT_SHELL_BROWSER_SHELL_H_ 5 #define CONTENT_SHELL_BROWSER_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 21 matching lines...) Expand all
32 #endif // defined(OS_CHROMEOS) 32 #endif // defined(OS_CHROMEOS)
33 namespace views { 33 namespace views {
34 class Widget; 34 class Widget;
35 class ViewsDelegate; 35 class ViewsDelegate;
36 } // namespace views 36 } // namespace views
37 #endif // defined(USE_AURA) 37 #endif // defined(USE_AURA)
38 38
39 class GURL; 39 class GURL;
40 namespace content { 40 namespace content {
41 41
42 #if defined(USE_AURA)
43 class ShellAuraPlatformData;
44 #endif
45
46 class BrowserContext; 42 class BrowserContext;
47 class ShellDevToolsFrontend; 43 class ShellDevToolsFrontend;
48 class ShellJavaScriptDialogManager; 44 class ShellJavaScriptDialogManager;
49 class SiteInstance; 45 class SiteInstance;
50 class WebContents; 46 class WebContents;
51 47
52 // This represents one window of the Content Shell, i.e. all the UI including 48 // This represents one window of the Content Shell, i.e. all the UI including
53 // buttons and url bar, as well as the web content area. 49 // buttons and url bar, as well as the web content area.
54 class Shell : public WebContentsDelegate, 50 class Shell : public WebContentsDelegate,
55 public WebContentsObserver { 51 public WebContentsObserver {
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 252
257 int content_width_; 253 int content_width_;
258 int content_height_; 254 int content_height_;
259 int ui_elements_height_; // height of menubar, toolbar, etc. 255 int ui_elements_height_; // height of menubar, toolbar, etc.
260 #elif defined(OS_ANDROID) 256 #elif defined(OS_ANDROID)
261 base::android::ScopedJavaGlobalRef<jobject> java_object_; 257 base::android::ScopedJavaGlobalRef<jobject> java_object_;
262 #elif defined(USE_AURA) 258 #elif defined(USE_AURA)
263 #if defined(OS_CHROMEOS) 259 #if defined(OS_CHROMEOS)
264 static shell::MinimalShell* minimal_shell_; 260 static shell::MinimalShell* minimal_shell_;
265 #endif 261 #endif
266 #if defined(TOOLKIT_VIEWS)
267 static views::ViewsDelegate* views_delegate_; 262 static views::ViewsDelegate* views_delegate_;
268 263
269 views::Widget* window_widget_; 264 views::Widget* window_widget_;
270 #else // defined(TOOLKIT_VIEWS)
271 scoped_ptr<ShellAuraPlatformData> platform_;
272 #endif // defined(TOOLKIT_VIEWS)
273 #elif defined(OS_MACOSX) 265 #elif defined(OS_MACOSX)
274 int content_width_; 266 int content_width_;
275 int content_height_; 267 int content_height_;
276 #endif 268 #endif
277 269
278 bool headless_; 270 bool headless_;
279 271
280 // A container of all the open windows. We use a vector so we can keep track 272 // A container of all the open windows. We use a vector so we can keep track
281 // of ordering. 273 // of ordering.
282 static std::vector<Shell*> windows_; 274 static std::vector<Shell*> windows_;
283 275
284 static base::Callback<void(Shell*)> shell_created_callback_; 276 static base::Callback<void(Shell*)> shell_created_callback_;
285 277
286 // True if the destructur of Shell should post a quit closure on the current 278 // True if the destructur of Shell should post a quit closure on the current
287 // message loop if the destructed Shell object was the last one. 279 // message loop if the destructed Shell object was the last one.
288 static bool quit_message_loop_; 280 static bool quit_message_loop_;
289 }; 281 };
290 282
291 } // namespace content 283 } // namespace content
292 284
293 #endif // CONTENT_SHELL_BROWSER_SHELL_H_ 285 #endif // CONTENT_SHELL_BROWSER_SHELL_H_
OLDNEW
« no previous file with comments | « trunk/src/content/shell/DEPS ('k') | trunk/src/content/shell/browser/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698