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

Side by Side Diff: lib/firebase_auth.dart

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: update pubspec/changelog Created 5 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 unified diff | Download patch
OLDNEW
1 // DO NOT EDIT: auto-generated with `pub run custom_element_apigen:update` 1 // DO NOT EDIT: auto-generated with `pub run custom_element_apigen:update`
2 2
3 /// Dart API for the polymer element `firebase_auth`. 3 /// Dart API for the polymer element `firebase_auth`.
4 @HtmlImport('firebase_auth_nodart.html') 4 @HtmlImport('firebase_auth_nodart.html')
5 library polymer_elements.lib.src.firebase_element.firebase_auth; 5 library polymer_elements.lib.src.firebase_element.firebase_auth;
6 6
7 import 'dart:html'; 7 import 'dart:html';
8 import 'dart:js' show JsArray, JsObject; 8 import 'dart:js' show JsArray, JsObject;
9 import 'package:web_components/web_components.dart'; 9 import 'package:web_components/web_components.dart';
10 import 'package:polymer_interop/polymer_interop.dart'; 10 import 'package:polymer_interop/polymer_interop.dart';
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 /// 90 ///
91 /// If the login is successful, the `login` event is fired, with `e.detail.use r` 91 /// If the login is successful, the `login` event is fired, with `e.detail.use r`
92 /// containing the authenticated user object from Firebase. 92 /// containing the authenticated user object from Firebase.
93 /// 93 ///
94 /// If login fails, the `error` event is fired, with `e.detail` containing err or 94 /// If login fails, the `error` event is fired, with `e.detail` containing err or
95 /// information supplied from Firebase. 95 /// information supplied from Firebase.
96 /// 96 ///
97 /// If the browswer supports `navigator.onLine` network status reporting and t he 97 /// If the browswer supports `navigator.onLine` network status reporting and t he
98 /// network is currently offline, the login attempt will be queued until the n etwork 98 /// network is currently offline, the login attempt will be queued until the n etwork
99 /// is restored. 99 /// is restored.
100 /// [params]: (optional)
101 /// [options]: (optional)
100 login(params, options) => 102 login(params, options) =>
101 jsElement.callMethod('login', [params, options]); 103 jsElement.callMethod('login', [params, options]);
102 104
103 /// Performs a logout attempt. 105 /// Performs a logout attempt.
104 /// 106 ///
105 /// If the login is successful, the `logout` event is fired. 107 /// If the login is successful, the `logout` event is fired.
106 /// 108 ///
107 /// If login fails, the `error` event is fired, with `e.detail` containing err or 109 /// If login fails, the `error` event is fired, with `e.detail` containing err or
108 /// information supplied from Firebase. 110 /// information supplied from Firebase.
109 /// 111 ///
(...skipping 14 matching lines...) Expand all
124 126
125 /// Sends a password reset email for a "password provider"-based user account. 127 /// Sends a password reset email for a "password provider"-based user account.
126 /// 128 ///
127 /// If the operation is successful, the `password-reset` event is fired. 129 /// If the operation is successful, the `password-reset` event is fired.
128 /// 130 ///
129 /// If the operation fails, the `error` event is fired, with `e.detail` 131 /// If the operation fails, the `error` event is fired, with `e.detail`
130 /// containing error information supplied from Firebase. 132 /// containing error information supplied from Firebase.
131 sendPasswordResetEmail(String email) => 133 sendPasswordResetEmail(String email) =>
132 jsElement.callMethod('sendPasswordResetEmail', [email]); 134 jsElement.callMethod('sendPasswordResetEmail', [email]);
133 } 135 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698