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

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

Issue 10399118: 2x Cursor support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remoev extra space 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 286
287 void RootWindowHostWin::SetFocusWhenShown(bool focus_when_shown) { 287 void RootWindowHostWin::SetFocusWhenShown(bool focus_when_shown) {
288 NOTIMPLEMENTED(); 288 NOTIMPLEMENTED();
289 } 289 }
290 290
291 void RootWindowHostWin::PostNativeEvent(const base::NativeEvent& native_event) { 291 void RootWindowHostWin::PostNativeEvent(const base::NativeEvent& native_event) {
292 ::PostMessage( 292 ::PostMessage(
293 hwnd(), native_event.message, native_event.wParam, native_event.lParam); 293 hwnd(), native_event.message, native_event.wParam, native_event.lParam);
294 } 294 }
295 295
296 void RootWindowHostWin::OnDeviceScaleFactorChanged(
297 float device_scale_factor) {
298 NOTIMPLEMENTED();
299 }
300
296 void RootWindowHostWin::OnClose() { 301 void RootWindowHostWin::OnClose() {
297 // TODO: this obviously shouldn't be here. 302 // TODO: this obviously shouldn't be here.
298 MessageLoopForUI::current()->Quit(); 303 MessageLoopForUI::current()->Quit();
299 } 304 }
300 305
301 LRESULT RootWindowHostWin::OnKeyEvent(UINT message, 306 LRESULT RootWindowHostWin::OnKeyEvent(UINT message,
302 WPARAM w_param, 307 WPARAM w_param,
303 LPARAM l_param) { 308 LPARAM l_param) {
304 MSG msg = { hwnd(), message, w_param, l_param }; 309 MSG msg = { hwnd(), message, w_param, l_param };
305 KeyEvent keyev(msg, message == WM_CHAR); 310 KeyEvent keyev(msg, message == WM_CHAR);
(...skipping 30 matching lines...) Expand all
336 } 341 }
337 342
338 void RootWindowHostWin::OnSize(UINT param, const CSize& size) { 343 void RootWindowHostWin::OnSize(UINT param, const CSize& size) {
339 // Minimizing resizes the window to 0x0 which causes our layout to go all 344 // Minimizing resizes the window to 0x0 which causes our layout to go all
340 // screwy, so we just ignore it. 345 // screwy, so we just ignore it.
341 if (param != SIZE_MINIMIZED) 346 if (param != SIZE_MINIMIZED)
342 root_window_->OnHostResized(gfx::Size(size.cx, size.cy)); 347 root_window_->OnHostResized(gfx::Size(size.cx, size.cy));
343 } 348 }
344 349
345 } // namespace aura 350 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698