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

Side by Side Diff: content/renderer/mus/compositor_mus_connection.h

Issue 2183163002: mus: Change PointerWatcher to observe all pointer events, with moves optional. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 CONTENT_RENDERER_MUS_COMPOSITOR_MUS_CONNECTION_H_ 5 #ifndef CONTENT_RENDERER_MUS_COMPOSITOR_MUS_CONNECTION_H_
6 #define CONTENT_RENDERER_MUS_COMPOSITOR_MUS_CONNECTION_H_ 6 #define CONTENT_RENDERER_MUS_COMPOSITOR_MUS_CONNECTION_H_
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 std::unique_ptr<blink::WebInputEvent> web_event, 61 std::unique_ptr<blink::WebInputEvent> web_event,
62 const base::Callback<void(ui::mojom::EventResult)>& ack); 62 const base::Callback<void(ui::mojom::EventResult)>& ack);
63 63
64 void OnWindowInputEventAckOnMainThread( 64 void OnWindowInputEventAckOnMainThread(
65 const base::Callback<void(ui::mojom::EventResult)>& ack, 65 const base::Callback<void(ui::mojom::EventResult)>& ack,
66 ui::mojom::EventResult result); 66 ui::mojom::EventResult result);
67 67
68 // WindowTreeClientDelegate implementation: 68 // WindowTreeClientDelegate implementation:
69 void OnDidDestroyClient(ui::WindowTreeClient* client) override; 69 void OnDidDestroyClient(ui::WindowTreeClient* client) override;
70 void OnEmbed(ui::Window* root) override; 70 void OnEmbed(ui::Window* root) override;
71 void OnEventObserved(const ui::Event& event, ui::Window* target) override; 71 void OnPointerEventObserved(const ui::PointerEvent& event,
72 ui::Window* target) override;
72 73
73 // InputEventHandler implementation: 74 // InputEventHandler implementation:
74 void OnWindowInputEvent( 75 void OnWindowInputEvent(
75 ui::Window* window, 76 ui::Window* window,
76 const ui::Event& event, 77 const ui::Event& event,
77 std::unique_ptr<base::Callback<void(ui::mojom::EventResult)>>* 78 std::unique_ptr<base::Callback<void(ui::mojom::EventResult)>>*
78 ack_callback) override; 79 ack_callback) override;
79 80
80 const int routing_id_; 81 const int routing_id_;
81 ui::Window* root_; 82 ui::Window* root_;
82 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; 83 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
83 scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_; 84 scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_;
84 InputHandlerManager* const input_handler_manager_; 85 InputHandlerManager* const input_handler_manager_;
85 std::unique_ptr<ui::WindowSurfaceBinding> window_surface_binding_; 86 std::unique_ptr<ui::WindowSurfaceBinding> window_surface_binding_;
86 87
87 DISALLOW_COPY_AND_ASSIGN(CompositorMusConnection); 88 DISALLOW_COPY_AND_ASSIGN(CompositorMusConnection);
88 }; 89 };
89 90
90 } // namespace content 91 } // namespace content
91 92
92 #endif // CONTENT_RENDERER_MUS_COMPOSITOR_MUS_CONNECTION_H_ 93 #endif // CONTENT_RENDERER_MUS_COMPOSITOR_MUS_CONNECTION_H_
OLDNEW
« no previous file with comments | « ash/touch_hud/mus/touch_hud_application.cc ('k') | content/renderer/mus/compositor_mus_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698