2 * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 * @file ewk_context_manager.h
18 * @author Yunchan Cho (yunchan.cho@samsung.com)
20 * @brief Declaration of EwkContextManager class.
21 * This file handles operation regarding Ewk_Context.
24 #ifndef EWK_CONTEXT_MANAGER_H
25 #define EWK_CONTEXT_MANAGER_H
28 #include <i_context_manager.h>
30 namespace ViewModule {
32 class EwkContextManager : public IContextManager {
35 const std::string& tizenAppId,
36 Ewk_Context* ewkContext,
37 ViewModule::IViewModulePtr viewModule);
38 Ewk_Context * getEwkContext() const;
39 void handleLowMemory();
46 void unsetCallbacks();
47 void setAutoFullscreenMode();
48 void setNetworkProxy();
50 // ewk context callback functions
51 static void messageFromInjectedBundleCallback(
56 static void didStartDownloadCallback(const char* downloadUrl, void* data);
57 static void vibrationClientStartCallback(uint64_t time, void* data);
58 static void vibrationClientStopCallback(void* data);
60 // vconf callback functions
61 static void vconfChangedCallback(keynode_t* keynode, void* data);
65 bool m_isInternalContext;
67 } // namespace ViewModule
69 #endif // EWK_CONTEXT_MANAGER_H