Skip to content

Commit

Permalink
Continuation of #179 (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
glpatcern authored Sep 13, 2022
1 parent dd6c85f commit 1dbd99f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
8 changes: 7 additions & 1 deletion cs3/gateway/v1beta1/gateway_api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -537,8 +537,14 @@ message OpenInAppRequest {
VIEW_MODE_VIEW_ONLY = 1;
// The resource can be downloaded.
VIEW_MODE_READ_ONLY = 2;
// The resource can be downloaded and updated.
// The resource can be downloaded and updated. The underlying application
// MUST be a fully capable editor to support this mode.
VIEW_MODE_READ_WRITE = 3;
// The resource can be downloaded and updated, but must be shown in
// preview mode. If the underlying application does not support a preview mode,
// or if in a view-only mode users are not allowed to switch to edit mode,
// then this mode MUST fall back to READ_WRITE.
VIEW_MODE_PREVIEW = 4;
}
ViewMode view_mode = 3;
// OPTIONAL.
Expand Down
12 changes: 11 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2474,7 +2474,17 @@ <h3 id="cs3.gateway.v1beta1.OpenInAppRequest.ViewMode">OpenInAppRequest.ViewMode
<tr>
<td>VIEW_MODE_READ_WRITE</td>
<td>3</td>
<td><p>The resource can be downloaded and updated.</p></td>
<td><p>The resource can be downloaded and updated. The underlying application
MUST be a fully capable editor to support this mode.</p></td>
</tr>

<tr>
<td>VIEW_MODE_PREVIEW</td>
<td>4</td>
<td><p>The resource can be downloaded and updated, but must be shown in
preview mode. If the underlying application does not support a preview mode,
or if in a view-only mode users are not allowed to switch to edit mode,
then this mode MUST fall back to READ_WRITE.</p></td>
</tr>

</tbody>
Expand Down

0 comments on commit 1dbd99f

Please sign in to comment.