| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_EXO_SHELL_SURFACE_H_ | 5 #ifndef COMPONENTS_EXO_SHELL_SURFACE_H_ |
| 6 #define COMPONENTS_EXO_SHELL_SURFACE_H_ | 6 #define COMPONENTS_EXO_SHELL_SURFACE_H_ |
| 7 | 7 |
| 8 #include <cstdint> | 8 #include <cstdint> |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "ash/common/wm/window_state_observer.h" | 13 #include "ash/common/wm/window_state_observer.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
| 16 #include "components/exo/surface_delegate.h" | 16 #include "components/exo/surface_delegate.h" |
| 17 #include "components/exo/surface_observer.h" | 17 #include "components/exo/surface_observer.h" |
| 18 #include "components/exo/wm_helper.h" | 18 #include "components/exo/wm_helper.h" |
| 19 #include "ui/aura/window_observer.h" | 19 #include "ui/aura/window_observer.h" |
| 20 #include "ui/base/hit_test.h" | 20 #include "ui/base/hit_test.h" |
| 21 #include "ui/gfx/geometry/point.h" | 21 #include "ui/gfx/geometry/point.h" |
| 22 #include "ui/gfx/geometry/rect.h" | 22 #include "ui/gfx/geometry/rect.h" |
| 23 #include "ui/gfx/geometry/vector2d.h" | 23 #include "ui/gfx/geometry/vector2d.h" |
| 24 #include "ui/views/widget/widget_delegate.h" | 24 #include "ui/views/widget/widget_delegate.h" |
| 25 | 25 |
| 26 namespace ash { | 26 namespace ash { |
| 27 class WindowResizer; | 27 class WindowResizer; |
| 28 namespace mojom { |
| 29 enum class WindowPinType; |
| 30 } |
| 28 } | 31 } |
| 29 | 32 |
| 30 namespace base { | 33 namespace base { |
| 31 namespace trace_event { | 34 namespace trace_event { |
| 32 class TracedValue; | 35 class TracedValue; |
| 33 } | 36 } |
| 34 } | 37 } |
| 35 | 38 |
| 36 namespace exo { | 39 namespace exo { |
| 37 class Surface; | 40 class Surface; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 125 |
| 123 // Minimize the shell surface. | 126 // Minimize the shell surface. |
| 124 void Minimize(); | 127 void Minimize(); |
| 125 | 128 |
| 126 // Restore the shell surface. | 129 // Restore the shell surface. |
| 127 void Restore(); | 130 void Restore(); |
| 128 | 131 |
| 129 // Set fullscreen state for shell surface. | 132 // Set fullscreen state for shell surface. |
| 130 void SetFullscreen(bool fullscreen); | 133 void SetFullscreen(bool fullscreen); |
| 131 | 134 |
| 132 // Pins the shell surface. |trusted| flag is ignored when |pinned| is false. | 135 // Pins the shell surface. |
| 133 void SetPinned(bool pinned, bool trusted); | 136 void SetPinned(ash::mojom::WindowPinType type); |
| 134 | 137 |
| 135 // Sets whether or not the shell surface should autohide the system UI. | 138 // Sets whether or not the shell surface should autohide the system UI. |
| 136 void SetSystemUiVisibility(bool autohide); | 139 void SetSystemUiVisibility(bool autohide); |
| 137 | 140 |
| 138 // Set title for surface. | 141 // Set title for surface. |
| 139 void SetTitle(const base::string16& title); | 142 void SetTitle(const base::string16& title); |
| 140 | 143 |
| 141 // Sets the system modality. | 144 // Sets the system modality. |
| 142 void SetSystemModal(bool system_modal); | 145 void SetSystemModal(bool system_modal); |
| 143 | 146 |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 int pending_top_inset_height_ = 0; | 369 int pending_top_inset_height_ = 0; |
| 367 bool shadow_underlay_in_surface_ = true; | 370 bool shadow_underlay_in_surface_ = true; |
| 368 bool system_modal_ = false; | 371 bool system_modal_ = false; |
| 369 | 372 |
| 370 DISALLOW_COPY_AND_ASSIGN(ShellSurface); | 373 DISALLOW_COPY_AND_ASSIGN(ShellSurface); |
| 371 }; | 374 }; |
| 372 | 375 |
| 373 } // namespace exo | 376 } // namespace exo |
| 374 | 377 |
| 375 #endif // COMPONENTS_EXO_SHELL_SURFACE_H_ | 378 #endif // COMPONENTS_EXO_SHELL_SURFACE_H_ |
| OLD | NEW |