1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
ash / components / arc / intent_helper / control_camera_app_delegate.h [blame]
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_COMPONENTS_ARC_INTENT_HELPER_CONTROL_CAMERA_APP_DELEGATE_H_
#define ASH_COMPONENTS_ARC_INTENT_HELPER_CONTROL_CAMERA_APP_DELEGATE_H_
#include <string>
namespace arc {
class ControlCameraAppDelegate {
public:
virtual ~ControlCameraAppDelegate() = default;
// Launches the camera app from Android camera intent with the intent
// information as url |queries|. |task_id| represents the id of the caller
// task in ARC.
virtual void LaunchCameraApp(const std::string& queries,
bool launch_in_dialog,
int32_t task_id) = 0;
// Closes the camera app.
virtual void CloseCameraApp() = 0;
// Checks if Chrome Camera App is enabled.
virtual bool IsCameraAppEnabled() = 0;
};
} // namespace arc
#endif // ASH_COMPONENTS_ARC_INTENT_HELPER_CONTROL_CAMERA_APP_DELEGATE_H_