Chromium Code Reviews| OLD | NEW |
|---|---|
| 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/events/event_target.h" | 21 #include "ui/base/events/event_target.h" |
| 22 #include "ui/base/ui_base_types.h" | 22 #include "ui/base/ui_base_types.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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 221 // list should be shown. If this is NULL, the active root window | 224 // list should be shown. If this is NULL, the active root window |
| 222 // will be used. | 225 // will be used. |
| 223 void ToggleAppList(aura::Window* anchor); | 226 void ToggleAppList(aura::Window* anchor); |
| 224 | 227 |
| 225 // Returns app list target visibility. | 228 // Returns app list target visibility. |
| 226 bool GetAppListTargetVisibility() const; | 229 bool GetAppListTargetVisibility() const; |
| 227 | 230 |
| 228 // Returns app list window or NULL if it is not visible. | 231 // Returns app list window or NULL if it is not visible. |
| 229 aura::Window* GetAppListWindow(); | 232 aura::Window* GetAppListWindow(); |
| 230 | 233 |
| 234 // Returns the app list view. Used for integration testing. | |
| 235 app_list::AppListView* GetAppListViewForTesting(); | |
|
xiyuan
2013/08/28 03:36:45
nit: Can we instead exposing AppListController? In
tapted
2013/08/28 07:23:14
I actually tried this in an earlier attempt ;) The
xiyuan
2013/08/28 16:33:45
Exporting AppListController should be good enough
| |
| 236 | |
| 231 // Returns true if a system-modal dialog window is currently open. | 237 // Returns true if a system-modal dialog window is currently open. |
| 232 bool IsSystemModalWindowOpen() const; | 238 bool IsSystemModalWindowOpen() const; |
| 233 | 239 |
| 234 // For testing only: set simulation that a modal window is open | 240 // For testing only: set simulation that a modal window is open |
| 235 void SimulateModalWindowOpenForTesting(bool modal_window_open) { | 241 void SimulateModalWindowOpenForTesting(bool modal_window_open) { |
| 236 simulate_modal_window_open_for_testing_ = modal_window_open; | 242 simulate_modal_window_open_for_testing_ = modal_window_open; |
| 237 } | 243 } |
| 238 | 244 |
| 239 // Creates a default views::NonClientFrameView for use by windows in the | 245 // Creates a default views::NonClientFrameView for use by windows in the |
| 240 // Ash environment. | 246 // Ash environment. |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 629 bool simulate_modal_window_open_for_testing_; | 635 bool simulate_modal_window_open_for_testing_; |
| 630 | 636 |
| 631 bool is_touch_hud_projection_enabled_; | 637 bool is_touch_hud_projection_enabled_; |
| 632 | 638 |
| 633 DISALLOW_COPY_AND_ASSIGN(Shell); | 639 DISALLOW_COPY_AND_ASSIGN(Shell); |
| 634 }; | 640 }; |
| 635 | 641 |
| 636 } // namespace ash | 642 } // namespace ash |
| 637 | 643 |
| 638 #endif // ASH_SHELL_H_ | 644 #endif // ASH_SHELL_H_ |
| OLD | NEW |