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

Side by Side Diff: Source/web/WebIDBKeyPath.cpp

Issue 398673003: Rename WebCore namespace to blink in bindings and web (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 | « Source/web/WebIDBKey.cpp ('k') | Source/web/WebIDBKeyRange.cpp » ('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) 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 13 matching lines...) Expand all
24 */ 24 */
25 25
26 #include "config.h" 26 #include "config.h"
27 #include "public/platform/WebIDBKeyPath.h" 27 #include "public/platform/WebIDBKeyPath.h"
28 28
29 #include "modules/indexeddb/IDBKeyPath.h" 29 #include "modules/indexeddb/IDBKeyPath.h"
30 #include "public/platform/WebString.h" 30 #include "public/platform/WebString.h"
31 #include "public/platform/WebVector.h" 31 #include "public/platform/WebVector.h"
32 #include "wtf/Vector.h" 32 #include "wtf/Vector.h"
33 33
34 using namespace WebCore; 34 using namespace blink;
35 35
36 namespace blink { 36 namespace blink {
37 37
38 WebIDBKeyPath WebIDBKeyPath::create(const WebString& keyPath) 38 WebIDBKeyPath WebIDBKeyPath::create(const WebString& keyPath)
39 { 39 {
40 return WebIDBKeyPath(IDBKeyPath(keyPath)); 40 return WebIDBKeyPath(IDBKeyPath(keyPath));
41 } 41 }
42 42
43 WebIDBKeyPath WebIDBKeyPath::create(const WebVector<WebString>& keyPath) 43 WebIDBKeyPath WebIDBKeyPath::create(const WebVector<WebString>& keyPath)
44 { 44 {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 return m_private->array(); 83 return m_private->array();
84 } 84 }
85 85
86 WebString WebIDBKeyPath::string() const 86 WebString WebIDBKeyPath::string() const
87 { 87 {
88 ASSERT(m_private.get()); 88 ASSERT(m_private.get());
89 ASSERT(m_private->type() == IDBKeyPath::StringType); 89 ASSERT(m_private->type() == IDBKeyPath::StringType);
90 return m_private->string(); 90 return m_private->string();
91 } 91 }
92 92
93 WebIDBKeyPath::WebIDBKeyPath(const WebCore::IDBKeyPath& value) 93 WebIDBKeyPath::WebIDBKeyPath(const blink::IDBKeyPath& value)
94 : m_private(new IDBKeyPath(value)) 94 : m_private(new IDBKeyPath(value))
95 { 95 {
96 ASSERT(m_private.get()); 96 ASSERT(m_private.get());
97 } 97 }
98 98
99 WebIDBKeyPath& WebIDBKeyPath::operator=(const WebCore::IDBKeyPath& value) 99 WebIDBKeyPath& WebIDBKeyPath::operator=(const blink::IDBKeyPath& value)
100 { 100 {
101 ASSERT(m_private.get()); 101 ASSERT(m_private.get());
102 m_private.reset(new IDBKeyPath(value)); 102 m_private.reset(new IDBKeyPath(value));
103 return *this; 103 return *this;
104 } 104 }
105 105
106 WebIDBKeyPath::operator const WebCore::IDBKeyPath&() const 106 WebIDBKeyPath::operator const blink::IDBKeyPath&() const
107 { 107 {
108 ASSERT(m_private.get()); 108 ASSERT(m_private.get());
109 return *(m_private.get()); 109 return *(m_private.get());
110 } 110 }
111 111
112 } // namespace blink 112 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebIDBKey.cpp ('k') | Source/web/WebIDBKeyRange.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698