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

Side by Side Diff: services/window_manager/window_manager_app.h

Issue 868463010: Move gesture recognition from WindowManagerApp to Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | services/window_manager/window_manager_app.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 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 SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_APP_H_ 5 #ifndef SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_APP_H_
6 #define SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_APP_H_ 6 #define SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_APP_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/memory/scoped_vector.h" 11 #include "base/memory/scoped_vector.h"
12 #include "mojo/public/cpp/application/application_delegate.h" 12 #include "mojo/public/cpp/application/application_delegate.h"
13 #include "mojo/public/cpp/application/interface_factory_impl.h" 13 #include "mojo/public/cpp/application/interface_factory_impl.h"
14 #include "mojo/public/cpp/bindings/binding.h" 14 #include "mojo/public/cpp/bindings/binding.h"
15 #include "mojo/public/cpp/bindings/string.h" 15 #include "mojo/public/cpp/bindings/string.h"
16 #include "mojo/services/view_manager/public/cpp/types.h" 16 #include "mojo/services/view_manager/public/cpp/types.h"
17 #include "mojo/services/view_manager/public/cpp/view_manager_client_factory.h" 17 #include "mojo/services/view_manager/public/cpp/view_manager_client_factory.h"
18 #include "mojo/services/view_manager/public/cpp/view_manager_delegate.h" 18 #include "mojo/services/view_manager/public/cpp/view_manager_delegate.h"
19 #include "mojo/services/view_manager/public/cpp/view_observer.h" 19 #include "mojo/services/view_manager/public/cpp/view_observer.h"
20 #include "mojo/services/window_manager/public/interfaces/window_manager_internal .mojom.h" 20 #include "mojo/services/window_manager/public/interfaces/window_manager_internal .mojom.h"
21 #include "services/window_manager/capture_controller_observer.h" 21 #include "services/window_manager/capture_controller_observer.h"
22 #include "services/window_manager/focus_controller_observer.h" 22 #include "services/window_manager/focus_controller_observer.h"
23 #include "services/window_manager/native_viewport_event_dispatcher_impl.h" 23 #include "services/window_manager/native_viewport_event_dispatcher_impl.h"
24 #include "services/window_manager/view_target.h" 24 #include "services/window_manager/view_target.h"
25 #include "services/window_manager/window_manager_impl.h" 25 #include "services/window_manager/window_manager_impl.h"
26 #include "ui/events/event_handler.h" 26 #include "ui/events/event_handler.h"
27 #include "ui/events/gestures/gesture_types.h"
28 27
29 namespace gfx { 28 namespace gfx {
30 class Size; 29 class Size;
31 } 30 }
32 31
33 namespace window_manager { 32 namespace window_manager {
34 33
35 class CaptureController; 34 class CaptureController;
36 class FocusController; 35 class FocusController;
37 class FocusRules; 36 class FocusRules;
38 class ViewEventDispatcher; 37 class ViewEventDispatcher;
39 class WindowManagerClient; 38 class WindowManagerClient;
40 class WindowManagerDelegate; 39 class WindowManagerDelegate;
41 class WindowManagerImpl; 40 class WindowManagerImpl;
42 41
43 // Implements core window manager functionality that could conceivably be shared 42 // Implements core window manager functionality that could conceivably be shared
44 // across multiple window managers implementing superficially different user 43 // across multiple window managers implementing superficially different user
45 // experiences. Establishes communication with the view manager. 44 // experiences. Establishes communication with the view manager.
46 // A window manager wishing to use this core should create and own an instance 45 // A window manager wishing to use this core should create and own an instance
47 // of this object. They may implement the associated ViewManager/WindowManager 46 // of this object. They may implement the associated ViewManager/WindowManager
48 // delegate interfaces exposed by the view manager, this object provides the 47 // delegate interfaces exposed by the view manager, this object provides the
49 // canonical implementation of said interfaces but will call out to the wrapped 48 // canonical implementation of said interfaces but will call out to the wrapped
50 // instances. 49 // instances.
51 class WindowManagerApp 50 class WindowManagerApp
52 : public mojo::ApplicationDelegate, 51 : public mojo::ApplicationDelegate,
53 public mojo::ViewManagerDelegate, 52 public mojo::ViewManagerDelegate,
54 public mojo::ViewObserver, 53 public mojo::ViewObserver,
55 public ui::EventHandler, 54 public ui::EventHandler,
56 public ui::GestureConsumer,
57 public FocusControllerObserver, 55 public FocusControllerObserver,
58 public CaptureControllerObserver, 56 public CaptureControllerObserver,
59 public mojo::InterfaceFactory<mojo::WindowManager>, 57 public mojo::InterfaceFactory<mojo::WindowManager>,
60 public mojo::InterfaceFactory<mojo::WindowManagerInternal>, 58 public mojo::InterfaceFactory<mojo::WindowManagerInternal>,
61 public mojo::WindowManagerInternal { 59 public mojo::WindowManagerInternal {
62 public: 60 public:
63 WindowManagerApp(ViewManagerDelegate* view_manager_delegate, 61 WindowManagerApp(ViewManagerDelegate* view_manager_delegate,
64 WindowManagerDelegate* window_manager_delegate); 62 WindowManagerDelegate* window_manager_delegate);
65 ~WindowManagerApp() override; 63 ~WindowManagerApp() override;
66 64
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 scoped_ptr<ViewEventDispatcher> view_event_dispatcher_; 186 scoped_ptr<ViewEventDispatcher> view_event_dispatcher_;
189 187
190 scoped_ptr<mojo::Binding<WindowManagerInternal>> wm_internal_binding_; 188 scoped_ptr<mojo::Binding<WindowManagerInternal>> wm_internal_binding_;
191 189
192 DISALLOW_COPY_AND_ASSIGN(WindowManagerApp); 190 DISALLOW_COPY_AND_ASSIGN(WindowManagerApp);
193 }; 191 };
194 192
195 } // namespace window_manager 193 } // namespace window_manager
196 194
197 #endif // SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_APP_H_ 195 #endif // SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_APP_H_
OLDNEW
« no previous file with comments | « no previous file | services/window_manager/window_manager_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698