const char* kProxyExceptionList =
"db/menu/network/server_network_settings/proxy_exceptional_address";
const char* kProxyVconfKey = "memory/dnet/proxy";
+const char* kRotationState = "db/sysman/rotation_state";
const char* kWebAppProxyVconfKey = "db/webapp/proxy";
// metadata
delete file_name;
}
+int GetTVRotationDegree() {
+ auto rotation_state = VconfHandle(kRotationState).Int();
+ switch (rotation_state) {
+ case DISPLAY_ROTATOR_ORIENTATION_PORTRAIT:
+ return 270;
+ case DISPLAY_ROTATOR_ORIENTATION_LANDSCAPE:
+ return 0;
+ case DISPLAY_ROTATOR_ORIENTATION_PORTRAIT_R:
+ return 90;
+ case DISPLAY_ROTATOR_ORIENTATION_LANDSCAPE_R:
+ return 180;
+ default:
+ break;
+ }
+ return 0;
+}
+
WRTNativeWindow::ScreenOrientation ConvertRotatorOrientation(
display_rotator_orientation_e rotator_orientation) {
switch (rotator_orientation) {
} else if (meta_data_info.GetValue(kScreenOrientation) == "all") {
LOG(INFO) << "ScreenOrientation is all";
SetAutoRotation();
+ rotation_ = GetTVRotationDegree();
+ LOG(INFO) << "rotation_ : " << rotation_;
}
}
bool is_main_native_window_ = false;
bool is_enabled_ = true;
content::WebContents* web_contents_;
+ int rotation_;
private:
static void OnHWBackKey(void*, Evas_Object*, void*);
int handler_id_;
int rotation_handler_id_;
- int rotation_;
ScreenOrientation natural_orientation_;
std::map<int, RotationHandler> handler_table_;
std::string title_;