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

Side by Side Diff: Source/core/dom/AutocompleteError.h

Issue 228783007: rAc: make requestAutocomplete() return a promise. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: merge Created 6 years, 8 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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/dom/AutocompleteError.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef AutocompleteError_h
6 #define AutocompleteError_h
7
8 #include "core/dom/DOMException.h"
9 #include "heap/Handle.h"
10 #include "wtf/PassRefPtr.h"
11 #include "wtf/RefCounted.h"
12
13 namespace WebCore {
14
15 class AutocompleteError : public DOMException {
16 public:
17 static PassRefPtrWillBeRawPtr<AutocompleteError> create(const String& reason )
18 {
19 return adoptRefWillBeNoop(new AutocompleteError(reason));
20 }
21
22 const String& reason() const { return m_reason; }
23
24 private:
25 explicit AutocompleteError(const String& reason);
26 const String m_reason;
27 };
28
29 } // namespace WebCore
30
31 #endif // AutocompleteError_h
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/dom/AutocompleteError.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698