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

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

Issue 718573002: Revert "Remove aura and make a pure mojo::View version of the aura::Window FocusController." (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 2014 The Chromium Authors. All rights reserved. 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 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_SERVICES_WINDOW_MANAGER_NATIVE_VIEWPORT_EVENT_DISPATCHER_IMPL_H_ 5 #ifndef MOJO_SERVICES_WINDOW_MANAGER_NATIVE_VIEWPORT_EVENT_DISPATCHER_IMPL_H_
6 #define MOJO_SERVICES_WINDOW_MANAGER_NATIVE_VIEWPORT_EVENT_DISPATCHER_IMPL_H_ 6 #define MOJO_SERVICES_WINDOW_MANAGER_NATIVE_VIEWPORT_EVENT_DISPATCHER_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "mojo/services/public/interfaces/native_viewport/native_viewport.mojom. h" 9 #include "mojo/services/public/interfaces/native_viewport/native_viewport.mojom. h"
10 #include "ui/events/event_source.h"
11 10
12 namespace mojo { 11 namespace mojo {
13 12
14 class WindowManagerApp; 13 class WindowManagerApp;
15 14
16 class NativeViewportEventDispatcherImpl 15 class NativeViewportEventDispatcherImpl
17 : public ui::EventSource, 16 : public InterfaceImpl<NativeViewportEventDispatcher> {
18 public InterfaceImpl<NativeViewportEventDispatcher> {
19 public: 17 public:
20 explicit NativeViewportEventDispatcherImpl(WindowManagerApp* app); 18 explicit NativeViewportEventDispatcherImpl(WindowManagerApp* app);
21 ~NativeViewportEventDispatcherImpl() override; 19 ~NativeViewportEventDispatcherImpl() override;
22 20
23 private: 21 private:
24 // ui::EventSource:
25 ui::EventProcessor* GetEventProcessor() override;
26
27 // NativeViewportEventDispatcher: 22 // NativeViewportEventDispatcher:
28 void OnEvent(mojo::EventPtr event, 23 void OnEvent(mojo::EventPtr event,
29 const mojo::Callback<void()>& callback) override; 24 const mojo::Callback<void()>& callback) override;
30 25
31 WindowManagerApp* app_; 26 WindowManagerApp* app_;
32 27
33 DISALLOW_COPY_AND_ASSIGN(NativeViewportEventDispatcherImpl); 28 DISALLOW_COPY_AND_ASSIGN(NativeViewportEventDispatcherImpl);
34 }; 29 };
35 30
36 } // namespace mojo 31 } // namespace mojo
37 32
38 #endif // MOJO_SERVICES_WINDOW_MANAGER_NATIVE_VIEWPORT_EVENT_DISPATCHER_IMPL_H_ 33 #endif // MOJO_SERVICES_WINDOW_MANAGER_NATIVE_VIEWPORT_EVENT_DISPATCHER_IMPL_H_
OLDNEW
« no previous file with comments | « mojo/services/window_manager/focus_rules.h ('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