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/remote_root_window_host_win.cc

Issue 12342028: make menus, bubbles, etc. top level windows on aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fixes Created 7 years, 9 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/remote_root_window_host_win.h" 5 #include "ui/aura/remote_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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 } 316 }
317 317
318 void RemoteRootWindowHostWin::OnDeviceScaleFactorChanged( 318 void RemoteRootWindowHostWin::OnDeviceScaleFactorChanged(
319 float device_scale_factor) { 319 float device_scale_factor) {
320 NOTIMPLEMENTED(); 320 NOTIMPLEMENTED();
321 } 321 }
322 322
323 void RemoteRootWindowHostWin::PrepareForShutdown() { 323 void RemoteRootWindowHostWin::PrepareForShutdown() {
324 } 324 }
325 325
326 void RemoteRootWindowHostWin::SetHostWindowExpansion(const gfx::Rect& extra) {
327 NOTIMPLEMENTED();
328 }
329
326 void RemoteRootWindowHostWin::OnMouseMoved(int32 x, int32 y, int32 flags) { 330 void RemoteRootWindowHostWin::OnMouseMoved(int32 x, int32 y, int32 flags) {
327 gfx::Point location(x, y); 331 gfx::Point location(x, y);
328 ui::MouseEvent event(ui::ET_MOUSE_MOVED, location, location, flags); 332 ui::MouseEvent event(ui::ET_MOUSE_MOVED, location, location, flags);
329 delegate_->OnHostMouseEvent(&event); 333 delegate_->OnHostMouseEvent(&event);
330 } 334 }
331 335
332 void RemoteRootWindowHostWin::OnMouseButton( 336 void RemoteRootWindowHostWin::OnMouseButton(
333 int32 x, int32 y, int32 extra, ui::EventType type, ui::EventFlags flags) { 337 int32 x, int32 y, int32 extra, ui::EventType type, ui::EventFlags flags) {
334 gfx::Point location(x, y); 338 gfx::Point location(x, y);
335 ui::MouseEvent mouse_event(type, location, location, 0); 339 ui::MouseEvent mouse_event(type, location, location, 0);
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 } else { 449 } else {
446 ui::KeyEvent event(type, 450 ui::KeyEvent event(type,
447 ui::KeyboardCodeForWindowsKeyCode(vkey), 451 ui::KeyboardCodeForWindowsKeyCode(vkey),
448 flags, 452 flags,
449 is_character); 453 is_character);
450 delegate_->OnHostKeyEvent(&event); 454 delegate_->OnHostKeyEvent(&event);
451 } 455 }
452 } 456 }
453 457
454 } // namespace aura 458 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698