OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/aura/root_window_host_win.h" | 5 #include "ui/aura/root_window_host_win.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 | 279 |
280 void RootWindowHostWin::SetFocusWhenShown(bool focus_when_shown) { | 280 void RootWindowHostWin::SetFocusWhenShown(bool focus_when_shown) { |
281 NOTIMPLEMENTED(); | 281 NOTIMPLEMENTED(); |
282 } | 282 } |
283 | 283 |
284 void RootWindowHostWin::PostNativeEvent(const base::NativeEvent& native_event) { | 284 void RootWindowHostWin::PostNativeEvent(const base::NativeEvent& native_event) { |
285 ::PostMessage( | 285 ::PostMessage( |
286 hwnd(), native_event.message, native_event.wParam, native_event.lParam); | 286 hwnd(), native_event.message, native_event.wParam, native_event.lParam); |
287 } | 287 } |
288 | 288 |
| 289 void RootWindowHostWin::SetUseHostWindowBorders(bool use_os_borders) { |
| 290 NOTIMPLEMENTED(); |
| 291 } |
| 292 |
| 293 bool RootWindowHostWin::DispatchHostWindowDragMovement(int hittest, |
| 294 MouseEvent* event) { |
| 295 return false; |
| 296 } |
| 297 |
289 void RootWindowHostWin::OnClose() { | 298 void RootWindowHostWin::OnClose() { |
290 // TODO: this obviously shouldn't be here. | 299 // TODO: this obviously shouldn't be here. |
291 MessageLoopForUI::current()->Quit(); | 300 MessageLoopForUI::current()->Quit(); |
292 } | 301 } |
293 | 302 |
294 LRESULT RootWindowHostWin::OnKeyEvent(UINT message, | 303 LRESULT RootWindowHostWin::OnKeyEvent(UINT message, |
295 WPARAM w_param, | 304 WPARAM w_param, |
296 LPARAM l_param) { | 305 LPARAM l_param) { |
297 MSG msg = { hwnd(), message, w_param, l_param }; | 306 MSG msg = { hwnd(), message, w_param, l_param }; |
298 KeyEvent keyev(msg, message == WM_CHAR); | 307 KeyEvent keyev(msg, message == WM_CHAR); |
(...skipping 30 matching lines...) Expand all Loading... |
329 } | 338 } |
330 | 339 |
331 void RootWindowHostWin::OnSize(UINT param, const CSize& size) { | 340 void RootWindowHostWin::OnSize(UINT param, const CSize& size) { |
332 // Minimizing resizes the window to 0x0 which causes our layout to go all | 341 // Minimizing resizes the window to 0x0 which causes our layout to go all |
333 // screwy, so we just ignore it. | 342 // screwy, so we just ignore it. |
334 if (param != SIZE_MINIMIZED) | 343 if (param != SIZE_MINIMIZED) |
335 root_window_->OnHostResized(gfx::Size(size.cx, size.cy)); | 344 root_window_->OnHostResized(gfx::Size(size.cx, size.cy)); |
336 } | 345 } |
337 | 346 |
338 } // namespace aura | 347 } // namespace aura |
OLD | NEW |