| 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 #include "chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.h" | 4 #include "chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.h" |
| 5 | 5 |
| 6 #include <string> | 6 #include <string> |
| 7 | 7 |
| 8 #include "ash/common/wm/window_state.h" | 8 #include "ash/common/wm/window_state.h" |
| 9 #include "ash/common/wm_shell.h" | 9 #include "ash/common/wm_shell.h" |
| 10 #include "ash/display/display_manager.h" | 10 #include "ash/display/display_manager.h" |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 bool IsMinimized() const override { | 126 bool IsMinimized() const override { |
| 127 NOTREACHED(); | 127 NOTREACHED(); |
| 128 return false; | 128 return false; |
| 129 } | 129 } |
| 130 | 130 |
| 131 bool IsFullscreen() const override { | 131 bool IsFullscreen() const override { |
| 132 NOTREACHED(); | 132 NOTREACHED(); |
| 133 return false; | 133 return false; |
| 134 } | 134 } |
| 135 | 135 |
| 136 gfx::NativeWindow GetNativeWindow() const override { return nullptr; } | 136 gfx::NativeWindow GetNativeWindow() const override { |
| 137 return widget_ ? widget_->GetNativeWindow() : nullptr; |
| 138 } |
| 137 | 139 |
| 138 gfx::Rect GetRestoredBounds() const override { | 140 gfx::Rect GetRestoredBounds() const override { |
| 139 NOTREACHED(); | 141 NOTREACHED(); |
| 140 return gfx::Rect(); | 142 return gfx::Rect(); |
| 141 } | 143 } |
| 142 | 144 |
| 143 ui::WindowShowState GetRestoredState() const override { | 145 ui::WindowShowState GetRestoredState() const override { |
| 144 NOTREACHED(); | 146 NOTREACHED(); |
| 145 return ui::SHOW_STATE_NORMAL; | 147 return ui::SHOW_STATE_NORMAL; |
| 146 } | 148 } |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 598 | 600 |
| 599 if (orientation_lock == arc::mojom::OrientationLock::CURRENT) { | 601 if (orientation_lock == arc::mojom::OrientationLock::CURRENT) { |
| 600 // Resolve the orientation when it first resolved. | 602 // Resolve the orientation when it first resolved. |
| 601 orientation_lock = GetCurrentOrientation(); | 603 orientation_lock = GetCurrentOrientation(); |
| 602 app_window->set_requested_orientation_lock(orientation_lock); | 604 app_window->set_requested_orientation_lock(orientation_lock); |
| 603 } | 605 } |
| 604 | 606 |
| 605 shell->screen_orientation_controller()->LockOrientationForWindow( | 607 shell->screen_orientation_controller()->LockOrientationForWindow( |
| 606 window, BlinkOrientationLockFromMojom(orientation_lock)); | 608 window, BlinkOrientationLockFromMojom(orientation_lock)); |
| 607 } | 609 } |
| OLD | NEW |