Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Side by Side Diff: components/exo/shell_surface.h

Issue 2778733004: Add WindowPinType property on arua::Window (Closed)
Patch Set: Address review issues Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "ash/public/interfaces/window_pin_type.mojom.h"
reveman 2017/04/04 18:26:16 nit: forward declare enum
Peng 2017/04/04 19:43:49 Done.
14 #include "base/macros.h" 15 #include "base/macros.h"
15 #include "base/strings/string16.h" 16 #include "base/strings/string16.h"
16 #include "components/exo/surface_delegate.h" 17 #include "components/exo/surface_delegate.h"
17 #include "components/exo/surface_observer.h" 18 #include "components/exo/surface_observer.h"
18 #include "components/exo/wm_helper.h" 19 #include "components/exo/wm_helper.h"
19 #include "ui/aura/window_observer.h" 20 #include "ui/aura/window_observer.h"
20 #include "ui/base/hit_test.h" 21 #include "ui/base/hit_test.h"
21 #include "ui/gfx/geometry/point.h" 22 #include "ui/gfx/geometry/point.h"
22 #include "ui/gfx/geometry/rect.h" 23 #include "ui/gfx/geometry/rect.h"
23 #include "ui/gfx/geometry/vector2d.h" 24 #include "ui/gfx/geometry/vector2d.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 123
123 // Minimize the shell surface. 124 // Minimize the shell surface.
124 void Minimize(); 125 void Minimize();
125 126
126 // Restore the shell surface. 127 // Restore the shell surface.
127 void Restore(); 128 void Restore();
128 129
129 // Set fullscreen state for shell surface. 130 // Set fullscreen state for shell surface.
130 void SetFullscreen(bool fullscreen); 131 void SetFullscreen(bool fullscreen);
131 132
132 // Pins the shell surface. |trusted| flag is ignored when |pinned| is false. 133 // Pins the shell surface.
133 void SetPinned(bool pinned, bool trusted); 134 void SetPinned(ash::mojom::WindowPinType type);
134 135
135 // Sets whether or not the shell surface should autohide the system UI. 136 // Sets whether or not the shell surface should autohide the system UI.
136 void SetSystemUiVisibility(bool autohide); 137 void SetSystemUiVisibility(bool autohide);
137 138
138 // Set title for surface. 139 // Set title for surface.
139 void SetTitle(const base::string16& title); 140 void SetTitle(const base::string16& title);
140 141
141 // Sets the system modality. 142 // Sets the system modality.
142 void SetSystemModal(bool system_modal); 143 void SetSystemModal(bool system_modal);
143 144
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 int pending_top_inset_height_ = 0; 367 int pending_top_inset_height_ = 0;
367 bool shadow_underlay_in_surface_ = true; 368 bool shadow_underlay_in_surface_ = true;
368 bool system_modal_ = false; 369 bool system_modal_ = false;
369 370
370 DISALLOW_COPY_AND_ASSIGN(ShellSurface); 371 DISALLOW_COPY_AND_ASSIGN(ShellSurface);
371 }; 372 };
372 373
373 } // namespace exo 374 } // namespace exo
374 375
375 #endif // COMPONENTS_EXO_SHELL_SURFACE_H_ 376 #endif // COMPONENTS_EXO_SHELL_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698