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

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

Issue 209383003: Move wm/public into wm target (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 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/DEPS ('k') | content/shell/browser/shell_platform_data_aura.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"
11 #include "base/callback_forward.h" 11 #include "base/callback_forward.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/strings/string_piece.h" 13 #include "base/strings/string_piece.h"
14 #include "build/build_config.h" 14 #include "build/build_config.h"
15 #include "content/public/browser/web_contents_delegate.h" 15 #include "content/public/browser/web_contents_delegate.h"
16 #include "content/public/browser/web_contents_observer.h" 16 #include "content/public/browser/web_contents_observer.h"
17 #include "ipc/ipc_channel.h" 17 #include "ipc/ipc_channel.h"
18 #include "ui/gfx/native_widget_types.h" 18 #include "ui/gfx/native_widget_types.h"
19 #include "ui/gfx/size.h" 19 #include "ui/gfx/size.h"
20 20
21 #if defined(TOOLKIT_GTK) 21 #if defined(TOOLKIT_GTK)
22 #include <gtk/gtk.h> 22 #include <gtk/gtk.h>
23 #include "ui/base/gtk/gtk_signal.h" 23 #include "ui/base/gtk/gtk_signal.h"
24 24
25 typedef struct _GtkToolItem GtkToolItem; 25 typedef struct _GtkToolItem GtkToolItem;
26 #elif defined(OS_ANDROID) 26 #elif defined(OS_ANDROID)
27 #include "base/android/scoped_java_ref.h" 27 #include "base/android/scoped_java_ref.h"
28 #elif defined(USE_AURA) 28 #elif defined(USE_AURA)
29 #if defined(OS_CHROMEOS) 29 #if defined(OS_CHROMEOS)
30 namespace wm { 30 namespace aura {
31 class WMTestHelper; 31 class WindowTreeHost;
32 } 32 }
33 #endif // defined(OS_CHROMEOS) 33 #endif // defined(OS_CHROMEOS)
34 namespace views { 34 namespace views {
35 class Widget; 35 class Widget;
36 class ViewsDelegate; 36 class ViewsDelegate;
37 } 37 }
38 #endif // defined(USE_AURA) 38 #endif // defined(USE_AURA)
39 39
40 class GURL; 40 class GURL;
41 namespace content { 41 namespace content {
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 GtkToolItem* stop_button_; 257 GtkToolItem* stop_button_;
258 258
259 GtkWidget* spinner_; 259 GtkWidget* spinner_;
260 GtkToolItem* spinner_item_; 260 GtkToolItem* spinner_item_;
261 261
262 int ui_elements_height_; // height of menubar, toolbar, etc. 262 int ui_elements_height_; // height of menubar, toolbar, etc.
263 #elif defined(OS_ANDROID) 263 #elif defined(OS_ANDROID)
264 base::android::ScopedJavaGlobalRef<jobject> java_object_; 264 base::android::ScopedJavaGlobalRef<jobject> java_object_;
265 #elif defined(USE_AURA) 265 #elif defined(USE_AURA)
266 #if defined(OS_CHROMEOS) 266 #if defined(OS_CHROMEOS)
267 static wm::WMTestHelper* wm_test_helper_; 267 static aura::WindowTreeHost* shell_host_;
268 #endif 268 #endif
269 #if defined(TOOLKIT_VIEWS) 269 #if defined(TOOLKIT_VIEWS)
270 static views::ViewsDelegate* views_delegate_; 270 static views::ViewsDelegate* views_delegate_;
271 271
272 views::Widget* window_widget_; 272 views::Widget* window_widget_;
273 #endif // defined(TOOLKIT_VIEWS) 273 #endif // defined(TOOLKIT_VIEWS)
274 static ShellPlatformDataAura* platform_; 274 static ShellPlatformDataAura* platform_;
275 #endif // defined(USE_AURA) 275 #endif // defined(USE_AURA)
276 276
277 bool headless_; 277 bool headless_;
278 278
279 // A container of all the open windows. We use a vector so we can keep track 279 // A container of all the open windows. We use a vector so we can keep track
280 // of ordering. 280 // of ordering.
281 static std::vector<Shell*> windows_; 281 static std::vector<Shell*> windows_;
282 282
283 static base::Callback<void(Shell*)> shell_created_callback_; 283 static base::Callback<void(Shell*)> shell_created_callback_;
284 284
285 // True if the destructur of Shell should post a quit closure on the current 285 // True if the destructur of Shell should post a quit closure on the current
286 // message loop if the destructed Shell object was the last one. 286 // message loop if the destructed Shell object was the last one.
287 static bool quit_message_loop_; 287 static bool quit_message_loop_;
288 }; 288 };
289 289
290 } // namespace content 290 } // namespace content
291 291
292 #endif // CONTENT_SHELL_BROWSER_SHELL_H_ 292 #endif // CONTENT_SHELL_BROWSER_SHELL_H_
OLDNEW
« no previous file with comments | « content/shell/DEPS ('k') | content/shell/browser/shell_platform_data_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698