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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/dom/AutocompleteError.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/AutocompleteError.h
diff --git a/Source/core/dom/AutocompleteError.h b/Source/core/dom/AutocompleteError.h
new file mode 100644
index 0000000000000000000000000000000000000000..9fbfa201ab59df07fb899dae6b6f92f26174e70f
--- /dev/null
+++ b/Source/core/dom/AutocompleteError.h
@@ -0,0 +1,31 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef AutocompleteError_h
+#define AutocompleteError_h
+
+#include "core/dom/DOMException.h"
+#include "heap/Handle.h"
+#include "wtf/PassRefPtr.h"
+#include "wtf/RefCounted.h"
+
+namespace WebCore {
+
+class AutocompleteError : public DOMException {
+public:
+ static PassRefPtrWillBeRawPtr<AutocompleteError> create(const String& reason)
+ {
+ return adoptRefWillBeNoop(new AutocompleteError(reason));
+ }
+
+ const String& reason() const { return m_reason; }
+
+private:
+ explicit AutocompleteError(const String& reason);
+ const String m_reason;
+};
+
+} // namespace WebCore
+
+#endif // AutocompleteError_h
« 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