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

Side by Side Diff: generated/googleapis/lib/pagespeedonline/v2.dart

Issue 2039113004: Api-roll 37: 2016-06-06 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 4 years, 6 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 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis.pagespeedonline.v2; 3 library googleapis.pagespeedonline.v2;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:async' as async; 6 import 'dart:async' as async;
7 import 'dart:convert' as convert; 7 import 'dart:convert' as convert;
8 8
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
10 import 'package:crypto/crypto.dart' as crypto;
11 import 'package:http/http.dart' as http; 10 import 'package:http/http.dart' as http;
12 11
13 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
14 ApiRequestError, DetailedApiRequestError; 13 ApiRequestError, DetailedApiRequestError;
15 14
16 const core.String USER_AGENT = 'dart-api-client pagespeedonline/v2'; 15 const core.String USER_AGENT = 'dart-api-client pagespeedonline/v2';
17 16
18 /** 17 /**
19 * Analyzes the performance of a web page and provides tailored suggestions to 18 * Analyzes the performance of a web page and provides tailored suggestions to
20 * make that page faster. 19 * make that page faster.
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 _json["width"] = width; 348 _json["width"] = width;
350 } 349 }
351 return _json; 350 return _json;
352 } 351 }
353 } 352 }
354 353
355 class PagespeedApiImageV2 { 354 class PagespeedApiImageV2 {
356 /** Image data base64 encoded. */ 355 /** Image data base64 encoded. */
357 core.String data; 356 core.String data;
358 core.List<core.int> get dataAsBytes { 357 core.List<core.int> get dataAsBytes {
359 return crypto.CryptoUtils.base64StringToBytes(data); 358 return convert.BASE64.decode(data);
360 } 359 }
361 360
362 void set dataAsBytes(core.List<core.int> _bytes) { 361 void set dataAsBytes(core.List<core.int> _bytes) {
363 data = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); 362 data = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "- ");
364 } 363 }
365 /** Height of screenshot in pixels. */ 364 /** Height of screenshot in pixels. */
366 core.int height; 365 core.int height;
367 /** Unique string key, if any, identifying this image. */ 366 /** Unique string key, if any, identifying this image. */
368 core.String key; 367 core.String key;
369 /** Mime type of image data (e.g. "image/jpeg"). */ 368 /** Mime type of image data (e.g. "image/jpeg"). */
370 core.String mimeType; 369 core.String mimeType;
371 /** 370 /**
372 * The region of the page that is captured by this image, with dimensions 371 * The region of the page that is captured by this image, with dimensions
373 * measured in CSS pixels. 372 * measured in CSS pixels.
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
885 } 884 }
886 if (title != null) { 885 if (title != null) {
887 _json["title"] = title; 886 _json["title"] = title;
888 } 887 }
889 if (version != null) { 888 if (version != null) {
890 _json["version"] = (version).toJson(); 889 _json["version"] = (version).toJson();
891 } 890 }
892 return _json; 891 return _json;
893 } 892 }
894 } 893 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/pagespeedonline/v1.dart ('k') | generated/googleapis/lib/prediction/v1_6.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698