| 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 #include "components/arc/window_manager/arc_window_manager_bridge.h" | 5 #include "components/arc/window_manager/arc_window_manager_bridge.h" |
| 6 | 6 |
| 7 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h" |
| 7 #include "ash/common/wm_shell.h" | 8 #include "ash/common/wm_shell.h" |
| 8 #include "ash/shell.h" | 9 #include "ash/shell.h" |
| 9 #include "ash/wm/maximize_mode/maximize_mode_controller.h" | |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "components/arc/arc_bridge_service.h" | 11 #include "components/arc/arc_bridge_service.h" |
| 12 | 12 |
| 13 namespace arc { | 13 namespace arc { |
| 14 | 14 |
| 15 ArcWindowManagerBridge::ArcWindowManagerBridge(ArcBridgeService* bridge_service) | 15 ArcWindowManagerBridge::ArcWindowManagerBridge(ArcBridgeService* bridge_service) |
| 16 : ArcService(bridge_service), | 16 : ArcService(bridge_service), |
| 17 current_mode_(mojom::WindowManagerMode::MODE_NORMAL) { | 17 current_mode_(mojom::WindowManagerMode::MODE_NORMAL) { |
| 18 arc_bridge_service()->AddObserver(this); | 18 arc_bridge_service()->AddObserver(this); |
| 19 if (!ash::WmShell::HasInstance()) { | 19 if (!ash::WmShell::HasInstance()) { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 arc_bridge_service()->window_manager_instance(); | 66 arc_bridge_service()->window_manager_instance(); |
| 67 if (!wm_instance || wm_mode == current_mode_) { | 67 if (!wm_instance || wm_mode == current_mode_) { |
| 68 return; | 68 return; |
| 69 } | 69 } |
| 70 VLOG(1) << "Sending window manager mode change to " << wm_mode; | 70 VLOG(1) << "Sending window manager mode change to " << wm_mode; |
| 71 wm_instance->OnWindowManagerModeChange(wm_mode); | 71 wm_instance->OnWindowManagerModeChange(wm_mode); |
| 72 current_mode_ = wm_mode; | 72 current_mode_ = wm_mode; |
| 73 } | 73 } |
| 74 | 74 |
| 75 } // namespace arc | 75 } // namespace arc |
| OLD | NEW |