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

Side by Side Diff: ash/shell.h

Issue 26277006: Created ash::FirstRunHelper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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
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 ASH_SHELL_H_ 5 #ifndef ASH_SHELL_H_
6 #define ASH_SHELL_H_ 6 #define ASH_SHELL_H_
7 7
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
11 #include "ash/ash_export.h" 11 #include "ash/ash_export.h"
12 #include "ash/shelf/shelf_types.h" 12 #include "ash/shelf/shelf_types.h"
13 #include "ash/system/user/login_status.h" 13 #include "ash/system/user/login_status.h"
14 #include "ash/wm/system_modal_container_event_filter_delegate.h" 14 #include "ash/wm/system_modal_container_event_filter_delegate.h"
15 #include "base/basictypes.h" 15 #include "base/basictypes.h"
16 #include "base/compiler_specific.h" 16 #include "base/compiler_specific.h"
17 #include "base/gtest_prod_util.h" 17 #include "base/gtest_prod_util.h"
18 #include "base/memory/scoped_ptr.h" 18 #include "base/memory/scoped_ptr.h"
19 #include "base/observer_list.h" 19 #include "base/observer_list.h"
20 #include "ui/aura/client/activation_change_observer.h" 20 #include "ui/aura/client/activation_change_observer.h"
21 #include "ui/base/ui_base_types.h" 21 #include "ui/base/ui_base_types.h"
22 #include "ui/events/event_target.h" 22 #include "ui/events/event_target.h"
23 #include "ui/gfx/insets.h" 23 #include "ui/gfx/insets.h"
24 #include "ui/gfx/screen.h" 24 #include "ui/gfx/screen.h"
25 #include "ui/gfx/size.h" 25 #include "ui/gfx/size.h"
26 #include "ui/views/corewm/cursor_manager.h" 26 #include "ui/views/corewm/cursor_manager.h"
27 27
28 class CommandLine; 28 class CommandLine;
29 29
30 namespace app_list {
31 class AppListView;
32 }
30 namespace aura { 33 namespace aura {
31 class EventFilter; 34 class EventFilter;
32 class RootWindow; 35 class RootWindow;
33 class Window; 36 class Window;
34 namespace client { 37 namespace client {
35 class ActivationClient; 38 class ActivationClient;
36 class FocusClient; 39 class FocusClient;
37 class UserActionClient; 40 class UserActionClient;
38 } 41 }
39 } 42 }
(...skipping 30 matching lines...) Expand all
70 } 73 }
71 } 74 }
72 75
73 namespace ash { 76 namespace ash {
74 77
75 class AcceleratorController; 78 class AcceleratorController;
76 class AshNativeCursorManager; 79 class AshNativeCursorManager;
77 class CapsLockDelegate; 80 class CapsLockDelegate;
78 class DesktopBackgroundController; 81 class DesktopBackgroundController;
79 class DisplayController; 82 class DisplayController;
83 class FirstRunDelegate;
80 class HighContrastController; 84 class HighContrastController;
81 class Launcher; 85 class Launcher;
82 class LauncherDelegate; 86 class LauncherDelegate;
83 class LauncherItemDelegateManager; 87 class LauncherItemDelegateManager;
84 class LauncherModel; 88 class LauncherModel;
85 class MagnificationController; 89 class MagnificationController;
86 class MruWindowTracker; 90 class MruWindowTracker;
87 class NestedDispatcherController; 91 class NestedDispatcherController;
88 class PartialMagnificationController; 92 class PartialMagnificationController;
89 class PowerButtonController; 93 class PowerButtonController;
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 // list should be shown. If this is NULL, the active root window 230 // list should be shown. If this is NULL, the active root window
227 // will be used. 231 // will be used.
228 void ToggleAppList(aura::Window* anchor); 232 void ToggleAppList(aura::Window* anchor);
229 233
230 // Returns app list target visibility. 234 // Returns app list target visibility.
231 bool GetAppListTargetVisibility() const; 235 bool GetAppListTargetVisibility() const;
232 236
233 // Returns app list window or NULL if it is not visible. 237 // Returns app list window or NULL if it is not visible.
234 aura::Window* GetAppListWindow(); 238 aura::Window* GetAppListWindow();
235 239
240 // Returns app list view or NULL if it is not visible.
241 app_list::AppListView* GetAppListView();
242
236 // Returns true if a system-modal dialog window is currently open. 243 // Returns true if a system-modal dialog window is currently open.
237 bool IsSystemModalWindowOpen() const; 244 bool IsSystemModalWindowOpen() const;
238 245
239 // For testing only: set simulation that a modal window is open 246 // For testing only: set simulation that a modal window is open
240 void SimulateModalWindowOpenForTesting(bool modal_window_open) { 247 void SimulateModalWindowOpenForTesting(bool modal_window_open) {
241 simulate_modal_window_open_for_testing_ = modal_window_open; 248 simulate_modal_window_open_for_testing_ = modal_window_open;
242 } 249 }
243 250
244 // Creates a default views::NonClientFrameView for use by windows in the 251 // Creates a default views::NonClientFrameView for use by windows in the
245 // Ash environment. 252 // Ash environment.
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 493
487 // Returns the launcher delegate, creating if necesary. 494 // Returns the launcher delegate, creating if necesary.
488 LauncherDelegate* GetLauncherDelegate(); 495 LauncherDelegate* GetLauncherDelegate();
489 496
490 void SetTouchHudProjectionEnabled(bool enabled); 497 void SetTouchHudProjectionEnabled(bool enabled);
491 498
492 bool is_touch_hud_projection_enabled() const { 499 bool is_touch_hud_projection_enabled() const {
493 return is_touch_hud_projection_enabled_; 500 return is_touch_hud_projection_enabled_;
494 } 501 }
495 502
503 #if defined(OS_CHROMEOS)
504 // Creates instance of FirstRunDelegate. Caller is responsible for deleting
505 // returned object.
506 ash::FirstRunDelegate* CreateFirstRunDelegate();
507 #endif // defined(OS_CHROMEOS)
508
496 private: 509 private:
497 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, TestCursor); 510 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, TestCursor);
498 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors); 511 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors);
499 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, TransformActivate); 512 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, TransformActivate);
500 friend class internal::RootWindowController; 513 friend class internal::RootWindowController;
501 friend class internal::ScopedTargetRootWindow; 514 friend class internal::ScopedTargetRootWindow;
502 friend class test::ShellTestApi; 515 friend class test::ShellTestApi;
503 friend class shell::WindowWatcher; 516 friend class shell::WindowWatcher;
504 517
505 typedef std::pair<aura::Window*, gfx::Rect> WindowAndBoundsPair; 518 typedef std::pair<aura::Window*, gfx::Rect> WindowAndBoundsPair;
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 bool simulate_modal_window_open_for_testing_; 671 bool simulate_modal_window_open_for_testing_;
659 672
660 bool is_touch_hud_projection_enabled_; 673 bool is_touch_hud_projection_enabled_;
661 674
662 DISALLOW_COPY_AND_ASSIGN(Shell); 675 DISALLOW_COPY_AND_ASSIGN(Shell);
663 }; 676 };
664 677
665 } // namespace ash 678 } // namespace ash
666 679
667 #endif // ASH_SHELL_H_ 680 #endif // ASH_SHELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698