forked from sanyaade-mobiledev/chromium.src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds typedefs for view manager types
BUG=365012 TEST=covered by tests R=ben@chromium.org Review URL: https://codereview.chromium.org/257383007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267809 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
sky@chromium.org
committed
May 2, 2014
1 parent
27652a5
commit ef8c7ed
Showing
8 changed files
with
166 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
mojo/services/public/cpp/view_manager/view_manager_types.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright 2014 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_TYPES_H_ | ||
#define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_TYPES_H_ | ||
|
||
#include "base/basictypes.h" | ||
|
||
// Typedefs for the transport types. These typedefs match that of the mojom | ||
// file, see it for specifics. | ||
|
||
namespace mojo { | ||
namespace services { | ||
namespace view_manager { | ||
|
||
typedef uint32_t TransportChangeId; | ||
typedef uint16_t TransportConnectionId; | ||
typedef uint32_t TransportNodeId; | ||
typedef uint32_t TransportViewId; | ||
|
||
// These types are used in two cases: | ||
// 1. when a connection is creating a node/view. In this case the connection id | ||
// from the current connection is used, so no need to explicitly specific it. | ||
// 2. When the connection id is stored along side this. | ||
typedef uint16_t TransportConnectionSpecificNodeId; | ||
typedef uint16_t TransportConnectionSpecificViewId; | ||
|
||
} // namespace view_manager | ||
} // namespace services | ||
} // namespace mojo | ||
|
||
#endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_TYPES_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.