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

Unified Diff: ui/gfx/selection_bound.cc

Issue 2034863002: Move SelectionBound from ui/base/touch to ui/gfx to be used by cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: ui/gfx/selection_bound.cc
diff --git a/ui/base/touch/selection_bound.cc b/ui/gfx/selection_bound.cc
similarity index 95%
rename from ui/base/touch/selection_bound.cc
rename to ui/gfx/selection_bound.cc
index 036bc6f9051aa8937c923e4cbf01aa97877634a7..9be1c6062e8d11149a106a0278a4db58397ce94d 100644
--- a/ui/base/touch/selection_bound.cc
+++ b/ui/gfx/selection_bound.cc
@@ -5,20 +5,18 @@
#include <algorithm>
#include "base/macros.h"
-#include "ui/base/touch/selection_bound.h"
#include "ui/gfx/geometry/point_conversions.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/rect_f.h"
+#include "ui/gfx/selection_bound.h"
-namespace ui {
+namespace gfx {
-SelectionBound::SelectionBound() : type_(EMPTY), visible_(false) {
-}
+SelectionBound::SelectionBound() : type_(EMPTY), visible_(false) {}
SelectionBound::SelectionBound(const SelectionBound& other) = default;
-SelectionBound::~SelectionBound() {
-}
+SelectionBound::~SelectionBound() {}
void SelectionBound::SetEdgeTop(const gfx::PointF& value) {
edge_top_ = value;
@@ -82,4 +80,4 @@ gfx::RectF RectFBetweenSelectionBounds(const SelectionBound& b1,
return gfx::RectF(top_left, gfx::SizeF(diff.x(), diff.y()));
}
-} // namespace ui
+} // namespace gfx

Powered by Google App Engine
This is Rietveld 408576698