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

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

Issue 2257503002: Improve some debug tools for mus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_mash
Patch Set: Fixes. Created 4 years, 4 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
« no previous file with comments | « services/ui/ws/ids.h ('k') | services/ui/ws/server_window.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 const ServerWindowSurfaceManager* surface_manager() const { 175 const ServerWindowSurfaceManager* surface_manager() const {
176 return surface_manager_.get(); 176 return surface_manager_.get();
177 } 177 }
178 178
179 // Offset of the underlay from the the window bounds (used for shadows). 179 // Offset of the underlay from the the window bounds (used for shadows).
180 const gfx::Vector2d& underlay_offset() const { return underlay_offset_; } 180 const gfx::Vector2d& underlay_offset() const { return underlay_offset_; }
181 void SetUnderlayOffset(const gfx::Vector2d& offset); 181 void SetUnderlayOffset(const gfx::Vector2d& offset);
182 182
183 ServerWindowDelegate* delegate() { return delegate_; } 183 ServerWindowDelegate* delegate() { return delegate_; }
184 184
185 #if !defined(NDEBUG) 185 #if !defined(NDEBUG) || defined(DCHECK_ALWAYS_ON)
186 std::string GetDebugWindowHierarchy() const; 186 std::string GetDebugWindowHierarchy() const;
187 std::string GetDebugWindowInfo() const;
187 void BuildDebugInfo(const std::string& depth, std::string* result) const; 188 void BuildDebugInfo(const std::string& depth, std::string* result) const;
188 #endif 189 #endif
189 190
190 private: 191 private:
191 // Implementation of removing a window. Doesn't send any notification. 192 // Implementation of removing a window. Doesn't send any notification.
192 void RemoveImpl(ServerWindow* window); 193 void RemoveImpl(ServerWindow* window);
193 194
194 // Called when this window's stacking order among its siblings is changed. 195 // Called when this window's stacking order among its siblings is changed.
195 void OnStackingChanged(); 196 void OnStackingChanged();
196 197
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 243
243 base::ObserverList<ServerWindowObserver> observers_; 244 base::ObserverList<ServerWindowObserver> observers_;
244 245
245 DISALLOW_COPY_AND_ASSIGN(ServerWindow); 246 DISALLOW_COPY_AND_ASSIGN(ServerWindow);
246 }; 247 };
247 248
248 } // namespace ws 249 } // namespace ws
249 } // namespace ui 250 } // namespace ui
250 251
251 #endif // SERVICES_UI_WS_SERVER_WINDOW_H_ 252 #endif // SERVICES_UI_WS_SERVER_WINDOW_H_
OLDNEW
« no previous file with comments | « services/ui/ws/ids.h ('k') | services/ui/ws/server_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698