OLD | NEW |
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_WINDOW_MANAGER_APP_H_ | 5 #ifndef MOJO_SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_APP_H_ |
6 #define MOJO_SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_APP_H_ | 6 #define MOJO_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" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 // Register/deregister new connections to the window manager service. | 65 // Register/deregister new connections to the window manager service. |
66 void AddConnection(WindowManagerImpl* connection); | 66 void AddConnection(WindowManagerImpl* connection); |
67 void RemoveConnection(WindowManagerImpl* connection); | 67 void RemoveConnection(WindowManagerImpl* connection); |
68 | 68 |
69 // These are canonical implementations of the window manager API methods. | 69 // These are canonical implementations of the window manager API methods. |
70 void SetCapture(Id view); | 70 void SetCapture(Id view); |
71 void FocusWindow(Id view); | 71 void FocusWindow(Id view); |
72 void ActivateWindow(Id view); | 72 void ActivateWindow(Id view); |
73 | 73 |
| 74 void DispatchInputEventToView(View* view, EventPtr event); |
74 void SetViewportSize(const gfx::Size& size); | 75 void SetViewportSize(const gfx::Size& size); |
75 | 76 |
76 bool IsReady() const; | 77 bool IsReady() const; |
77 | 78 |
78 FocusController* focus_controller() { return focus_controller_.get(); } | 79 FocusController* focus_controller() { return focus_controller_.get(); } |
79 | 80 |
80 void InitFocus(scoped_ptr<FocusRules> rules); | 81 void InitFocus(scoped_ptr<FocusRules> rules); |
81 | 82 |
82 // WindowManagerImpl::Embed() forwards to this. If connected to ViewManager | 83 // WindowManagerImpl::Embed() forwards to this. If connected to ViewManager |
83 // then forwards to delegate, otherwise waits for connection to establish then | 84 // then forwards to delegate, otherwise waits for connection to establish then |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 scoped_ptr<ViewManagerClient> view_manager_client_; | 167 scoped_ptr<ViewManagerClient> view_manager_client_; |
167 | 168 |
168 scoped_ptr<ViewEventDispatcher> view_event_dispatcher_; | 169 scoped_ptr<ViewEventDispatcher> view_event_dispatcher_; |
169 | 170 |
170 DISALLOW_COPY_AND_ASSIGN(WindowManagerApp); | 171 DISALLOW_COPY_AND_ASSIGN(WindowManagerApp); |
171 }; | 172 }; |
172 | 173 |
173 } // namespace mojo | 174 } // namespace mojo |
174 | 175 |
175 #endif // MOJO_SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_APP_H_ | 176 #endif // MOJO_SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_APP_H_ |
OLD | NEW |