OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 15 matching lines...) Expand all Loading... |
26 #ifndef WebIDBKey_h | 26 #ifndef WebIDBKey_h |
27 #define WebIDBKey_h | 27 #define WebIDBKey_h |
28 | 28 |
29 #include "WebCommon.h" | 29 #include "WebCommon.h" |
30 #include "WebData.h" | 30 #include "WebData.h" |
31 #include "WebIDBTypes.h" | 31 #include "WebIDBTypes.h" |
32 #include "WebPrivatePtr.h" | 32 #include "WebPrivatePtr.h" |
33 #include "WebString.h" | 33 #include "WebString.h" |
34 #include "WebVector.h" | 34 #include "WebVector.h" |
35 | 35 |
36 namespace WebCore { class IDBKey; } | 36 namespace blink { class IDBKey; } |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
40 class WebIDBKey { | 40 class WebIDBKey { |
41 public: | 41 public: |
42 // Please use one of the factory methods. This is public only to allow WebVe
ctor. | 42 // Please use one of the factory methods. This is public only to allow WebVe
ctor. |
43 WebIDBKey() { } | 43 WebIDBKey() { } |
44 ~WebIDBKey() { reset(); } | 44 ~WebIDBKey() { reset(); } |
45 | 45 |
46 BLINK_EXPORT static WebIDBKey createArray(const WebVector<WebIDBKey>&); | 46 BLINK_EXPORT static WebIDBKey createArray(const WebVector<WebIDBKey>&); |
(...skipping 23 matching lines...) Expand all Loading... |
70 | 70 |
71 BLINK_EXPORT WebIDBKeyType keyType() const; | 71 BLINK_EXPORT WebIDBKeyType keyType() const; |
72 BLINK_EXPORT bool isValid() const; | 72 BLINK_EXPORT bool isValid() const; |
73 BLINK_EXPORT WebVector<WebIDBKey> array() const; // Only valid for ArrayType
. | 73 BLINK_EXPORT WebVector<WebIDBKey> array() const; // Only valid for ArrayType
. |
74 BLINK_EXPORT WebData binary() const; // Only valid for BinaryType. | 74 BLINK_EXPORT WebData binary() const; // Only valid for BinaryType. |
75 BLINK_EXPORT WebString string() const; // Only valid for StringType. | 75 BLINK_EXPORT WebString string() const; // Only valid for StringType. |
76 BLINK_EXPORT double date() const; // Only valid for DateType. | 76 BLINK_EXPORT double date() const; // Only valid for DateType. |
77 BLINK_EXPORT double number() const; // Only valid for NumberType. | 77 BLINK_EXPORT double number() const; // Only valid for NumberType. |
78 | 78 |
79 #if BLINK_IMPLEMENTATION | 79 #if BLINK_IMPLEMENTATION |
80 WebIDBKey(WebCore::IDBKey*); | 80 WebIDBKey(blink::IDBKey*); |
81 WebIDBKey& operator=(WebCore::IDBKey*); | 81 WebIDBKey& operator=(blink::IDBKey*); |
82 operator WebCore::IDBKey*() const; | 82 operator blink::IDBKey*() const; |
83 #endif | 83 #endif |
84 | 84 |
85 private: | 85 private: |
86 WebPrivatePtr<WebCore::IDBKey> m_private; | 86 WebPrivatePtr<blink::IDBKey> m_private; |
87 }; | 87 }; |
88 | 88 |
89 } // namespace blink | 89 } // namespace blink |
90 | 90 |
91 #endif // WebIDBKey_h | 91 #endif // WebIDBKey_h |
OLD | NEW |