[Release] wrt_0.8.274
[platform/framework/web/wrt.git] / src / wrt-client / auto_rotation_support.h
1 /*
2   * Copyright 2013  Samsung Electronics Co., Ltd
3   *
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
7   *
8   *     http://floralicense.org/license/
9   *
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.
15   */
16 /**
17  * @file    auto_rotation_support.h
18  * @author  Jihoon Chung (jihoon.chung@samsung.com)
19  * @version 1.0
20  * @brief   header file to support auto rotation of web application
21  */
22 #ifndef AUTO_ROTATION_SUPPORT_H_
23 #define AUTO_ROTATION_SUPPORT_H_
24
25 #include <Elementary.h>
26 #include <splash_screen_support.h>
27
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
33
34 #endif // AUTO_ROTATION_SUPPORT_H_