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

Side by Side Diff: third_party/WebKit/Source/modules/indexeddb/IDBKeyRange.h

Issue 2388423003: reflow comments in modules/[fetch,indexeddb] (Closed)
Patch Set: rebase Created 4 years, 2 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
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 public: 44 public:
45 enum LowerBoundType { LowerBoundOpen, LowerBoundClosed }; 45 enum LowerBoundType { LowerBoundOpen, LowerBoundClosed };
46 enum UpperBoundType { UpperBoundOpen, UpperBoundClosed }; 46 enum UpperBoundType { UpperBoundOpen, UpperBoundClosed };
47 47
48 static IDBKeyRange* create(IDBKey* lower, 48 static IDBKeyRange* create(IDBKey* lower,
49 IDBKey* upper, 49 IDBKey* upper,
50 LowerBoundType lowerType, 50 LowerBoundType lowerType,
51 UpperBoundType upperType) { 51 UpperBoundType upperType) {
52 return new IDBKeyRange(lower, upper, lowerType, upperType); 52 return new IDBKeyRange(lower, upper, lowerType, upperType);
53 } 53 }
54 // Null if the script value is null or undefined, the range if it is one, othe rwise tries to convert to a key and throws if it fails. 54 // Null if the script value is null or undefined, the range if it is one,
55 // otherwise tries to convert to a key and throws if it fails.
55 static IDBKeyRange* fromScriptValue(ExecutionContext*, 56 static IDBKeyRange* fromScriptValue(ExecutionContext*,
56 const ScriptValue&, 57 const ScriptValue&,
57 ExceptionState&); 58 ExceptionState&);
58 59
59 DECLARE_TRACE(); 60 DECLARE_TRACE();
60 61
61 // Implement the IDBKeyRange IDL 62 // Implement the IDBKeyRange IDL
62 IDBKey* lower() const { return m_lower.get(); } 63 IDBKey* lower() const { return m_lower.get(); }
63 IDBKey* upper() const { return m_upper.get(); } 64 IDBKey* upper() const { return m_upper.get(); }
64 65
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 98
98 Member<IDBKey> m_lower; 99 Member<IDBKey> m_lower;
99 Member<IDBKey> m_upper; 100 Member<IDBKey> m_upper;
100 const LowerBoundType m_lowerType; 101 const LowerBoundType m_lowerType;
101 const UpperBoundType m_upperType; 102 const UpperBoundType m_upperType;
102 }; 103 };
103 104
104 } // namespace blink 105 } // namespace blink
105 106
106 #endif // IDBKeyRange_h 107 #endif // IDBKeyRange_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698