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

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

Issue 790623003: Restructure public side of view_manager service. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: BUILD.gn file reorderings Created 6 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 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_VIEW_MANAGER_IDS_H_ 5 #ifndef SERVICES_VIEW_MANAGER_IDS_H_
6 #define SERVICES_VIEW_MANAGER_IDS_H_ 6 #define SERVICES_VIEW_MANAGER_IDS_H_
7 7
8 #include "mojo/services/public/cpp/view_manager/types.h" 8 #include "mojo/services/view_manager/public/cpp/types.h"
9 #include "mojo/services/public/cpp/view_manager/util.h" 9 #include "mojo/services/view_manager/public/cpp/util.h"
10 10
11 namespace mojo { 11 namespace mojo {
12 namespace service { 12 namespace service {
13 13
14 // Connection id is used to indicate no connection. That is, no 14 // Connection id is used to indicate no connection. That is, no
15 // ViewManagerServiceImpl ever gets this id. 15 // ViewManagerServiceImpl ever gets this id.
16 const ConnectionSpecificId kInvalidConnectionId = 0; 16 const ConnectionSpecificId kInvalidConnectionId = 0;
17 17
18 // Adds a bit of type safety to view ids. 18 // Adds a bit of type safety to view ids.
19 struct ViewId { 19 struct ViewId {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 // All cloned views use this id. 56 // All cloned views use this id.
57 inline ViewId ClonedViewId() { 57 inline ViewId ClonedViewId() {
58 return ViewId(kInvalidConnectionId, 2); 58 return ViewId(kInvalidConnectionId, 2);
59 } 59 }
60 60
61 } // namespace service 61 } // namespace service
62 } // namespace mojo 62 } // namespace mojo
63 63
64 #endif // SERVICES_VIEW_MANAGER_IDS_H_ 64 #endif // SERVICES_VIEW_MANAGER_IDS_H_
OLDNEW
« no previous file with comments | « services/view_manager/connection_manager_delegate.h ('k') | services/view_manager/scheduled_animation_group.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698