| 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 #include "mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.h" | 5 #include "mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "mojo/public/cpp/application/application_connection.h" | 9 #include "mojo/public/cpp/application/application_connection.h" |
| 10 #include "mojo/public/cpp/application/connect.h" | 10 #include "mojo/public/cpp/application/connect.h" |
| (...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 817 *NodePrivate(blurred).observers(), | 817 *NodePrivate(blurred).observers(), |
| 818 OnNodeFocusChanged(focused, blurred)); | 818 OnNodeFocusChanged(focused, blurred)); |
| 819 } | 819 } |
| 820 if (focused) { | 820 if (focused) { |
| 821 FOR_EACH_OBSERVER(NodeObserver, | 821 FOR_EACH_OBSERVER(NodeObserver, |
| 822 *NodePrivate(focused).observers(), | 822 *NodePrivate(focused).observers(), |
| 823 OnNodeFocusChanged(focused, blurred)); | 823 OnNodeFocusChanged(focused, blurred)); |
| 824 } | 824 } |
| 825 } | 825 } |
| 826 | 826 |
| 827 void ViewManagerClientImpl::EmbedRoot(const String& url) { | 827 void ViewManagerClientImpl::Embed(const String& url) { |
| 828 window_manager_delegate_->EmbedRoot(url); | 828 window_manager_delegate_->Embed(url); |
| 829 } | 829 } |
| 830 | 830 |
| 831 void ViewManagerClientImpl::DispatchOnViewInputEvent(Id view_id, | 831 void ViewManagerClientImpl::DispatchOnViewInputEvent(Id view_id, |
| 832 EventPtr event) { | 832 EventPtr event) { |
| 833 window_manager_delegate_->DispatchEvent(GetViewById(view_id), event.Pass()); | 833 window_manager_delegate_->DispatchEvent(GetViewById(view_id), event.Pass()); |
| 834 } | 834 } |
| 835 | 835 |
| 836 //////////////////////////////////////////////////////////////////////////////// | 836 //////////////////////////////////////////////////////////////////////////////// |
| 837 // ViewManagerClientImpl, private: | 837 // ViewManagerClientImpl, private: |
| 838 | 838 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 882 | 882 |
| 883 // static | 883 // static |
| 884 void ViewManager::ConfigureIncomingConnection( | 884 void ViewManager::ConfigureIncomingConnection( |
| 885 ApplicationConnection* connection, | 885 ApplicationConnection* connection, |
| 886 ViewManagerDelegate* delegate) { | 886 ViewManagerDelegate* delegate) { |
| 887 connection->AddService<ViewManagerClientImpl>(delegate); | 887 connection->AddService<ViewManagerClientImpl>(delegate); |
| 888 } | 888 } |
| 889 | 889 |
| 890 } // namespace view_manager | 890 } // namespace view_manager |
| 891 } // namespace mojo | 891 } // namespace mojo |
| OLD | NEW |