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

Side by Side Diff: ui/aura/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/window_tree_host_win.h ('k') | ui/aura/window_tree_host_x11.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/window_tree_host_win.h" 5 #include "ui/aura/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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 SetWindowText(hwnd(), L"aura::RootWindow!"); 48 SetWindowText(hwnd(), L"aura::RootWindow!");
49 CreateCompositor(GetAcceleratedWidget()); 49 CreateCompositor(GetAcceleratedWidget());
50 } 50 }
51 51
52 WindowTreeHostWin::~WindowTreeHostWin() { 52 WindowTreeHostWin::~WindowTreeHostWin() {
53 DestroyCompositor(); 53 DestroyCompositor();
54 DestroyDispatcher(); 54 DestroyDispatcher();
55 DestroyWindow(hwnd()); 55 DestroyWindow(hwnd());
56 } 56 }
57 57
58 ui::EventSource* WindowTreeHostWin::GetEventSource() {
59 return this;
60 }
61
58 gfx::AcceleratedWidget WindowTreeHostWin::GetAcceleratedWidget() { 62 gfx::AcceleratedWidget WindowTreeHostWin::GetAcceleratedWidget() {
59 return hwnd(); 63 return hwnd();
60 } 64 }
61 65
62 void WindowTreeHostWin::Show() { 66 void WindowTreeHostWin::Show() {
63 ShowWindow(hwnd(), SW_SHOWNORMAL); 67 ShowWindow(hwnd(), SW_SHOWNORMAL);
64 } 68 }
65 69
66 void WindowTreeHostWin::Hide() { 70 void WindowTreeHostWin::Hide() {
67 NOTIMPLEMENTED(); 71 NOTIMPLEMENTED();
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 namespace test { 247 namespace test {
244 248
245 // static 249 // static
246 void SetUsePopupAsRootWindowForTest(bool use) { 250 void SetUsePopupAsRootWindowForTest(bool use) {
247 use_popup_as_root_window_for_test = use; 251 use_popup_as_root_window_for_test = use;
248 } 252 }
249 253
250 } // namespace test 254 } // namespace test
251 255
252 } // namespace aura 256 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/window_tree_host_win.h ('k') | ui/aura/window_tree_host_x11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698