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

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

Issue 1717283003: tracing: Make ConvertableToTraceFormat move-only scoped_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 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 <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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698