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 <deque> | 8 #include <deque> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 120 |
121 // Sets the system modality. | 121 // Sets the system modality. |
122 void SetSystemModal(bool system_modal); | 122 void SetSystemModal(bool system_modal); |
123 | 123 |
124 // Sets the application ID for the window. The application ID identifies the | 124 // Sets the application ID for the window. The application ID identifies the |
125 // general class of applications to which the window belongs. | 125 // general class of applications to which the window belongs. |
126 static void SetApplicationId(aura::Window* window, | 126 static void SetApplicationId(aura::Window* window, |
127 std::string* application_id); | 127 std::string* application_id); |
128 static const std::string GetApplicationId(aura::Window* window); | 128 static const std::string GetApplicationId(aura::Window* window); |
129 | 129 |
| 130 // Returns true if |key| specifies property for window ready state. It is used |
| 131 // to filter out property changed events. |
| 132 static bool IsApplicationWindowReadyPropertyKey(const void* key); |
| 133 |
| 134 // Returns true if the window is an Arc app window and it is ready to show. |
| 135 static bool IsApplicationWindowReadyToShow(aura::Window* window); |
| 136 |
130 // Set application id for surface. | 137 // Set application id for surface. |
131 void SetApplicationId(const std::string& application_id); | 138 void SetApplicationId(const std::string& application_id); |
132 | 139 |
133 // Start an interactive move of surface. | 140 // Start an interactive move of surface. |
134 void Move(); | 141 void Move(); |
135 | 142 |
136 // Start an interactive resize of surface. |component| is one of the windows | 143 // Start an interactive resize of surface. |component| is one of the windows |
137 // HT constants (see ui/base/hit_test.h) and describes in what direction the | 144 // HT constants (see ui/base/hit_test.h) and describes in what direction the |
138 // surface should be resized. | 145 // surface should be resized. |
139 void Resize(int component); | 146 void Resize(int component); |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 int top_inset_height_ = 0; | 305 int top_inset_height_ = 0; |
299 int pending_top_inset_height_ = 0; | 306 int pending_top_inset_height_ = 0; |
300 float rectangular_shadow_background_opacity_ = 1.0; | 307 float rectangular_shadow_background_opacity_ = 1.0; |
301 | 308 |
302 DISALLOW_COPY_AND_ASSIGN(ShellSurface); | 309 DISALLOW_COPY_AND_ASSIGN(ShellSurface); |
303 }; | 310 }; |
304 | 311 |
305 } // namespace exo | 312 } // namespace exo |
306 | 313 |
307 #endif // COMPONENTS_EXO_SHELL_SURFACE_H_ | 314 #endif // COMPONENTS_EXO_SHELL_SURFACE_H_ |
OLD | NEW |