2 * Copyright 2013 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.1 (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://floralicense.org/license/
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 auto_rotation_support.h
18 * @author Jihoon Chung (jihoon.chung@samsung.com)
20 * @brief header file to support auto rotation of web application
22 #ifndef AUTO_ROTATION_SUPPORT_H_
23 #define AUTO_ROTATION_SUPPORT_H_
25 #include <Elementary.h>
26 #include <splash_screen_support.h>
28 namespace AutoRotationSupport {
29 bool setAutoRotation(Evas_Object* window, Evas_Smart_Cb callback, const void *data);
30 void unsetAutoRotation(Evas_Object* window, Evas_Smart_Cb callback);
31 void setOrientation(Evas_Object* window, Evas_Object* ewkView, SplashScreenSupport* splashScreen);
32 } // namespace AUTO_ROTATION_SUPPORT
34 #endif // AUTO_ROTATION_SUPPORT_H_