Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_COMMON_WM_SHELL_H_ | 5 #ifndef ASH_COMMON_WM_SHELL_H_ |
| 6 #define ASH_COMMON_WM_SHELL_H_ | 6 #define ASH_COMMON_WM_SHELL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "ash/ash_export.h" | 13 #include "ash/ash_export.h" |
| 14 #include "ash/common/media_delegate.h" | 14 #include "ash/common/media_delegate.h" |
| 15 #include "ash/common/metrics/gesture_action_type.h" | 15 #include "ash/common/metrics/gesture_action_type.h" |
| 16 #include "ash/common/metrics/user_metrics_action.h" | 16 #include "ash/common/metrics/user_metrics_action.h" |
| 17 #include "ash/common/wm/lock_state_observer.h" | 17 #include "ash/common/wm/lock_state_observer.h" |
| 18 #include "base/observer_list.h" | 18 #include "base/observer_list.h" |
| 19 #include "components/ui_devtools/devtools_server.h" | 19 #include "components/ui_devtools/devtools_server.h" |
| 20 #include "ui/base/ui_base_types.h" | 20 #include "ui/base/ui_base_types.h" |
| 21 #include "ui/compositor/layer_type.h" | 21 #include "ui/compositor/layer_type.h" |
| 22 #include "ui/display/types/display_constants.h" | |
| 22 #include "ui/wm/public/window_types.h" | 23 #include "ui/wm/public/window_types.h" |
| 23 | 24 |
| 24 namespace base { | 25 namespace base { |
| 25 class SequencedWorkerPool; | 26 class SequencedWorkerPool; |
| 26 } | 27 } |
| 27 | 28 |
| 28 namespace display { | 29 namespace display { |
| 29 class Display; | 30 class Display; |
| 30 class ManagedDisplayInfo; | 31 class ManagedDisplayInfo; |
| 31 } | 32 } |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 268 void ShowAppList(); | 269 void ShowAppList(); |
| 269 | 270 |
| 270 // Dismisses the app list. | 271 // Dismisses the app list. |
| 271 void DismissAppList(); | 272 void DismissAppList(); |
| 272 | 273 |
| 273 // Shows the app list if it's not visible. Dismisses it otherwise. | 274 // Shows the app list if it's not visible. Dismisses it otherwise. |
| 274 void ToggleAppList(); | 275 void ToggleAppList(); |
| 275 | 276 |
| 276 // Returns app list actual visibility. This might differ from | 277 // Returns app list actual visibility. This might differ from |
| 277 // GetAppListTargetVisibility() when hiding animation is still in flight. | 278 // GetAppListTargetVisibility() when hiding animation is still in flight. |
| 278 bool IsApplistVisible() const; | 279 // Pass a valid display id to check target visibility for a specific display. |
|
James Cook
2016/11/30 23:27:19
If you don't pass a valid id what does it check? J
| |
| 280 bool IsApplistVisible(int64_t display_id = display::kInvalidDisplayId) const; | |
| 279 | 281 |
| 280 // Returns app list target visibility. | 282 // Returns app list target visibility. |
| 281 bool GetAppListTargetVisibility() const; | 283 // Pass a valid display id to check visibility for a specific display. |
| 284 bool GetAppListTargetVisibility( | |
| 285 int64_t display_id = display::kInvalidDisplayId) const; | |
|
James Cook
2016/11/30 23:27:19
optional: I wonder if these methods would be clear
| |
| 282 | 286 |
| 283 // Returns true if a window is currently pinned. | 287 // Returns true if a window is currently pinned. |
| 284 virtual bool IsPinned() = 0; | 288 virtual bool IsPinned() = 0; |
| 285 | 289 |
| 286 // Sets/Unsets the |window| to as a pinned window. If this is called with a | 290 // Sets/Unsets the |window| to as a pinned window. If this is called with a |
| 287 // window with WINDOW_STATE_TYPE_PINNED state, then this sets the |window| | 291 // window with WINDOW_STATE_TYPE_PINNED state, then this sets the |window| |
| 288 // as a pinned window. Otherwise, this unsets it. | 292 // as a pinned window. Otherwise, this unsets it. |
| 289 // For setting, a caller needs to guarantee that no windows are set | 293 // For setting, a caller needs to guarantee that no windows are set |
| 290 // as pinned window. For unsetting, a caller needs to guarantee that the | 294 // as pinned window. For unsetting, a caller needs to guarantee that the |
| 291 // |window| is the one which is currently set as a pinned window via previous | 295 // |window| is the one which is currently set as a pinned window via previous |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 516 | 520 |
| 517 #if defined(OS_CHROMEOS) | 521 #if defined(OS_CHROMEOS) |
| 518 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; | 522 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; |
| 519 std::unique_ptr<VpnList> vpn_list_; | 523 std::unique_ptr<VpnList> vpn_list_; |
| 520 #endif | 524 #endif |
| 521 }; | 525 }; |
| 522 | 526 |
| 523 } // namespace ash | 527 } // namespace ash |
| 524 | 528 |
| 525 #endif // ASH_COMMON_WM_SHELL_H_ | 529 #endif // ASH_COMMON_WM_SHELL_H_ |
| OLD | NEW |