| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ash/wm/window_state_observer.h" | 10 #include "ash/wm/window_state_observer.h" |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 92 |
| 93 // Set geometry for surface. The geometry represents the "visible bounds" | 93 // Set geometry for surface. The geometry represents the "visible bounds" |
| 94 // for the surface from the user's perspective. | 94 // for the surface from the user's perspective. |
| 95 void SetGeometry(const gfx::Rect& geometry); | 95 void SetGeometry(const gfx::Rect& geometry); |
| 96 | 96 |
| 97 // Sets the main surface for the window. | 97 // Sets the main surface for the window. |
| 98 static void SetMainSurface(aura::Window* window, Surface* surface); | 98 static void SetMainSurface(aura::Window* window, Surface* surface); |
| 99 static Surface* GetMainSurface(const aura::Window* window); | 99 static Surface* GetMainSurface(const aura::Window* window); |
| 100 | 100 |
| 101 // Returns a trace value representing the state of the surface. | 101 // Returns a trace value representing the state of the surface. |
| 102 scoped_refptr<base::trace_event::TracedValue> AsTracedValue() const; | 102 scoped_ptr<base::trace_event::TracedValue> AsTracedValue() const; |
| 103 | 103 |
| 104 // Overridden from SurfaceDelegate: | 104 // Overridden from SurfaceDelegate: |
| 105 void OnSurfaceCommit() override; | 105 void OnSurfaceCommit() override; |
| 106 bool IsSurfaceSynchronized() const override; | 106 bool IsSurfaceSynchronized() const override; |
| 107 | 107 |
| 108 // Overridden from SurfaceObserver: | 108 // Overridden from SurfaceObserver: |
| 109 void OnSurfaceDestroying(Surface* surface) override; | 109 void OnSurfaceDestroying(Surface* surface) override; |
| 110 | 110 |
| 111 // Overridden from views::WidgetDelegate: | 111 // Overridden from views::WidgetDelegate: |
| 112 base::string16 GetWindowTitle() const override; | 112 base::string16 GetWindowTitle() const override; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 base::Closure close_callback_; | 146 base::Closure close_callback_; |
| 147 base::Closure surface_destroyed_callback_; | 147 base::Closure surface_destroyed_callback_; |
| 148 ConfigureCallback configure_callback_; | 148 ConfigureCallback configure_callback_; |
| 149 | 149 |
| 150 DISALLOW_COPY_AND_ASSIGN(ShellSurface); | 150 DISALLOW_COPY_AND_ASSIGN(ShellSurface); |
| 151 }; | 151 }; |
| 152 | 152 |
| 153 } // namespace exo | 153 } // namespace exo |
| 154 | 154 |
| 155 #endif // COMPONENTS_EXO_SHELL_SURFACE_H_ | 155 #endif // COMPONENTS_EXO_SHELL_SURFACE_H_ |
| OLD | NEW |