}
}
-void EWebView::SendOrientationChangeEventIfNeeded(int orientation) {
- RenderViewHostImpl* rvhi = static_cast<RenderViewHostImpl*>(
- web_contents_->GetRenderViewHost());
-#warning "[M37] Fix screen orientation"
-#if 0
- //send new orientation value to RenderView Host to pass to renderer
- if(rvhi && rvhi->GetOrientation() != orientation) {
- switch(orientation) {
- case -90:
- case 0:
- case 90:
- case 180:
- rvhi->SendOrientationChangeEvent(orientation);
- break;
-
- default:
- NOTREACHED();
- break;
- }
- }
-#endif
-}
-
void EWebView::SetOrientation(int orientation) {
// For backward compatibility, a value in range of [0, 360] is used
// instead of [-90, 180] because the class gfx::Display, containing
void SetTextZoomFactor(double text_zoom_factor);
void ExecuteEditCommand(const char* command, const char* value);
void SetOrientation(int orientation);
- void SendOrientationChangeEventIfNeeded(int orientation);
void SetOrientationLockCallback(tizen_webview::Orientation_Lock_Cb func, void* data);
bool TouchEventsEnabled() const;
void SetTouchEventsEnabled(bool enabled);
return impl_->GetScrollSize(w, h);
}
-void WebView::SendOrientationChangeEventIfNeeded(int orientation) {
- return impl_->SendOrientationChangeEventIfNeeded(orientation);
-}
-
void WebView::SetOrientation(int orientation) {
return impl_->SetOrientation(orientation);
}
void SetScroll(int x, int y); // TODO: rename to ScrollTo (x,y) x,y is left top (see GetScrollSize)
void GetScrollSize(int* w, int* h); // TODO: rename to GetPossibleScrollSize
// > View Orientation
- void SendOrientationChangeEventIfNeeded(int orientation);
void SetOrientation(int orientation);
void SetOrientationLockCallback(Orientation_Lock_Cb func, void* data);
// > View mode