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

Unified Diff: components/mus/ws/ids.h

Issue 1406153004: components/mus/public/interfaces View => Window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Yet another rebase Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/mus/ws/display_manager_delegate.h ('k') | components/mus/ws/server_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/ids.h
diff --git a/components/mus/ws/ids.h b/components/mus/ws/ids.h
index a788359ec7c56cc8464669bddda8c40f1e342a42..fef524aa30aecd9573768c7375f760a6bdaea5e0 100644
--- a/components/mus/ws/ids.h
+++ b/components/mus/ws/ids.h
@@ -16,25 +16,25 @@ const ConnectionSpecificId kInvalidConnectionId = 0;
// Adds a bit of type safety to view ids.
struct ViewId {
- ViewId(ConnectionSpecificId connection_id, ConnectionSpecificId view_id)
- : connection_id(connection_id), view_id(view_id) {}
- ViewId() : connection_id(0), view_id(0) {}
+ ViewId(ConnectionSpecificId connection_id, ConnectionSpecificId window_id)
+ : connection_id(connection_id), window_id(window_id) {}
+ ViewId() : connection_id(0), window_id(0) {}
bool operator==(const ViewId& other) const {
- return other.connection_id == connection_id && other.view_id == view_id;
+ return other.connection_id == connection_id && other.window_id == window_id;
}
bool operator!=(const ViewId& other) const { return !(*this == other); }
bool operator<(const ViewId& other) const {
if (connection_id == other.connection_id)
- return view_id < other.view_id;
+ return window_id < other.window_id;
return connection_id < other.connection_id;
}
ConnectionSpecificId connection_id;
- ConnectionSpecificId view_id;
+ ConnectionSpecificId window_id;
};
inline ViewId ViewIdFromTransportId(Id id) {
@@ -42,7 +42,7 @@ inline ViewId ViewIdFromTransportId(Id id) {
}
inline Id ViewIdToTransportId(const ViewId& id) {
- return (id.connection_id << 16) | id.view_id;
+ return (id.connection_id << 16) | id.window_id;
}
// Returns a ViewId that is reserved to indicate no view. That is, no view will
« no previous file with comments | « components/mus/ws/display_manager_delegate.h ('k') | components/mus/ws/server_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698