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

Unified Diff: ui/touch_selection/touch_handle.cc

Issue 1436403003: Make scoped enums output streamable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: operator<< Created 5 years, 1 month 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
« base/logging_unittest.cc ('K') | « base/logging_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/touch_selection/touch_handle.cc
diff --git a/ui/touch_selection/touch_handle.cc b/ui/touch_selection/touch_handle.cc
index 0fe3612eab31714ea616529d42ad28eb635c944d..1be71800ab5ce02825539706526fef4f39b0c5d4 100644
--- a/ui/touch_selection/touch_handle.cc
+++ b/ui/touch_selection/touch_handle.cc
@@ -44,23 +44,6 @@ bool RectIntersectsCircle(const gfx::RectF& rect,
} // namespace
-// TODO(AviD): Remove this once logging(DCHECK) supports enum class.
-static std::ostream& operator<<(std::ostream& os,
- const TouchHandleOrientation& orientation) {
- switch (orientation) {
- case TouchHandleOrientation::LEFT:
- return os << "LEFT";
- case TouchHandleOrientation::RIGHT:
- return os << "RIGHT";
- case TouchHandleOrientation::CENTER:
- return os << "CENTER";
- case TouchHandleOrientation::UNDEFINED:
- return os << "UNDEFINED";
- default:
- return os << "INVALID: " << static_cast<int>(orientation);
- }
-}
-
// Responsible for rendering a selection or insertion handle for text editing.
TouchHandle::TouchHandle(TouchHandleClient* client,
TouchHandleOrientation orientation,
« base/logging_unittest.cc ('K') | « base/logging_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698