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

Unified Diff: services/ui/ws/ids.h

Issue 2385193002: FrameSinkIds use to WindowIds in window server, Process ID/Route ID in renderer (Closed)
Patch Set: FrameSinkIds refer to WindowIds in window server, and RenderProcess ID/Routing ID in renderer Created 4 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
Index: services/ui/ws/ids.h
diff --git a/services/ui/ws/ids.h b/services/ui/ws/ids.h
index a6268349313afe6001f54a0121f83b5a8c8bcccd..e7ac722aefa49dbff3e78a8ffe86c8728ec6beef 100644
--- a/services/ui/ws/ids.h
+++ b/services/ui/ws/ids.h
@@ -53,6 +53,10 @@ struct WindowId {
std::tie(other.client_id, other.window_id);
}
+ operator uint32_t() const {
sky 2016/10/04 17:50:53 Actually, one comment. Style guide says no to impl
Fady Samuel 2016/10/04 19:31:57 Using WindowIdToTransportId instead.
+ return (client_id << 16) | window_id;
+ }
+
std::string ToString() const {
return base::StringPrintf("%u:%u", client_id, window_id);
}
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | services/ui/ws/server_window_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698