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

Side by Side Diff: services/ui/ws/server_window.h

Issue 2349003002: Makes WindowTree::DeleteWindow() unembed for roots (Closed)
Patch Set: cleanup Created 4 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 SERVICES_UI_WS_SERVER_WINDOW_H_ 5 #ifndef SERVICES_UI_WS_SERVER_WINDOW_H_
6 #define SERVICES_UI_WS_SERVER_WINDOW_H_ 6 #define SERVICES_UI_WS_SERVER_WINDOW_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 const ServerWindowSurfaceManager* surface_manager() const { 178 const ServerWindowSurfaceManager* surface_manager() const {
179 return surface_manager_.get(); 179 return surface_manager_.get();
180 } 180 }
181 181
182 // Offset of the underlay from the the window bounds (used for shadows). 182 // Offset of the underlay from the the window bounds (used for shadows).
183 const gfx::Vector2d& underlay_offset() const { return underlay_offset_; } 183 const gfx::Vector2d& underlay_offset() const { return underlay_offset_; }
184 void SetUnderlayOffset(const gfx::Vector2d& offset); 184 void SetUnderlayOffset(const gfx::Vector2d& offset);
185 185
186 ServerWindowDelegate* delegate() { return delegate_; } 186 ServerWindowDelegate* delegate() { return delegate_; }
187 187
188 // Called when the window is no longer an embed root.
189 void OnEmbeddedAppDisconnected();
190
188 #if !defined(NDEBUG) || defined(DCHECK_ALWAYS_ON) 191 #if !defined(NDEBUG) || defined(DCHECK_ALWAYS_ON)
189 std::string GetDebugWindowHierarchy() const; 192 std::string GetDebugWindowHierarchy() const;
190 std::string GetDebugWindowInfo() const; 193 std::string GetDebugWindowInfo() const;
191 void BuildDebugInfo(const std::string& depth, std::string* result) const; 194 void BuildDebugInfo(const std::string& depth, std::string* result) const;
192 #endif 195 #endif
193 196
194 private: 197 private:
195 // Implementation of removing a window. Doesn't send any notification. 198 // Implementation of removing a window. Doesn't send any notification.
196 void RemoveImpl(ServerWindow* window); 199 void RemoveImpl(ServerWindow* window);
197 200
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 253
251 base::ObserverList<ServerWindowObserver> observers_; 254 base::ObserverList<ServerWindowObserver> observers_;
252 255
253 DISALLOW_COPY_AND_ASSIGN(ServerWindow); 256 DISALLOW_COPY_AND_ASSIGN(ServerWindow);
254 }; 257 };
255 258
256 } // namespace ws 259 } // namespace ws
257 } // namespace ui 260 } // namespace ui
258 261
259 #endif // SERVICES_UI_WS_SERVER_WINDOW_H_ 262 #endif // SERVICES_UI_WS_SERVER_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698