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

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

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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 | « components/mus/ws/operation.h ('k') | components/mus/ws/platform_display.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "components/mus/ws/operation.h"
6
7 #include "components/mus/ws/window_server.h"
8 #include "components/mus/ws/window_tree.h"
9
10 namespace mus {
11 namespace ws {
12
13 Operation::Operation(WindowTree* tree,
14 WindowServer* window_server,
15 OperationType operation_type)
16 : window_server_(window_server),
17 source_tree_id_(tree->id()),
18 operation_type_(operation_type) {
19 DCHECK(operation_type != OperationType::NONE);
20 // Tell the window server about the operation currently in flight. The window
21 // server uses this information to suppress certain calls out to clients.
22 window_server_->PrepareForOperation(this);
23 }
24
25 Operation::~Operation() {
26 window_server_->FinishOperation();
27 }
28
29 } // namespace ws
30 } // namespace mus
OLDNEW
« no previous file with comments | « components/mus/ws/operation.h ('k') | components/mus/ws/platform_display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698