OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "mash/simple_wm/simple_wm.h" | 5 #include "mash/simple_wm/simple_wm.h" |
6 | 6 |
7 #include "base/observer_list.h" | 7 #include "base/observer_list.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "mash/simple_wm/move_event_handler.h" | 9 #include "mash/simple_wm/move_event_handler.h" |
10 #include "ui/aura/client/aura_constants.h" | 10 #include "ui/aura/client/aura_constants.h" |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 | 457 |
458 return client_window; | 458 return client_window; |
459 } | 459 } |
460 | 460 |
461 void SimpleWM::OnWmClientJankinessChanged( | 461 void SimpleWM::OnWmClientJankinessChanged( |
462 const std::set<aura::Window*>& client_windows, | 462 const std::set<aura::Window*>& client_windows, |
463 bool janky) { | 463 bool janky) { |
464 // Don't care. | 464 // Don't care. |
465 } | 465 } |
466 | 466 |
| 467 void SimpleWM::OnWmBuildDragImage(const gfx::Point& cursor_location, |
| 468 const SkBitmap& drag_image, |
| 469 const gfx::Vector2d& drag_image_offset, |
| 470 ui::mojom::DragEventSource source) {} |
| 471 |
| 472 void SimpleWM::OnWmMoveDragImage(const gfx::Point& cursor_location) {} |
| 473 |
| 474 void SimpleWM::OnWmDestroyDragImage() {} |
| 475 |
467 void SimpleWM::OnWmWillCreateDisplay(const display::Display& display) { | 476 void SimpleWM::OnWmWillCreateDisplay(const display::Display& display) { |
468 screen_->display_list().AddDisplay(display, | 477 screen_->display_list().AddDisplay(display, |
469 display::DisplayList::Type::PRIMARY); | 478 display::DisplayList::Type::PRIMARY); |
470 } | 479 } |
471 | 480 |
472 void SimpleWM::OnWmNewDisplay( | 481 void SimpleWM::OnWmNewDisplay( |
473 std::unique_ptr<aura::WindowTreeHostMus> window_tree_host, | 482 std::unique_ptr<aura::WindowTreeHostMus> window_tree_host, |
474 const display::Display& display) { | 483 const display::Display& display) { |
475 // Only handles a single root. | 484 // Only handles a single root. |
476 DCHECK(!window_root_); | 485 DCHECK(!window_root_); |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
578 } | 587 } |
579 | 588 |
580 void SimpleWM::OnWindowListViewItemActivated(aura::Window* window) { | 589 void SimpleWM::OnWindowListViewItemActivated(aura::Window* window) { |
581 window->Show(); | 590 window->Show(); |
582 aura::client::ActivationClient* activation_client = | 591 aura::client::ActivationClient* activation_client = |
583 aura::client::GetActivationClient(window->GetRootWindow()); | 592 aura::client::GetActivationClient(window->GetRootWindow()); |
584 activation_client->ActivateWindow(window); | 593 activation_client->ActivateWindow(window); |
585 } | 594 } |
586 | 595 |
587 } // namespace simple_wm | 596 } // namespace simple_wm |
OLD | NEW |