| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 void SetPinned(bool pinned, bool trusted); | 117 void SetPinned(bool pinned, bool trusted); |
| 118 | 118 |
| 119 // Set title for surface. | 119 // Set title for surface. |
| 120 void SetTitle(const base::string16& title); | 120 void SetTitle(const base::string16& title); |
| 121 | 121 |
| 122 // Sets the system modality. | 122 // Sets the system modality. |
| 123 void SetSystemModal(bool system_modal); | 123 void SetSystemModal(bool system_modal); |
| 124 | 124 |
| 125 // Sets the application ID for the window. The application ID identifies the | 125 // Sets the application ID for the window. The application ID identifies the |
| 126 // general class of applications to which the window belongs. | 126 // general class of applications to which the window belongs. |
| 127 static void SetApplicationId(aura::Window* window, const std::string& id); | 127 static void SetApplicationId(aura::Window* window, |
| 128 std::string* application_id); |
| 128 static const std::string GetApplicationId(aura::Window* window); | 129 static const std::string GetApplicationId(aura::Window* window); |
| 129 | 130 |
| 130 // Set the application ID for the surface. | 131 // Set application id for surface. |
| 131 void SetApplicationId(const std::string& application_id); | 132 void SetApplicationId(const std::string& application_id); |
| 132 | 133 |
| 133 // Start an interactive move of surface. | 134 // Start an interactive move of surface. |
| 134 void Move(); | 135 void Move(); |
| 135 | 136 |
| 136 // Start an interactive resize of surface. |component| is one of the windows | 137 // 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 | 138 // HT constants (see ui/base/hit_test.h) and describes in what direction the |
| 138 // surface should be resized. | 139 // surface should be resized. |
| 139 void Resize(int component); | 140 void Resize(int component); |
| 140 | 141 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 | 268 |
| 268 views::Widget* widget_ = nullptr; | 269 views::Widget* widget_ = nullptr; |
| 269 Surface* surface_; | 270 Surface* surface_; |
| 270 aura::Window* parent_; | 271 aura::Window* parent_; |
| 271 const gfx::Rect initial_bounds_; | 272 const gfx::Rect initial_bounds_; |
| 272 const bool activatable_; | 273 const bool activatable_; |
| 273 // Container Window Id (see ash/public/cpp/shell_window_ids.h) | 274 // Container Window Id (see ash/public/cpp/shell_window_ids.h) |
| 274 const int container_; | 275 const int container_; |
| 275 bool pending_show_widget_ = false; | 276 bool pending_show_widget_ = false; |
| 276 base::string16 title_; | 277 base::string16 title_; |
| 278 std::string application_id_; |
| 277 gfx::Rect geometry_; | 279 gfx::Rect geometry_; |
| 278 gfx::Rect pending_geometry_; | 280 gfx::Rect pending_geometry_; |
| 279 double scale_ = 1.0; | 281 double scale_ = 1.0; |
| 280 double pending_scale_ = 1.0; | 282 double pending_scale_ = 1.0; |
| 281 base::Closure close_callback_; | 283 base::Closure close_callback_; |
| 282 base::Closure surface_destroyed_callback_; | 284 base::Closure surface_destroyed_callback_; |
| 283 StateChangedCallback state_changed_callback_; | 285 StateChangedCallback state_changed_callback_; |
| 284 ConfigureCallback configure_callback_; | 286 ConfigureCallback configure_callback_; |
| 285 ScopedConfigure* scoped_configure_ = nullptr; | 287 ScopedConfigure* scoped_configure_ = nullptr; |
| 286 bool ignore_window_bounds_changes_ = false; | 288 bool ignore_window_bounds_changes_ = false; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 299 int top_inset_height_ = 0; | 301 int top_inset_height_ = 0; |
| 300 int pending_top_inset_height_ = 0; | 302 int pending_top_inset_height_ = 0; |
| 301 float rectangular_shadow_background_opacity_ = 1.0; | 303 float rectangular_shadow_background_opacity_ = 1.0; |
| 302 | 304 |
| 303 DISALLOW_COPY_AND_ASSIGN(ShellSurface); | 305 DISALLOW_COPY_AND_ASSIGN(ShellSurface); |
| 304 }; | 306 }; |
| 305 | 307 |
| 306 } // namespace exo | 308 } // namespace exo |
| 307 | 309 |
| 308 #endif // COMPONENTS_EXO_SHELL_SURFACE_H_ | 310 #endif // COMPONENTS_EXO_SHELL_SURFACE_H_ |
| OLD | NEW |