
If gr-diff recognizes that the file difference it's representing is between images, it uses a different diff-builder that displays images in a side-by-side-manner. In this case gr-diff will also make requests for the image data itself, which it can pass down into the image-based diff-builder. Adds methods to gr-rest-api-interface to support rendering the data relevant to image diffs. For images that are revisions of the current change, provides "getChangeFileContents". For images that come from the parent tree (i.e. if the basePatchNum is "PARENT") the interface provides "getCommitInfo" to determine the SHA of the parent commit, and "getCommitFileContents" which can get file contents for a given commit. Bug: Issue 3822 Change-Id: I9be025b4e549fca97c87cdbeede6cb64dea5eac0
24 lines
828 B
HTML
24 lines
828 B
HTML
<!--
|
|
Copyright (C) 2016 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<link rel="import" href="../../../bower_components/polymer/polymer.html">
|
|
<script src="../../../bower_components/fetch/fetch.js"></script>
|
|
|
|
<dom-module id="gr-rest-api-interface">
|
|
<script src="gr-rest-api-interface.js"></script>
|
|
</dom-module>
|
|
|