Chromium Code Reviews| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 74 | 74 |
| 75 // Register/deregister new connections to the window manager service. | 75 // Register/deregister new connections to the window manager service. |
| 76 void AddConnection(WindowManagerService2Impl* connection); | 76 void AddConnection(WindowManagerService2Impl* connection); |
| 77 void RemoveConnection(WindowManagerService2Impl* connection); | 77 void RemoveConnection(WindowManagerService2Impl* connection); |
| 78 | 78 |
| 79 // These are canonical implementations of the window manager API methods. | 79 // These are canonical implementations of the window manager API methods. |
| 80 void SetCapture(Id view); | 80 void SetCapture(Id view); |
| 81 void FocusWindow(Id view); | 81 void FocusWindow(Id view); |
| 82 void ActivateWindow(Id view); | 82 void ActivateWindow(Id view); |
| 83 | 83 |
| 84 void SetViewportSize(gfx::Size); | |
|
sky
2014/10/30 03:23:57
const gfx::Size& and same comment about names.
| |
| 85 | |
| 84 bool IsReady() const; | 86 bool IsReady() const; |
| 85 | 87 |
| 86 // A client of this object will use this accessor to gain access to the | 88 // A client of this object will use this accessor to gain access to the |
| 87 // aura::Window hierarchy and attach event handlers. | 89 // aura::Window hierarchy and attach event handlers. |
| 88 WindowTreeHostMojo* host() { return window_tree_host_.get(); } | 90 WindowTreeHostMojo* host() { return window_tree_host_.get(); } |
| 89 | 91 |
| 90 void InitFocus(wm::FocusRules* rules); | 92 void InitFocus(wm::FocusRules* rules); |
| 91 | 93 |
| 92 // WindowManagerImpl::Embed() forwards to this. If connected to ViewManager | 94 // WindowManagerImpl::Embed() forwards to this. If connected to ViewManager |
| 93 // then forwards to delegate, otherwise waits for connection to establish then | 95 // then forwards to delegate, otherwise waits for connection to establish then |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 180 ScopedVector<PendingEmbed> pending_embeds_; | 182 ScopedVector<PendingEmbed> pending_embeds_; |
| 181 | 183 |
| 182 scoped_ptr<ViewManagerClient> view_manager_client_; | 184 scoped_ptr<ViewManagerClient> view_manager_client_; |
| 183 | 185 |
| 184 DISALLOW_COPY_AND_ASSIGN(WindowManagerApp); | 186 DISALLOW_COPY_AND_ASSIGN(WindowManagerApp); |
| 185 }; | 187 }; |
| 186 | 188 |
| 187 } // namespace mojo | 189 } // namespace mojo |
| 188 | 190 |
| 189 #endif // MOJO_SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_APP_H_ | 191 #endif // MOJO_SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_APP_H_ |
| OLD | NEW |