Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: ui/aura/root_window_host_win.cc

Issue 10381063: Aura/ash split: Don't use X11 window borders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Now with windows/mac implementations Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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::SetUseOSWindowBorders(bool use_os_borders) {
Daniel Erat 2012/05/09 20:58:27 nit: NOTIMPLEMENTED()
290 }
291
292 bool RootWindowHostWin::DispatchWindowDragMovement(int hittest,
293 MouseEvent* event) {
294 return false;
295 }
296
289 void RootWindowHostWin::OnClose() { 297 void RootWindowHostWin::OnClose() {
290 // TODO: this obviously shouldn't be here. 298 // TODO: this obviously shouldn't be here.
291 MessageLoopForUI::current()->Quit(); 299 MessageLoopForUI::current()->Quit();
292 } 300 }
293 301
294 LRESULT RootWindowHostWin::OnKeyEvent(UINT message, 302 LRESULT RootWindowHostWin::OnKeyEvent(UINT message,
295 WPARAM w_param, 303 WPARAM w_param,
296 LPARAM l_param) { 304 LPARAM l_param) {
297 MSG msg = { hwnd(), message, w_param, l_param }; 305 MSG msg = { hwnd(), message, w_param, l_param };
298 KeyEvent keyev(msg, message == WM_CHAR); 306 KeyEvent keyev(msg, message == WM_CHAR);
(...skipping 30 matching lines...) Expand all
329 } 337 }
330 338
331 void RootWindowHostWin::OnSize(UINT param, const CSize& size) { 339 void RootWindowHostWin::OnSize(UINT param, const CSize& size) {
332 // Minimizing resizes the window to 0x0 which causes our layout to go all 340 // Minimizing resizes the window to 0x0 which causes our layout to go all
333 // screwy, so we just ignore it. 341 // screwy, so we just ignore it.
334 if (param != SIZE_MINIMIZED) 342 if (param != SIZE_MINIMIZED)
335 root_window_->OnHostResized(gfx::Size(size.cx, size.cy)); 343 root_window_->OnHostResized(gfx::Size(size.cx, size.cy));
336 } 344 }
337 345
338 } // namespace aura 346 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698