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