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

Unified Diff: Source/bindings/common/AbstractArrayValue.h

Issue 1532413002: Added Dartium changes onto 45.0.2454.104 (Closed) Base URL: http://src.chromium.org/blink/branches/chromium/2454
Patch Set: Created 5 years 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 | « Source/bindings/bindings.gypi ('k') | Source/bindings/common/AbstractScriptPromise.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/common/AbstractArrayValue.h
diff --git a/public/platform/WebGestureDevice.h b/Source/bindings/common/AbstractArrayValue.h
similarity index 72%
copy from public/platform/WebGestureDevice.h
copy to Source/bindings/common/AbstractArrayValue.h
index 41b8856c33ead8a53fa0fe2346f1bd0d24dce0c5..2d1e89be1bb719ec91d481d557c3e8ce249d49a6 100644
--- a/public/platform/WebGestureDevice.h
+++ b/Source/bindings/common/AbstractArrayValue.h
@@ -23,16 +23,27 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebGestureDevice_h
-#define WebGestureDevice_h
+#ifndef AbstractArrayValue_h
+#define AbstractArrayValue_h
+
+#include "wtf/Noncopyable.h"
+#include "wtf/RefCounted.h"
namespace blink {
-enum WebGestureDevice {
- WebGestureDeviceTouchpad,
- WebGestureDeviceTouchscreen,
+class Dictionary;
+
+class AbstractArrayValue : public RefCounted<AbstractArrayValue> {
+ WTF_MAKE_NONCOPYABLE(AbstractArrayValue);
+protected:
+ AbstractArrayValue() { }
+public:
+ virtual ~AbstractArrayValue() { }
+ virtual bool isUndefinedOrNull() const = 0;
+ virtual bool length(size_t&) const = 0;
+ virtual bool get(size_t index, Dictionary&) const = 0;
};
-} // namespace blink
+}
-#endif // WebGestureDevice_h
+#endif // AbstractArrayValue_h
« no previous file with comments | « Source/bindings/bindings.gypi ('k') | Source/bindings/common/AbstractScriptPromise.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698