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

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

Issue 2400723003: Mus+Ash: Use standard cc mechanism for surface lifetime. (Closed)
Patch Set: Only AddObserver once Created 4 years, 2 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/test_utils.h ('k') | services/ui/ws/window_server.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_WINDOW_SERVER_H_ 5 #ifndef SERVICES_UI_WS_WINDOW_SERVER_H_
6 #define SERVICES_UI_WS_WINDOW_SERVER_H_ 6 #define SERVICES_UI_WS_WINDOW_SERVER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 // Updates the native cursor if the cursor is currently inside |window|. This 283 // Updates the native cursor if the cursor is currently inside |window|. This
284 // is run in response to events that change the mouse cursor properties of 284 // is run in response to events that change the mouse cursor properties of
285 // |window|. 285 // |window|.
286 void UpdateNativeCursorIfOver(ServerWindow* window); 286 void UpdateNativeCursorIfOver(ServerWindow* window);
287 287
288 bool IsUserInHighContrastMode(const UserId& user) const; 288 bool IsUserInHighContrastMode(const UserId& user) const;
289 289
290 // Overridden from ServerWindowDelegate: 290 // Overridden from ServerWindowDelegate:
291 void OnScheduleWindowPaint(ServerWindow* window) override; 291 void OnScheduleWindowPaint(ServerWindow* window) override;
292 const ServerWindow* GetRootWindow(const ServerWindow* window) const override; 292 const ServerWindow* GetRootWindow(const ServerWindow* window) const override;
293 void ScheduleSurfaceDestruction(ServerWindow* window) override;
294 293
295 // Overridden from ServerWindowObserver: 294 // Overridden from ServerWindowObserver:
296 void OnWindowDestroyed(ServerWindow* window) override; 295 void OnWindowDestroyed(ServerWindow* window) override;
297 void OnWillChangeWindowHierarchy(ServerWindow* window, 296 void OnWillChangeWindowHierarchy(ServerWindow* window,
298 ServerWindow* new_parent, 297 ServerWindow* new_parent,
299 ServerWindow* old_parent) override; 298 ServerWindow* old_parent) override;
300 void OnWindowHierarchyChanged(ServerWindow* window, 299 void OnWindowHierarchyChanged(ServerWindow* window,
301 ServerWindow* new_parent, 300 ServerWindow* new_parent,
302 ServerWindow* old_parent) override; 301 ServerWindow* old_parent) override;
303 void OnWindowBoundsChanged(ServerWindow* window, 302 void OnWindowBoundsChanged(ServerWindow* window,
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 379
381 WindowManagerWindowTreeFactorySet window_manager_window_tree_factory_set_; 380 WindowManagerWindowTreeFactorySet window_manager_window_tree_factory_set_;
382 381
383 DISALLOW_COPY_AND_ASSIGN(WindowServer); 382 DISALLOW_COPY_AND_ASSIGN(WindowServer);
384 }; 383 };
385 384
386 } // namespace ws 385 } // namespace ws
387 } // namespace ui 386 } // namespace ui
388 387
389 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_ 388 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_
OLDNEW
« no previous file with comments | « services/ui/ws/test_utils.h ('k') | services/ui/ws/window_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698