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

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

Issue 1352043005: mus: Implement Window Server Capture Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added capture unit tests Created 5 years, 1 month 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"
11 #include "components/mus/common/types.h" 11 #include "components/mus/common/types.h"
12 12
13 namespace mus { 13 namespace mus {
14 namespace ws { 14 namespace ws {
15 15
16 class ConnectionManager; 16 class ConnectionManager;
17 class WindowTreeImpl; 17 class WindowTreeImpl;
18 18
19 enum class OperationType { 19 enum class OperationType {
20 NONE, 20 NONE,
21 ADD_TRANSIENT_WINDOW, 21 ADD_TRANSIENT_WINDOW,
22 ADD_WINDOW, 22 ADD_WINDOW,
23 DELETE_WINDOW, 23 DELETE_WINDOW,
24 EMBED, 24 EMBED,
25 RELEASE_CAPTURE,
25 REMOVE_TRANSIENT_WINDOW_FROM_PARENT, 26 REMOVE_TRANSIENT_WINDOW_FROM_PARENT,
26 REMOVE_WINDOW_FROM_PARENT, 27 REMOVE_WINDOW_FROM_PARENT,
27 REORDER_WINDOW, 28 REORDER_WINDOW,
29 SET_CAPTURE,
28 SET_FOCUS, 30 SET_FOCUS,
29 SET_WINDOW_BOUNDS, 31 SET_WINDOW_BOUNDS,
30 SET_WINDOW_PROPERTY, 32 SET_WINDOW_PROPERTY,
31 SET_WINDOW_VISIBILITY, 33 SET_WINDOW_VISIBILITY,
32 }; 34 };
33 35
34 // This class tracks the currently pending client-initiated operation. 36 // This class tracks the currently pending client-initiated operation.
35 // This is typically used to suppress superfluous notifications generated 37 // This is typically used to suppress superfluous notifications generated
36 // by suboperations in the window server. 38 // by suboperations in the window server.
37 class Operation { 39 class Operation {
(...skipping 28 matching lines...) Expand all
66 // See description of MarkConnectionAsMessaged/DidMessageConnection. 68 // See description of MarkConnectionAsMessaged/DidMessageConnection.
67 std::set<ConnectionSpecificId> message_ids_; 69 std::set<ConnectionSpecificId> message_ids_;
68 70
69 DISALLOW_COPY_AND_ASSIGN(Operation); 71 DISALLOW_COPY_AND_ASSIGN(Operation);
70 }; 72 };
71 73
72 } // namespace ws 74 } // namespace ws
73 } // namespace mus 75 } // namespace mus
74 76
75 #endif // COMPONENTS_MUS_WS_OPERATION_H_ 77 #endif // COMPONENTS_MUS_WS_OPERATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698