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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 if (view && relative_view) | 358 if (view && relative_view) |
359 ViewPrivate(view).LocalReorder(relative_view, direction); | 359 ViewPrivate(view).LocalReorder(relative_view, direction); |
360 } | 360 } |
361 | 361 |
362 void ViewManagerClientImpl::OnViewDeleted(Id view_id) { | 362 void ViewManagerClientImpl::OnViewDeleted(Id view_id) { |
363 View* view = GetViewById(view_id); | 363 View* view = GetViewById(view_id); |
364 if (view) | 364 if (view) |
365 ViewPrivate(view).LocalDestroy(); | 365 ViewPrivate(view).LocalDestroy(); |
366 } | 366 } |
367 | 367 |
| 368 void ViewManagerClientImpl::OnViewVisibilityChanged(Id view_id, bool visible) { |
| 369 // TODO(sky): implement me. |
| 370 NOTIMPLEMENTED(); |
| 371 } |
| 372 |
| 373 void ViewManagerClientImpl::OnViewDrawnStateChanged(Id view_id, bool drawn) { |
| 374 // TODO(sky): implement me. |
| 375 NOTIMPLEMENTED(); |
| 376 } |
| 377 |
368 void ViewManagerClientImpl::OnViewInputEvent( | 378 void ViewManagerClientImpl::OnViewInputEvent( |
369 Id view_id, | 379 Id view_id, |
370 EventPtr event, | 380 EventPtr event, |
371 const Callback<void()>& ack_callback) { | 381 const Callback<void()>& ack_callback) { |
372 View* view = GetViewById(view_id); | 382 View* view = GetViewById(view_id); |
373 if (view) { | 383 if (view) { |
374 FOR_EACH_OBSERVER(ViewObserver, | 384 FOR_EACH_OBSERVER(ViewObserver, |
375 *ViewPrivate(view).observers(), | 385 *ViewPrivate(view).observers(), |
376 OnViewInputEvent(view, event)); | 386 OnViewInputEvent(view, event)); |
377 } | 387 } |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 base::Unretained(this)); | 450 base::Unretained(this)); |
441 } | 451 } |
442 | 452 |
443 base::Callback<void(ErrorCode)> | 453 base::Callback<void(ErrorCode)> |
444 ViewManagerClientImpl::ActionCompletedCallbackWithErrorCode() { | 454 ViewManagerClientImpl::ActionCompletedCallbackWithErrorCode() { |
445 return base::Bind(&ViewManagerClientImpl::OnActionCompletedWithErrorCode, | 455 return base::Bind(&ViewManagerClientImpl::OnActionCompletedWithErrorCode, |
446 base::Unretained(this)); | 456 base::Unretained(this)); |
447 } | 457 } |
448 | 458 |
449 } // namespace mojo | 459 } // namespace mojo |
OLD | NEW |