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

Side by Side Diff: mojo/services/view_manager/ids.h

Issue 720883003: Adds a CloneAndAnimate function to WindowManagerInternalClient (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: feedback Created 6 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 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 MOJO_SERVICES_VIEW_MANAGER_IDS_H_ 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_IDS_H_
6 #define MOJO_SERVICES_VIEW_MANAGER_IDS_H_ 6 #define MOJO_SERVICES_VIEW_MANAGER_IDS_H_
7 7
8 #include "mojo/services/public/cpp/view_manager/types.h" 8 #include "mojo/services/public/cpp/view_manager/types.h"
9 #include "mojo/services/public/cpp/view_manager/util.h" 9 #include "mojo/services/public/cpp/view_manager/util.h"
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 inline ViewId RootViewId() { 46 inline ViewId RootViewId() {
47 return ViewId(kInvalidConnectionId, 1); 47 return ViewId(kInvalidConnectionId, 1);
48 } 48 }
49 49
50 // Returns a ViewId that is reserved to indicate no view. That is, no view will 50 // Returns a ViewId that is reserved to indicate no view. That is, no view will
51 // ever be created with this id. 51 // ever be created with this id.
52 inline ViewId InvalidViewId() { 52 inline ViewId InvalidViewId() {
53 return ViewId(kInvalidConnectionId, 0); 53 return ViewId(kInvalidConnectionId, 0);
54 } 54 }
55 55
56 // All cloned views use this id.
57 inline ViewId ClonedViewId() {
58 return ViewId(kInvalidConnectionId, 2);
59 }
60
56 } // namespace service 61 } // namespace service
57 } // namespace mojo 62 } // namespace mojo
58 63
59 #endif // MOJO_SERVICES_VIEW_MANAGER_IDS_H_ 64 #endif // MOJO_SERVICES_VIEW_MANAGER_IDS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698