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

Side by Side Diff: mojo/examples/aura_demo/window_tree_host_mojo.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 | « chrome/chrome_tests_unit.gypi ('k') | mojo/examples/aura_demo/window_tree_host_mojo.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 MOJO_EXAMPLES_AURA_DEMO_WINDOW_TREE_HOST_MOJO_H_ 5 #ifndef MOJO_EXAMPLES_AURA_DEMO_WINDOW_TREE_HOST_MOJO_H_
6 #define MOJO_EXAMPLES_AURA_DEMO_WINDOW_TREE_HOST_MOJO_H_ 6 #define MOJO_EXAMPLES_AURA_DEMO_WINDOW_TREE_HOST_MOJO_H_
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "mojo/public/cpp/bindings/remote_ptr.h" 9 #include "mojo/public/cpp/bindings/remote_ptr.h"
10 #include "mojo/services/native_viewport/native_viewport.mojom.h" 10 #include "mojo/services/native_viewport/native_viewport.mojom.h"
(...skipping 15 matching lines...) Expand all
26 WindowTreeHostMojo(ScopedNativeViewportHandle viewport_handle, 26 WindowTreeHostMojo(ScopedNativeViewportHandle viewport_handle,
27 const gfx::Rect& bounds, 27 const gfx::Rect& bounds,
28 const base::Callback<void()>& compositor_created_callback); 28 const base::Callback<void()>& compositor_created_callback);
29 virtual ~WindowTreeHostMojo(); 29 virtual ~WindowTreeHostMojo();
30 30
31 gfx::Rect bounds() const { return bounds_; } 31 gfx::Rect bounds() const { return bounds_; }
32 ScopedMessagePipeHandle TakeGLES2PipeHandle() { return gles2_handle_.Pass(); } 32 ScopedMessagePipeHandle TakeGLES2PipeHandle() { return gles2_handle_.Pass(); }
33 33
34 private: 34 private:
35 // WindowTreeHost: 35 // WindowTreeHost:
36 virtual ui::EventSource* GetEventSource() OVERRIDE;
36 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; 37 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
37 virtual void Show() OVERRIDE; 38 virtual void Show() OVERRIDE;
38 virtual void Hide() OVERRIDE; 39 virtual void Hide() OVERRIDE;
39 virtual gfx::Rect GetBounds() const OVERRIDE; 40 virtual gfx::Rect GetBounds() const OVERRIDE;
40 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; 41 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
41 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; 42 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE;
42 virtual void SetCapture() OVERRIDE; 43 virtual void SetCapture() OVERRIDE;
43 virtual void ReleaseCapture() OVERRIDE; 44 virtual void ReleaseCapture() OVERRIDE;
44 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; 45 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE;
45 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; 46 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE;
(...skipping 20 matching lines...) Expand all
66 67
67 gfx::Rect bounds_; 68 gfx::Rect bounds_;
68 69
69 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMojo); 70 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMojo);
70 }; 71 };
71 72
72 } // namespace examples 73 } // namespace examples
73 } // namespace mojo 74 } // namespace mojo
74 75
75 #endif // MOJO_EXAMPLES_AURA_DEMO_WINDOW_TREE_HOST_MOJO_H_ 76 #endif // MOJO_EXAMPLES_AURA_DEMO_WINDOW_TREE_HOST_MOJO_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | mojo/examples/aura_demo/window_tree_host_mojo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698