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

Side by Side Diff: components/mus/ws/operation.h

Issue 1465803003: mus: Let clients set the cursor of their window. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix WindowTreeAppTest.SetCursor. Created 5 years 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_MUS_WS_OPERATION_H_ 5 #ifndef COMPONENTS_MUS_WS_OPERATION_H_
6 #define COMPONENTS_MUS_WS_OPERATION_H_ 6 #define COMPONENTS_MUS_WS_OPERATION_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 11 matching lines...) Expand all
22 ADD_WINDOW, 22 ADD_WINDOW,
23 DELETE_WINDOW, 23 DELETE_WINDOW,
24 EMBED, 24 EMBED,
25 REMOVE_TRANSIENT_WINDOW_FROM_PARENT, 25 REMOVE_TRANSIENT_WINDOW_FROM_PARENT,
26 REMOVE_WINDOW_FROM_PARENT, 26 REMOVE_WINDOW_FROM_PARENT,
27 REORDER_WINDOW, 27 REORDER_WINDOW,
28 SET_FOCUS, 28 SET_FOCUS,
29 SET_WINDOW_BOUNDS, 29 SET_WINDOW_BOUNDS,
30 SET_WINDOW_PROPERTY, 30 SET_WINDOW_PROPERTY,
31 SET_WINDOW_VISIBILITY, 31 SET_WINDOW_VISIBILITY,
32 SET_WINDOW_PREDEFINED_CURSOR,
sky 2015/12/02 21:42:35 nit: keep these sorted too.
32 }; 33 };
33 34
34 // This class tracks the currently pending client-initiated operation. 35 // This class tracks the currently pending client-initiated operation.
35 // This is typically used to suppress superfluous notifications generated 36 // This is typically used to suppress superfluous notifications generated
36 // by suboperations in the window server. 37 // by suboperations in the window server.
37 class Operation { 38 class Operation {
38 public: 39 public:
39 Operation(WindowTreeImpl* connection, 40 Operation(WindowTreeImpl* connection,
40 ConnectionManager* connection_manager, 41 ConnectionManager* connection_manager,
41 OperationType operation_type); 42 OperationType operation_type);
(...skipping 24 matching lines...) Expand all
66 // See description of MarkConnectionAsMessaged/DidMessageConnection. 67 // See description of MarkConnectionAsMessaged/DidMessageConnection.
67 std::set<ConnectionSpecificId> message_ids_; 68 std::set<ConnectionSpecificId> message_ids_;
68 69
69 DISALLOW_COPY_AND_ASSIGN(Operation); 70 DISALLOW_COPY_AND_ASSIGN(Operation);
70 }; 71 };
71 72
72 } // namespace ws 73 } // namespace ws
73 } // namespace mus 74 } // namespace mus
74 75
75 #endif // COMPONENTS_MUS_WS_OPERATION_H_ 76 #endif // COMPONENTS_MUS_WS_OPERATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698