• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef FRAMEWORKS_BRIDGE_DECLARATIVE_FRONTEND_JS_VIEW_JS_PREVIEWER_MOCK_H
17 #define FRAMEWORKS_BRIDGE_DECLARATIVE_FRONTEND_JS_VIEW_JS_PREVIEWER_MOCK_H
18 
19 #include "core/components/text/text_component_v2.h"
20 #include "frameworks/bridge/declarative_frontend/jsview/js_container_base.h"
21 #include "frameworks/bridge/declarative_frontend/jsview/js_interactable_view.h"
22 #include "frameworks/bridge/declarative_frontend/jsview/js_utils.h"
23 #include "frameworks/bridge/declarative_frontend/jsview/js_view_abstract.h"
24 
25 namespace OHOS::Ace::Framework {
26 
27 class JSForm : public JSViewAbstract, public JSInteractableView {
28 public:
29     static void Create(const JSCallbackInfo& info);
30     static void Mock(const JSCallbackInfo& info);
31     static void JSBind(BindingTarget globalObj);
32 };
33 
34 class JSRichText : public JSViewAbstract {
35 public:
36     static void Create(const JSCallbackInfo& info);
37     static void Mock(const JSCallbackInfo& info);
38     static void JSBind(BindingTarget globalObj);
39 };
40 
41 class JSXComponent : public JSContainerBase {
42 public:
43     static void Create(const JSCallbackInfo& info);
44     static void Mock(const JSCallbackInfo& info);
45     static void JSBind(BindingTarget globalObj);
46 };
47 
48 class JSXComponentController : public Referenced {
49 public:
50     static void JSBind(BindingTarget globalObj);
51     static void Mock(const JSCallbackInfo& args);
52 };
53 
54 class JSWeb : public JSContainerBase {
55 public:
56     static void Create(const JSCallbackInfo& info);
57     static void Mock(const JSCallbackInfo& info);
58     static void JSBind(BindingTarget globalObj);
59 };
60 
61 class JSWebController : public Referenced {
62 public:
63     static void JSBind(BindingTarget globalObj);
64 };
65 
66 class JSVideo : public JSViewAbstract, public JSInteractableView {
67 public:
68     static void Create(const JSCallbackInfo& info);
69     static void Mock(const JSCallbackInfo& info);
70     static void JSBind(BindingTarget globalObj);
71 };
72 
73 class JSVideoController : public Referenced {
74 public:
75     static void JSBind(BindingTarget globalObj);
76     static void Mock(const JSCallbackInfo& info);
77 };
78 
79 class JSPlugin : public JSViewAbstract, public JSInteractableView {
80 public:
81     static void Create(const JSCallbackInfo& info);
82     static void Mock(const JSCallbackInfo& info);
83     static void JSBind(BindingTarget globalObj);
84 };
85 } // namespace OHOS::Ace::Framework
86 #endif // FRAMEWORKS_BRIDGE_DECLARATIVE_FRONTEND_JS_VIEW_JS_PREVIEWER_MOCK_H
87