Doris Liu | 6827ce2 | 2013-03-12 19:24:28 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2013 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package com.android.camera; |
| 18 | |
| 19 | import android.view.View; |
| 20 | |
| 21 | import com.android.camera.ShutterButton.OnShutterButtonListener; |
| 22 | |
| 23 | public interface VideoController extends OnShutterButtonListener { |
| 24 | |
| 25 | public void onReviewDoneClicked(View view); |
| 26 | public void onReviewCancelClicked(View viwe); |
| 27 | public void onReviewPlayClicked(View view); |
| 28 | |
| 29 | public boolean isVideoCaptureIntent(); |
Doris Liu | 69ef5ea | 2013-05-07 13:48:10 -0700 | [diff] [blame] | 30 | public boolean isInReviewMode(); |
Doris Liu | 6827ce2 | 2013-03-12 19:24:28 -0700 | [diff] [blame] | 31 | public int onZoomChanged(int index); |
| 32 | |
| 33 | public void onSingleTapUp(View view, int x, int y); |
| 34 | |
| 35 | public void stopPreview(); |
Doris Liu | 44ab147 | 2013-06-07 18:04:57 -0700 | [diff] [blame] | 36 | |
| 37 | public void updateCameraOrientation(); |
Angus Kong | 395ee2d | 2013-07-15 12:42:41 -0700 | [diff] [blame] | 38 | |
| 39 | // Callbacks for camera preview UI events. |
| 40 | public void onPreviewUIReady(); |
| 41 | public void onPreviewUIDestroyed(); |
Doris Liu | 6827ce2 | 2013-03-12 19:24:28 -0700 | [diff] [blame] | 42 | } |