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

Unified Diff: Source/core/rendering/compositing/CompositedSelectionBound.h

Issue 454643002: Route selection bounds updates through WebLayerTreeView (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix bug in tests Created 6 years, 3 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: Source/core/rendering/compositing/CompositedSelectionBound.h
diff --git a/Source/platform/fonts/FontPlatformFeatures.h b/Source/core/rendering/compositing/CompositedSelectionBound.h
similarity index 77%
copy from Source/platform/fonts/FontPlatformFeatures.h
copy to Source/core/rendering/compositing/CompositedSelectionBound.h
index d8410893fad19b673ea06fde22b21ec86d77c950..85d85b310fd96283af913dc5c90f263efaf6e380 100644
--- a/Source/platform/fonts/FontPlatformFeatures.h
+++ b/Source/core/rendering/compositing/CompositedSelectionBound.h
@@ -28,19 +28,31 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef FontPlatformFeatures_h
-#define FontPlatformFeatures_h
+#ifndef CompositedSelectionBound_h
+#define CompositedSelectionBound_h
-#include "platform/PlatformExport.h"
+#include "platform/geometry/FloatPoint.h"
+#include "platform/graphics/GraphicsLayer.h"
namespace blink {
-class FontPlatformFeatures {
-public:
- static bool canExpandAroundIdeographsInComplexText();
+struct CompositedSelectionBound {
+ enum Type {
+ Caret,
+ SelectionLeft,
+ SelectionRight
+ };
-private:
- FontPlatformFeatures();
+ CompositedSelectionBound()
+ : type(Caret)
+ , layer(nullptr)
+ {
+ }
+
+ Type type;
+ GraphicsLayer* layer;
+ FloatPoint edgeTopInLayer;
chrishtr 2014/09/17 16:41:33 These deserve descriptive comments.
trchen 2014/09/17 19:34:16 Acknowledged.
+ FloatPoint edgeBottomInLayer;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698