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

Unified Diff: third_party/WebKit/Source/core/layout/api/SelectionState.h

Issue 2732643004: Add operator<< to SelectionState for debug logging. (Closed)
Patch Set: Created 3 years, 10 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: third_party/WebKit/Source/core/layout/api/SelectionState.h
diff --git a/third_party/WebKit/Source/core/layout/api/SelectionState.h b/third_party/WebKit/Source/core/layout/api/SelectionState.h
index 728e4c540caeb0510a44baa014d9ce066b59ec39..094b6253c6c1a2ffed93e820d109f889451d7840 100644
--- a/third_party/WebKit/Source/core/layout/api/SelectionState.h
+++ b/third_party/WebKit/Source/core/layout/api/SelectionState.h
@@ -5,6 +5,11 @@
#ifndef SelectionState_h
#define SelectionState_h
+#ifndef NDEBUG
+#include <iosfwd>
+#include "core/CoreExport.h"
+#endif
+
namespace blink {
enum SelectionState {
@@ -23,6 +28,10 @@ enum SelectionState {
SelectionBoth
};
+#ifndef NDEBUG
+CORE_EXPORT std::ostream& operator<<(std::ostream&, const SelectionState&);
+#endif
+
} // namespace blink
#endif // SelectionState_h

Powered by Google App Engine
This is Rietveld 408576698