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 12 matching lines...) Expand all Loading... |
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #include "config.h" | 26 #include "config.h" |
27 #include "public/platform/WebIDBKeyRange.h" | 27 #include "public/platform/WebIDBKeyRange.h" |
28 | 28 |
29 #include "modules/indexeddb/IDBKey.h" | 29 #include "modules/indexeddb/IDBKey.h" |
30 #include "modules/indexeddb/IDBKeyRange.h" | 30 #include "modules/indexeddb/IDBKeyRange.h" |
31 #include "public/platform/WebIDBKey.h" | 31 #include "public/platform/WebIDBKey.h" |
32 | 32 |
33 using namespace blink; | |
34 | |
35 namespace blink { | 33 namespace blink { |
36 | 34 |
37 void WebIDBKeyRange::assign(const WebIDBKeyRange& other) | 35 void WebIDBKeyRange::assign(const WebIDBKeyRange& other) |
38 { | 36 { |
39 m_private = other.m_private; | 37 m_private = other.m_private; |
40 } | 38 } |
41 | 39 |
42 void WebIDBKeyRange::assign(const WebIDBKey& lower, const WebIDBKey& upper, bool
lowerOpen, bool upperOpen) | 40 void WebIDBKeyRange::assign(const WebIDBKey& lower, const WebIDBKey& upper, bool
lowerOpen, bool upperOpen) |
43 { | 41 { |
44 if (!lower.isValid() && !upper.isValid()) | 42 if (!lower.isValid() && !upper.isValid()) |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 m_private = value; | 84 m_private = value; |
87 return *this; | 85 return *this; |
88 } | 86 } |
89 | 87 |
90 WebIDBKeyRange::operator IDBKeyRange*() const | 88 WebIDBKeyRange::operator IDBKeyRange*() const |
91 { | 89 { |
92 return m_private.get(); | 90 return m_private.get(); |
93 } | 91 } |
94 | 92 |
95 } // namespace blink | 93 } // namespace blink |
OLD | NEW |