2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FWebCtrlIJavaScriptBridge.h
20 * @brief This is the header file for the %IJavaScriptBridge interface.
22 * This header file contains the declarations of the %IJavaScriptBridge interface.
24 * For more information on the class features, see <a href="../org.tizen.native.appprogramming/html/guide/web/controls_namespace.htm">Web Controls Guide</a>.
27 #ifndef _FWEB_CTRL_IJAVA_SCRIPT_BRIDGE_H_
28 #define _FWEB_CTRL_IJAVA_SCRIPT_BRIDGE_H_
30 #include <FBaseString.h>
32 namespace Tizen { namespace Web { namespace Json
35 }}} // Tizen::Web::Json
37 namespace Tizen { namespace Web { namespace Controls
41 * @interface IJavaScriptBridge
42 * @brief This interface provides a communication channel between JavaScript and native object.
46 * The %IJavaScriptBridge interface provides a communication channel between JavaScript and C++ object.
48 class _OSP_EXPORT_ IJavaScriptBridge
52 * This polymorphic destructor should be overridden if required. This way, the destructors of the derived classes are called when the destructor of this interface is called.
56 virtual ~IJavaScriptBridge(void) {}
59 * Called asynchronously on invocation request from JavaScript side through the requestToNative() method.
63 * @param[in] pArg The parameters delivered by JavaScript
65 virtual void HandleJavaScriptRequestN(Tizen::Web::Json::IJsonValue* pArg) = 0;
68 * Provides the name of %IJavaScriptBridge to identify each %IJavaScriptBridge
72 * @return The name of %IJavaScriptBridge
74 virtual Tizen::Base::String GetName(void) = 0;
78 // This method is for internal use only. Using this method can cause behavioral, security-related, and consistency-related issues in the application.
80 // Gets the Impl instance.
84 virtual void IJavaScriptBridge_Reserved1(void) {}
87 // This method is for internal use only. Using this method can cause behavioral, security-related, and consistency-related issues in the application.
89 // Gets the Impl instance.
93 virtual void IJavaScriptBridge_Reserved2(void) {}
96 // This method is for internal use only. Using this method can cause behavioral, security-related, and consistency-related issues in the application.
98 // Gets the Impl instance.
102 virtual void IJavaScriptBridge_Reserved3(void) {}
105 // This method is for internal use only. Using this method can cause behavioral, security-related, and consistency-related issues in the application.
107 // Gets the Impl instance.
111 virtual void IJavaScriptBridge_Reserved4(void) {}
114 // This method is for internal use only. Using this method can cause behavioral, security-related, and consistency-related issues in the application.
116 // Gets the Impl instance.
120 virtual void IJavaScriptBridge_Reserved5(void) {}
122 }; // IJavaScriptBridge
124 }}} // Tizen::Web::Controls
125 #endif // _FWEB_CTRL_IJAVA_SCRIPT_BRIDGE_H_