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

Unified Diff: public/platform/WebBluetoothError.h

Issue 650613005: bluetooth: Initial WebBluetooth & WebBluetoothError. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: New 3 patch approach, WebBluetooth and WebBluetooth Error only. Created 6 years, 1 month 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 | « public/platform/WebBluetooth.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebBluetoothError.h
diff --git a/public/platform/WebGeofencingError.h b/public/platform/WebBluetoothError.h
similarity index 56%
copy from public/platform/WebGeofencingError.h
copy to public/platform/WebBluetoothError.h
index ccdc743c8d9e46c45f717d8d44b7d50410ff4a87..e706124af3340e3a95704f737dc3ef2cbb0b5abe 100644
--- a/public/platform/WebGeofencingError.h
+++ b/public/platform/WebBluetoothError.h
@@ -2,21 +2,21 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef WebGeofencingError_h
-#define WebGeofencingError_h
+#ifndef WebBluetoothError_h
+#define WebBluetoothError_h
#include "WebString.h"
namespace blink {
-struct WebGeofencingError {
+// Error object when a bluetooth request can not be satisfied.
+struct WebBluetoothError {
enum ErrorType {
- ErrorTypeAbort = 0,
- ErrorTypeUnknown,
- ErrorTypeLast = ErrorTypeUnknown
+ NotFoundError,
+ SecurityError
};
- WebGeofencingError(ErrorType errorType, const WebString& message)
+ WebBluetoothError(ErrorType errorType, const WebString& message)
: errorType(errorType)
, message(message)
{
@@ -28,4 +28,4 @@ struct WebGeofencingError {
} // namespace blink
-#endif // WebGeofencingError_h
+#endif // WebBluetoothError_h
« no previous file with comments | « public/platform/WebBluetooth.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698