X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fui%2Fviews%2Fwidget%2Fdesktop_aura%2Fdesktop_window_tree_host_win.cc;h=3d701b666be52f132198c80d1cb8f8b0805415a2;hb=004985e17e624662a4c85c76a7654039dc83f028;hp=2fc499bbef576c54f3bedeef29bc3b64141c21e6;hpb=2f108dbacb161091e42a3479f4e171339b7e7623;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc b/src/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc index 2fc499b..3d701b6 100644 --- a/src/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc +++ b/src/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc @@ -436,6 +436,10 @@ bool DesktopWindowTreeHostWin::IsAnimatingClosed() const { //////////////////////////////////////////////////////////////////////////////// // DesktopWindowTreeHostWin, WindowTreeHost implementation: +ui::EventSource* DesktopWindowTreeHostWin::GetEventSource() { + return this; +} + gfx::AcceleratedWidget DesktopWindowTreeHostWin::GetAcceleratedWidget() { return message_handler_->hwnd(); } @@ -449,10 +453,6 @@ void DesktopWindowTreeHostWin::Hide() { message_handler_->Hide(); } -void DesktopWindowTreeHostWin::ToggleFullScreen() { - SetWindowTransparency(); -} - // GetBounds and SetBounds work in pixel coordinates, whereas other get/set // methods work in DIP. @@ -500,13 +500,6 @@ void DesktopWindowTreeHostWin::SetBounds(const gfx::Rect& bounds) { HandleClientSizeChanged(new_expanded.size()); } -gfx::Insets DesktopWindowTreeHostWin::GetInsets() const { - return gfx::Insets(); -} - -void DesktopWindowTreeHostWin::SetInsets(const gfx::Insets& insets) { -} - gfx::Point DesktopWindowTreeHostWin::GetLocationOnNativeScreen() const { return GetBounds().origin(); } @@ -519,30 +512,6 @@ void DesktopWindowTreeHostWin::ReleaseCapture() { message_handler_->ReleaseCapture(); } -bool DesktopWindowTreeHostWin::QueryMouseLocation(gfx::Point* location_return) { - aura::client::CursorClient* cursor_client = - aura::client::GetCursorClient(window()); - if (cursor_client && !cursor_client->IsMouseEventsEnabled()) { - *location_return = gfx::Point(0, 0); - return false; - } - POINT pt = {0}; - ::GetCursorPos(&pt); - *location_return = - gfx::Point(static_cast(pt.x), static_cast(pt.y)); - return true; -} - -bool DesktopWindowTreeHostWin::ConfineCursorToRootWindow() { - RECT window_rect = window()->GetBoundsInScreen().ToRECT(); - ::ClipCursor(&window_rect); - return true; -} - -void DesktopWindowTreeHostWin::UnConfineCursor() { - ::ClipCursor(NULL); -} - void DesktopWindowTreeHostWin::PostNativeEvent( const base::NativeEvent& native_event) { } @@ -637,22 +606,6 @@ bool DesktopWindowTreeHostWin::WidgetSizeIsClientSize() const { return IsMaximized() || (widget && widget->ShouldUseNativeFrame()); } -bool DesktopWindowTreeHostWin::CanSaveFocus() const { - return GetWidget()->is_top_level(); -} - -void DesktopWindowTreeHostWin::SaveFocusOnDeactivate() { - GetWidget()->GetFocusManager()->StoreFocusedView(true); -} - -void DesktopWindowTreeHostWin::RestoreFocusOnActivate() { - RestoreFocusOnEnable(); -} - -void DesktopWindowTreeHostWin::RestoreFocusOnEnable() { - GetWidget()->GetFocusManager()->RestoreFocusedView(); -} - bool DesktopWindowTreeHostWin::IsModal() const { return native_widget_delegate_->IsModal(); } @@ -954,6 +907,11 @@ bool DesktopWindowTreeHostWin::HandleScrollEvent( return event.handled(); } +void DesktopWindowTreeHostWin::HandleWindowSizeChanging() { + if (compositor()) + compositor()->FinishAllRendering(); +} + //////////////////////////////////////////////////////////////////////////////// // DesktopWindowTreeHostWin, private: