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

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: Meh Created 4 years, 8 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 | « base/task_scheduler/task_traits.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 ad81711ac6b20572cf153cf085ee61d529ef593f..36cd7e2e55630714cded784b9b3d053725d716bd 100644
--- a/ui/touch_selection/touch_handle.cc
+++ b/ui/touch_selection/touch_handle.cc
@@ -45,23 +45,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,
« no previous file with comments | « base/task_scheduler/task_traits.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698