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

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

Issue 240333007: wip: Second crack at implementing the touch exploration mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding a flag to disable the touch exploration mode. Created 6 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
« no previous file with comments | « ui/aura/remote_window_tree_host_win.h ('k') | ui/aura/test/event_generator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_window_tree_host_win.h" 5 #include "ui/aura/remote_window_tree_host_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 } 366 }
367 367
368 bool RemoteWindowTreeHostWin::IsForegroundWindow() { 368 bool RemoteWindowTreeHostWin::IsForegroundWindow() {
369 return ::GetForegroundWindow() == remote_window_; 369 return ::GetForegroundWindow() == remote_window_;
370 } 370 }
371 371
372 Window* RemoteWindowTreeHostWin::GetAshWindow() { 372 Window* RemoteWindowTreeHostWin::GetAshWindow() {
373 return window(); 373 return window();
374 } 374 }
375 375
376 ui::EventSource* RemoteWindowTreeHostWin::GetEventSource() {
377 return this;
378 }
379
376 gfx::AcceleratedWidget RemoteWindowTreeHostWin::GetAcceleratedWidget() { 380 gfx::AcceleratedWidget RemoteWindowTreeHostWin::GetAcceleratedWidget() {
377 if (remote_window_) 381 if (remote_window_)
378 return remote_window_; 382 return remote_window_;
379 // Getting here should only happen for ash_unittests.exe and related code. 383 // Getting here should only happen for ash_unittests.exe and related code.
380 return ::GetDesktopWindow(); 384 return ::GetDesktopWindow();
381 } 385 }
382 386
383 void RemoteWindowTreeHostWin::Show() { 387 void RemoteWindowTreeHostWin::Show() {
384 ui::RemoteInputMethodPrivateWin* remote_input_method_private = 388 ui::RemoteInputMethodPrivateWin* remote_input_method_private =
385 GetRemoteInputMethodPrivate(); 389 GetRemoteInputMethodPrivate();
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 } 753 }
750 754
751 void RemoteWindowTreeHostWin::SetEventFlags(uint32 flags) { 755 void RemoteWindowTreeHostWin::SetEventFlags(uint32 flags) {
752 if (flags == event_flags_) 756 if (flags == event_flags_)
753 return; 757 return;
754 event_flags_ = flags; 758 event_flags_ = flags;
755 SetVirtualKeyStates(event_flags_); 759 SetVirtualKeyStates(event_flags_);
756 } 760 }
757 761
758 } // namespace aura 762 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/remote_window_tree_host_win.h ('k') | ui/aura/test/event_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698