Chromium Code Reviews| 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); |
| } |