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

Side by Side Diff: mojo/services/window_manager/native_viewport_event_dispatcher_impl.h

Issue 1049993002: Get mojo_shell building inside chromium checkout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix presubmit Created 5 years, 8 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SERVICES_WINDOW_MANAGER_NATIVE_VIEWPORT_EVENT_DISPATCHER_IMPL_H_
6 #define SERVICES_WINDOW_MANAGER_NATIVE_VIEWPORT_EVENT_DISPATCHER_IMPL_H_
7
8 #include "base/basictypes.h"
9 #include "mojo/public/cpp/bindings/strong_binding.h"
10 #include "third_party/mojo_services/src/native_viewport/public/interfaces/native _viewport.mojom.h"
11 #include "ui/events/event_source.h"
12
13 namespace window_manager {
14
15 class WindowManagerApp;
16
17 class NativeViewportEventDispatcherImpl
18 : public ui::EventSource,
19 public mojo::NativeViewportEventDispatcher {
20 public:
21 NativeViewportEventDispatcherImpl(
22 WindowManagerApp* app,
23 mojo::InterfaceRequest<mojo::NativeViewportEventDispatcher> request);
24 ~NativeViewportEventDispatcherImpl() override;
25
26 private:
27 // ui::EventSource:
28 ui::EventProcessor* GetEventProcessor() override;
29
30 // NativeViewportEventDispatcher:
31 void OnEvent(mojo::EventPtr event,
32 const mojo::Callback<void()>& callback) override;
33
34 WindowManagerApp* app_;
35
36 mojo::StrongBinding<mojo::NativeViewportEventDispatcher> binding_;
37 DISALLOW_COPY_AND_ASSIGN(NativeViewportEventDispatcherImpl);
38 };
39
40 } // namespace window_manager
41
42 #endif // SERVICES_WINDOW_MANAGER_NATIVE_VIEWPORT_EVENT_DISPATCHER_IMPL_H_
OLDNEW
« no previous file with comments | « mojo/services/window_manager/main.cc ('k') | mojo/services/window_manager/native_viewport_event_dispatcher_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698