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

Unified Diff: Source/core/layout/compositing/CompositedSelectionBounds.h

Issue 929213004: Plumb selection bounds as a single unit (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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/layout/compositing/CompositedSelectionBounds.h
diff --git a/Source/modules/crypto/AesKeyAlgorithm.h b/Source/core/layout/compositing/CompositedSelectionBounds.h
similarity index 75%
copy from Source/modules/crypto/AesKeyAlgorithm.h
copy to Source/core/layout/compositing/CompositedSelectionBounds.h
index c1c8bd16010c6c4050b2bebe5238198c22e2d79f..578a0a5796a66af24f333ee6d35fde75642ef779 100644
--- a/Source/modules/crypto/AesKeyAlgorithm.h
+++ b/Source/core/layout/compositing/CompositedSelectionBounds.h
@@ -28,30 +28,31 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AesKeyAlgorithm_h
-#define AesKeyAlgorithm_h
+#ifndef CompositedSelectionBounds_h
+#define CompositedSelectionBounds_h
-#include "bindings/core/v8/ScriptWrappable.h"
-#include "modules/crypto/KeyAlgorithm.h"
-#include "platform/heap/Handle.h"
-#include "wtf/Forward.h"
+#include "core/layout/compositing/CompositedSelectionBound.h"
+#include "platform/geometry/FloatPoint.h"
+#include "platform/graphics/GraphicsLayer.h"
namespace blink {
-class AesKeyAlgorithm : public KeyAlgorithm {
-public:
- static AesKeyAlgorithm* create(const WebCryptoKeyAlgorithm&);
+struct CompositedSelectionBound {
- unsigned short length();
+ CompositedSelectionBounds()
+ : length(0)
+ , isEditable(false)
+ , isUserTriggered(false)
+ {
+ }
- DECLARE_VIRTUAL_TRACE();
-
-private:
- explicit AesKeyAlgorithm(const WebCryptoKeyAlgorithm&);
+ CompositedSelectionBound start;
+ CompositedSelectionBound end;
+ size_t length;
+ bool isEditable;
+ bool isUserTriggered;
};
-DEFINE_KEY_ALGORITHM_TYPE_CASTS(AesKeyAlgorithm);
-
} // namespace blink
#endif

Powered by Google App Engine
This is Rietveld 408576698