diff options
Diffstat (limited to 'ui/aura/root_window_host_win.cc')
-rw-r--r-- | ui/aura/root_window_host_win.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ui/aura/root_window_host_win.cc b/ui/aura/root_window_host_win.cc index 868173c..2e90ba4 100644 --- a/ui/aura/root_window_host_win.cc +++ b/ui/aura/root_window_host_win.cc @@ -186,8 +186,8 @@ void RootWindowHostWin::SetBounds(const gfx::Rect& bounds) { RECT window_rect; window_rect.left = bounds.x(); window_rect.top = bounds.y(); - window_rect.right = bounds.width(); - window_rect.bottom = bounds.height(); + window_rect.right = bounds.right() ; + window_rect.bottom = bounds.bottom(); AdjustWindowRectEx(&window_rect, GetWindowLong(hwnd(), GWL_STYLE), FALSE, @@ -262,6 +262,10 @@ void RootWindowHostWin::MoveCursorTo(const gfx::Point& location) { SetCursorPos(pt.x, pt.y); } +void RootWindowHostWin::SetFocusWhenShown(bool focus_when_shown) { + NOTIMPLEMENTED(); +} + void RootWindowHostWin::PostNativeEvent(const base::NativeEvent& native_event) { ::PostMessage( hwnd(), native_event.message, native_event.wParam, native_event.lParam); |