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

Side by Side Diff: public/platform/WebIDBKeyRange.h

Issue 401973003: Rename WebCore namespace to blink in Public (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « public/platform/WebIDBKeyPath.h ('k') | public/platform/WebIDBMetadata.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 11 matching lines...) Expand all
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
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 #ifndef WebIDBKeyRange_h 26 #ifndef WebIDBKeyRange_h
27 #define WebIDBKeyRange_h 27 #define WebIDBKeyRange_h
28 28
29 #include "WebCommon.h" 29 #include "WebCommon.h"
30 #include "WebPrivatePtr.h" 30 #include "WebPrivatePtr.h"
31 31
32 namespace WebCore { class IDBKeyRange; } 32 namespace blink { class IDBKeyRange; }
33 33
34 namespace blink { 34 namespace blink {
35 35
36 class WebIDBKey; 36 class WebIDBKey;
37 class WebString; 37 class WebString;
38 38
39 class WebIDBKeyRange { 39 class WebIDBKeyRange {
40 public: 40 public:
41 ~WebIDBKeyRange() { reset(); } 41 ~WebIDBKeyRange() { reset(); }
42 42
43 WebIDBKeyRange(const WebIDBKeyRange& keyRange) { assign(keyRange); } 43 WebIDBKeyRange(const WebIDBKeyRange& keyRange) { assign(keyRange); }
44 WebIDBKeyRange(const WebIDBKey& lower, const WebIDBKey& upper, bool lowerOpe n, bool upperOpen) { assign(lower, upper, lowerOpen, upperOpen); } 44 WebIDBKeyRange(const WebIDBKey& lower, const WebIDBKey& upper, bool lowerOpe n, bool upperOpen) { assign(lower, upper, lowerOpen, upperOpen); }
45 45
46 BLINK_EXPORT WebIDBKey lower() const; 46 BLINK_EXPORT WebIDBKey lower() const;
47 BLINK_EXPORT WebIDBKey upper() const; 47 BLINK_EXPORT WebIDBKey upper() const;
48 BLINK_EXPORT bool lowerOpen() const; 48 BLINK_EXPORT bool lowerOpen() const;
49 BLINK_EXPORT bool upperOpen() const; 49 BLINK_EXPORT bool upperOpen() const;
50 50
51 BLINK_EXPORT void assign(const WebIDBKeyRange&); 51 BLINK_EXPORT void assign(const WebIDBKeyRange&);
52 BLINK_EXPORT void assign(const WebIDBKey& lower, const WebIDBKey& upper, boo l lowerOpen, bool upperOpen); 52 BLINK_EXPORT void assign(const WebIDBKey& lower, const WebIDBKey& upper, boo l lowerOpen, bool upperOpen);
53 BLINK_EXPORT void reset(); 53 BLINK_EXPORT void reset();
54 54
55 #if BLINK_IMPLEMENTATION 55 #if BLINK_IMPLEMENTATION
56 WebIDBKeyRange(WebCore::IDBKeyRange*); 56 WebIDBKeyRange(blink::IDBKeyRange*);
57 WebIDBKeyRange& operator=(WebCore::IDBKeyRange*); 57 WebIDBKeyRange& operator=(blink::IDBKeyRange*);
58 operator WebCore::IDBKeyRange*() const; 58 operator blink::IDBKeyRange*() const;
59 #endif 59 #endif
60 60
61 private: 61 private:
62 WebPrivatePtr<WebCore::IDBKeyRange> m_private; 62 WebPrivatePtr<blink::IDBKeyRange> m_private;
63 }; 63 };
64 64
65 } // namespace blink 65 } // namespace blink
66 66
67 #endif // WebIDBKeyRange_h 67 #endif // WebIDBKeyRange_h
OLDNEW
« no previous file with comments | « public/platform/WebIDBKeyPath.h ('k') | public/platform/WebIDBMetadata.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698