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

Side by Side Diff: ui/aura/window_tree_host_win.h

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_ozone.cc ('k') | ui/aura/window_tree_host_win.cc » ('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 #ifndef UI_AURA_WINDOW_TREE_HOST_WIN_H_ 5 #ifndef UI_AURA_WINDOW_TREE_HOST_WIN_H_
6 #define UI_AURA_WINDOW_TREE_HOST_WIN_H_ 6 #define UI_AURA_WINDOW_TREE_HOST_WIN_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ui/aura/aura_export.h" 9 #include "ui/aura/aura_export.h"
10 #include "ui/aura/window_tree_host.h" 10 #include "ui/aura/window_tree_host.h"
11 #include "ui/events/event_source.h" 11 #include "ui/events/event_source.h"
12 #include "ui/gfx/win/window_impl.h" 12 #include "ui/gfx/win/window_impl.h"
13 13
14 namespace aura { 14 namespace aura {
15 15
16 class AURA_EXPORT WindowTreeHostWin : public WindowTreeHost, 16 class AURA_EXPORT WindowTreeHostWin : public WindowTreeHost,
17 public ui::EventSource, 17 public ui::EventSource,
18 public gfx::WindowImpl { 18 public gfx::WindowImpl {
19 public: 19 public:
20 explicit WindowTreeHostWin(const gfx::Rect& bounds); 20 explicit WindowTreeHostWin(const gfx::Rect& bounds);
21 virtual ~WindowTreeHostWin(); 21 virtual ~WindowTreeHostWin();
22 // WindowTreeHost: 22 // WindowTreeHost:
23 virtual ui::EventSource* GetEventSource() OVERRIDE;
23 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; 24 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
24 virtual void Show() OVERRIDE; 25 virtual void Show() OVERRIDE;
25 virtual void Hide() OVERRIDE; 26 virtual void Hide() OVERRIDE;
26 virtual gfx::Rect GetBounds() const OVERRIDE; 27 virtual gfx::Rect GetBounds() const OVERRIDE;
27 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; 28 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
28 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; 29 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE;
29 virtual void SetCapture() OVERRIDE; 30 virtual void SetCapture() OVERRIDE;
30 virtual void ReleaseCapture() OVERRIDE; 31 virtual void ReleaseCapture() OVERRIDE;
31 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; 32 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE;
32 virtual void SetCursorNative(gfx::NativeCursor cursor) OVERRIDE; 33 virtual void SetCursorNative(gfx::NativeCursor cursor) OVERRIDE;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // Set true to let WindowTreeHostWin use a popup window 85 // Set true to let WindowTreeHostWin use a popup window
85 // with no frame/title so that the window size and test's 86 // with no frame/title so that the window size and test's
86 // expectations matches. 87 // expectations matches.
87 AURA_EXPORT void SetUsePopupAsRootWindowForTest(bool use); 88 AURA_EXPORT void SetUsePopupAsRootWindowForTest(bool use);
88 89
89 } // namespace 90 } // namespace
90 91
91 } // namespace aura 92 } // namespace aura
92 93
93 #endif // UI_AURA_WINDOW_TREE_HOST_WIN_H_ 94 #endif // UI_AURA_WINDOW_TREE_HOST_WIN_H_
OLDNEW
« no previous file with comments | « ui/aura/window_tree_host_ozone.cc ('k') | ui/aura/window_tree_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698