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

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

Issue 2257503002: Improve some debug tools for mus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_mash
Patch Set: Fixes. Created 4 years, 4 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 | « no previous file | services/ui/ws/server_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/ids.h
diff --git a/services/ui/ws/ids.h b/services/ui/ws/ids.h
index 0978e9c88c776369911179d56e96eaee0e3b6eed..a6268349313afe6001f54a0121f83b5a8c8bcccd 100644
--- a/services/ui/ws/ids.h
+++ b/services/ui/ws/ids.h
@@ -7,10 +7,12 @@
#include <stdint.h>
+#include <string>
#include <tuple>
#include "base/containers/hash_tables.h"
#include "base/hash.h"
+#include "base/strings/stringprintf.h"
#include "services/ui/common/types.h"
#include "services/ui/common/util.h"
@@ -51,6 +53,10 @@ struct WindowId {
std::tie(other.client_id, other.window_id);
}
+ std::string ToString() const {
+ return base::StringPrintf("%u:%u", client_id, window_id);
+ }
+
ClientSpecificId client_id;
ClientSpecificId window_id;
};
« no previous file with comments | « no previous file | services/ui/ws/server_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698