| 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 // Returns the "visible bounds" for the surface from the user's perspective. | 254 // Returns the "visible bounds" for the surface from the user's perspective. |
| 255 gfx::Rect GetVisibleBounds() const; | 255 gfx::Rect GetVisibleBounds() const; |
| 256 | 256 |
| 257 // Returns the origin for the surface taking visible bounds and current | 257 // Returns the origin for the surface taking visible bounds and current |
| 258 // resize direction into account. | 258 // resize direction into account. |
| 259 gfx::Point GetSurfaceOrigin() const; | 259 gfx::Point GetSurfaceOrigin() const; |
| 260 | 260 |
| 261 // Updates the bounds of widget to match the current surface bounds. | 261 // Updates the bounds of widget to match the current surface bounds. |
| 262 void UpdateWidgetBounds(); | 262 void UpdateWidgetBounds(); |
| 263 | 263 |
| 264 void ShowShadowUnderlay(const gfx::Rect& bounds, float opacity); |
| 265 |
| 264 // Creates, deletes and update the shadow bounds based on | 266 // Creates, deletes and update the shadow bounds based on |
| 265 // |pending_shadow_content_bounds_|. | 267 // |pending_shadow_content_bounds_|. |
| 266 void UpdateShadow(); | 268 void UpdateShadow(); |
| 267 | 269 |
| 268 views::Widget* widget_ = nullptr; | 270 views::Widget* widget_ = nullptr; |
| 269 Surface* surface_; | 271 Surface* surface_; |
| 270 aura::Window* parent_; | 272 aura::Window* parent_; |
| 271 const gfx::Rect initial_bounds_; | 273 const gfx::Rect initial_bounds_; |
| 272 const bool activatable_; | 274 const bool activatable_; |
| 273 // Container Window Id (see ash/common/shell_window_ids.h) | 275 // Container Window Id (see ash/common/shell_window_ids.h) |
| (...skipping 25 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 |