| 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/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 if (window_manager_delegate_) | 359 if (window_manager_delegate_) |
| 360 window_manager_delegate_->Embed(url, service_provider.Pass()); | 360 window_manager_delegate_->Embed(url, service_provider.Pass()); |
| 361 } | 361 } |
| 362 | 362 |
| 363 void ViewManagerClientImpl::DispatchOnViewInputEvent(EventPtr event) { | 363 void ViewManagerClientImpl::DispatchOnViewInputEvent(EventPtr event) { |
| 364 if (window_manager_delegate_) | 364 if (window_manager_delegate_) |
| 365 window_manager_delegate_->DispatchEvent(event.Pass()); | 365 window_manager_delegate_->DispatchEvent(event.Pass()); |
| 366 } | 366 } |
| 367 | 367 |
| 368 //////////////////////////////////////////////////////////////////////////////// | 368 //////////////////////////////////////////////////////////////////////////////// |
| 369 // ViewManagerClientImpl, WindowManagerClient implementation: | 369 // ViewManagerClientImpl, WindowManagerClient2 implementation: |
| 370 | 370 |
| 371 void ViewManagerClientImpl::OnWindowManagerReady() {} | 371 void ViewManagerClientImpl::OnWindowManagerReady() {} |
| 372 | 372 |
| 373 void ViewManagerClientImpl::OnCaptureChanged(Id old_capture_view_id, | 373 void ViewManagerClientImpl::OnCaptureChanged(Id old_capture_view_id, |
| 374 Id new_capture_view_id) {} | 374 Id new_capture_view_id) {} |
| 375 | 375 |
| 376 void ViewManagerClientImpl::OnFocusChanged(Id old_focused_view_id, | 376 void ViewManagerClientImpl::OnFocusChanged(Id old_focused_view_id, |
| 377 Id new_focused_view_id) { | 377 Id new_focused_view_id) { |
| 378 View* focused = GetViewById(new_focused_view_id); | 378 View* focused = GetViewById(new_focused_view_id); |
| 379 View* blurred = GetViewById(old_focused_view_id); | 379 View* blurred = GetViewById(old_focused_view_id); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 base::Unretained(this)); | 416 base::Unretained(this)); |
| 417 } | 417 } |
| 418 | 418 |
| 419 base::Callback<void(ErrorCode)> | 419 base::Callback<void(ErrorCode)> |
| 420 ViewManagerClientImpl::ActionCompletedCallbackWithErrorCode() { | 420 ViewManagerClientImpl::ActionCompletedCallbackWithErrorCode() { |
| 421 return base::Bind(&ViewManagerClientImpl::OnActionCompletedWithErrorCode, | 421 return base::Bind(&ViewManagerClientImpl::OnActionCompletedWithErrorCode, |
| 422 base::Unretained(this)); | 422 base::Unretained(this)); |
| 423 } | 423 } |
| 424 | 424 |
| 425 } // namespace mojo | 425 } // namespace mojo |
| OLD | NEW |