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

Unified Diff: ui/gfx/selection_bound.h

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: Updated views_unittests 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
« no previous file with comments | « ui/gfx/gfx_tests.gyp ('k') | ui/gfx/selection_bound.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/selection_bound.h
diff --git a/ui/base/touch/selection_bound.h b/ui/gfx/selection_bound.h
similarity index 61%
rename from ui/base/touch/selection_bound.h
rename to ui/gfx/selection_bound.h
index 4636ce11261473d4facd6acdbac21188c7846cb2..ac66466597382a72eff0ff948ad17841c04fa0c2 100644
--- a/ui/base/touch/selection_bound.h
+++ b/ui/gfx/selection_bound.h
@@ -2,30 +2,22 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef UI_BASE_TOUCH_SELECTION_BOUND_H_
-#define UI_BASE_TOUCH_SELECTION_BOUND_H_
+#ifndef UI_GFX_SELECTION_BOUND_H_
+#define UI_GFX_SELECTION_BOUND_H_
-#include "ui/base/ui_base_export.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/point_f.h"
+#include "ui/gfx/gfx_export.h"
namespace gfx {
+
class Rect;
class RectF;
-}
-
-namespace ui {
// Bound of a selection end-point.
-class UI_BASE_EXPORT SelectionBound {
+class GFX_EXPORT SelectionBound {
public:
- enum Type {
- LEFT,
- RIGHT,
- CENTER,
- EMPTY,
- LAST = EMPTY
- };
+ enum Type { LEFT, RIGHT, CENTER, EMPTY, LAST = EMPTY };
SelectionBound();
SelectionBound(const SelectionBound& other);
@@ -59,17 +51,17 @@ class UI_BASE_EXPORT SelectionBound {
bool visible_;
};
-UI_BASE_EXPORT bool operator==(const SelectionBound& lhs,
- const SelectionBound& rhs);
-UI_BASE_EXPORT bool operator!=(const SelectionBound& lhs,
- const SelectionBound& rhs);
+GFX_EXPORT bool operator==(const SelectionBound& lhs,
+ const SelectionBound& rhs);
+GFX_EXPORT bool operator!=(const SelectionBound& lhs,
+ const SelectionBound& rhs);
-UI_BASE_EXPORT gfx::Rect RectBetweenSelectionBounds(const SelectionBound& b1,
- const SelectionBound& b2);
+GFX_EXPORT gfx::Rect RectBetweenSelectionBounds(const SelectionBound& b1,
+ const SelectionBound& b2);
-UI_BASE_EXPORT gfx::RectF RectFBetweenSelectionBounds(const SelectionBound& b1,
- const SelectionBound& b2);
+GFX_EXPORT gfx::RectF RectFBetweenSelectionBounds(const SelectionBound& b1,
+ const SelectionBound& b2);
} // namespace ui
-#endif // UI_BASE_TOUCH_SELECTION_BOUND_H_
+#endif // UI_GFX_SELECTION_BOUND_H_
« no previous file with comments | « ui/gfx/gfx_tests.gyp ('k') | ui/gfx/selection_bound.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698