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 MockViewModule.h
18 * @author Tomasz Iwanek (t.iwanek@samsung.com)
19 * @brief Mock for view module
22 #ifndef MOCKVIEWMODULE_H
23 #define MOCKVIEWMODULE_H
25 #include<i_view_module.h>
27 class MockViewModule : public ViewModule::IViewModule
31 bool createWebView(Ewk_Context* context,
33 void prepareView(WidgetModel *, const std::string &);
38 void setWidgetUrl(const std::string &);
39 void resetWidgetFromSuspend();
40 void resetWidgetFromResume();
42 void reloadStartPage();
43 Evas_Object* getCurrentWebview();
44 void fireJavascriptEvent(int event, void* data);
45 void setUserCallbacks(const WRT::UserDelegatesPtr& cbs);
46 void checkSyncMessageFromBundle(
50 void checkAsyncMessageFromBundle(
53 void downloadData(const char* url);
54 void activateVibration(bool on, uint64_t time);
57 #endif // MOCKVIEWMODULE_H