| 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 SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_IMPL_H_ | 5 #ifndef SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_IMPL_H_ |
| 6 #define SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_IMPL_H_ | 6 #define SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "mojo/public/cpp/bindings/binding.h" | 10 #include "mojo/public/cpp/bindings/binding.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 // See description above |from_vm_| for details on |from_vm|. | 22 // See description above |from_vm_| for details on |from_vm|. |
| 23 // WindowManagerImpl deletes itself on connection errors. WindowManagerApp | 23 // WindowManagerImpl deletes itself on connection errors. WindowManagerApp |
| 24 // also deletes WindowManagerImpl in its destructor. | 24 // also deletes WindowManagerImpl in its destructor. |
| 25 WindowManagerImpl(WindowManagerApp* window_manager, bool from_vm); | 25 WindowManagerImpl(WindowManagerApp* window_manager, bool from_vm); |
| 26 ~WindowManagerImpl() override; | 26 ~WindowManagerImpl() override; |
| 27 | 27 |
| 28 void Bind(mojo::ScopedMessagePipeHandle window_manager_pipe); | 28 void Bind(mojo::ScopedMessagePipeHandle window_manager_pipe); |
| 29 | 29 |
| 30 void NotifyViewFocused(mojo::Id new_focused_id, mojo::Id old_focused_id); | 30 void NotifyViewFocused(mojo::Id new_focused_id, mojo::Id old_focused_id); |
| 31 void NotifyWindowActivated(mojo::Id new_active_id, mojo::Id old_active_id); | 31 void NotifyWindowActivated(mojo::Id new_active_id, mojo::Id old_active_id); |
| 32 void NotifyCaptureChanged(mojo::Id new_capture_id, mojo::Id old_capture_id); |
| 32 | 33 |
| 33 private: | 34 private: |
| 34 mojo::WindowManagerClient* client() { | 35 mojo::WindowManagerClient* client() { |
| 35 DCHECK(from_vm_); | 36 DCHECK(from_vm_); |
| 36 return binding_.client(); | 37 return binding_.client(); |
| 37 } | 38 } |
| 38 | 39 |
| 39 // mojo::WindowManager: | 40 // mojo::WindowManager: |
| 40 void Embed( | 41 void Embed( |
| 41 const mojo::String& url, | 42 const mojo::String& url, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 60 const bool from_vm_; | 61 const bool from_vm_; |
| 61 | 62 |
| 62 mojo::Binding<mojo::WindowManager> binding_; | 63 mojo::Binding<mojo::WindowManager> binding_; |
| 63 | 64 |
| 64 DISALLOW_COPY_AND_ASSIGN(WindowManagerImpl); | 65 DISALLOW_COPY_AND_ASSIGN(WindowManagerImpl); |
| 65 }; | 66 }; |
| 66 | 67 |
| 67 } // namespace window_manager | 68 } // namespace window_manager |
| 68 | 69 |
| 69 #endif // SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_IMPL_H_ | 70 #endif // SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_IMPL_H_ |
| OLD | NEW |