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/gfx/insets.h" | 23 #include "ui/gfx/insets.h" |
23 #include "ui/gfx/screen.h" | 24 #include "ui/gfx/screen.h" |
24 #include "ui/gfx/size.h" | 25 #include "ui/gfx/size.h" |
25 #include "ui/views/corewm/cursor_manager.h" | 26 #include "ui/views/corewm/cursor_manager.h" |
26 | 27 |
27 class CommandLine; | 28 class CommandLine; |
28 | 29 |
29 namespace app_list { | 30 namespace app_list { |
30 class ApplicationDragAndDropHost; | 31 class ApplicationDragAndDropHost; |
31 } | 32 } |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 // True if an experimental maximize mode is enabled which forces browser and | 205 // True if an experimental maximize mode is enabled which forces browser and |
205 // application windows to be maximized only. | 206 // application windows to be maximized only. |
206 static bool IsForcedMaximizeMode(); | 207 static bool IsForcedMaximizeMode(); |
207 | 208 |
208 void set_active_root_window(aura::RootWindow* active_root_window) { | 209 void set_active_root_window(aura::RootWindow* active_root_window) { |
209 active_root_window_ = active_root_window; | 210 active_root_window_ = active_root_window; |
210 } | 211 } |
211 | 212 |
212 // Shows the context menu for the background and launcher at | 213 // Shows the context menu for the background and launcher at |
213 // |location_in_screen| (in screen coordinates). | 214 // |location_in_screen| (in screen coordinates). |
214 void ShowContextMenu(const gfx::Point& location_in_screen); | 215 void ShowContextMenu(const gfx::Point& location_in_screen, |
| 216 ui::MenuSourceType source_type); |
215 | 217 |
216 // Toggles the app list. |window| specifies in which display the app | 218 // Toggles the app list. |window| specifies in which display the app |
217 // list should be shown. If this is NULL, the active root window | 219 // list should be shown. If this is NULL, the active root window |
218 // will be used. | 220 // will be used. |
219 void ToggleAppList(aura::Window* anchor); | 221 void ToggleAppList(aura::Window* anchor); |
220 | 222 |
221 // If |drag_and_drop_host| is not NULL it will be called upon drag and drop | 223 // If |drag_and_drop_host| is not NULL it will be called upon drag and drop |
222 // operations outside the application list. | 224 // operations outside the application list. |
223 void SetDragAndDropHostOfCurrentAppList( | 225 void SetDragAndDropHostOfCurrentAppList( |
224 app_list::ApplicationDragAndDropHost* drag_and_drop_host); | 226 app_list::ApplicationDragAndDropHost* drag_and_drop_host); |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
601 | 603 |
602 // For testing only: simulate that a modal window is open | 604 // For testing only: simulate that a modal window is open |
603 bool simulate_modal_window_open_for_testing_; | 605 bool simulate_modal_window_open_for_testing_; |
604 | 606 |
605 DISALLOW_COPY_AND_ASSIGN(Shell); | 607 DISALLOW_COPY_AND_ASSIGN(Shell); |
606 }; | 608 }; |
607 | 609 |
608 } // namespace ash | 610 } // namespace ash |
609 | 611 |
610 #endif // ASH_SHELL_H_ | 612 #endif // ASH_SHELL_H_ |
OLD | NEW |