| 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 <stddef.h> | 5 #include <stddef.h> |
| 6 #include <stdint.h> | 6 #include <stdint.h> |
| 7 | 7 |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 void OnWmPerformMoveLoop(aura::Window* window, | 73 void OnWmPerformMoveLoop(aura::Window* window, |
| 74 mojom::MoveLoopSource source, | 74 mojom::MoveLoopSource source, |
| 75 const gfx::Point& cursor_location, | 75 const gfx::Point& cursor_location, |
| 76 const base::Callback<void(bool)>& on_done) override { | 76 const base::Callback<void(bool)>& on_done) override { |
| 77 } | 77 } |
| 78 void OnWmCancelMoveLoop(aura::Window* window) override {} | 78 void OnWmCancelMoveLoop(aura::Window* window) override {} |
| 79 void OnWmSetClientArea( | 79 void OnWmSetClientArea( |
| 80 aura::Window* window, | 80 aura::Window* window, |
| 81 const gfx::Insets& insets, | 81 const gfx::Insets& insets, |
| 82 const std::vector<gfx::Rect>& additional_client_areas) override {} | 82 const std::vector<gfx::Rect>& additional_client_areas) override {} |
| 83 bool IsWindowActive(aura::Window* window) override { return true; } |
| 84 void OnWmDeactivateWindow(aura::Window* window) override {} |
| 83 | 85 |
| 84 private: | 86 private: |
| 85 DISALLOW_COPY_AND_ASSIGN(TestWindowManagerDelegate); | 87 DISALLOW_COPY_AND_ASSIGN(TestWindowManagerDelegate); |
| 86 }; | 88 }; |
| 87 | 89 |
| 88 class BoundsChangeObserver : public aura::WindowObserver { | 90 class BoundsChangeObserver : public aura::WindowObserver { |
| 89 public: | 91 public: |
| 90 explicit BoundsChangeObserver(aura::Window* window) : window_(window) { | 92 explicit BoundsChangeObserver(aura::Window* window) : window_(window) { |
| 91 window_->AddObserver(this); | 93 window_->AddObserver(this); |
| 92 } | 94 } |
| (...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 ASSERT_EQ(1u, top_level_in_wm->children().size()); | 759 ASSERT_EQ(1u, top_level_in_wm->children().size()); |
| 758 aura::Window* second_client_child_in_wm = top_level_in_wm->children()[0]; | 760 aura::Window* second_client_child_in_wm = top_level_in_wm->children()[0]; |
| 759 ASSERT_EQ(1u, second_client_child_in_wm->children().size()); | 761 ASSERT_EQ(1u, second_client_child_in_wm->children().size()); |
| 760 aura::Window* transient_in_wm = second_client_child_in_wm->children()[0]; | 762 aura::Window* transient_in_wm = second_client_child_in_wm->children()[0]; |
| 761 ASSERT_EQ(second_client_child_in_wm, | 763 ASSERT_EQ(second_client_child_in_wm, |
| 762 transient_window_client->GetTransientParent(transient_in_wm)); | 764 transient_window_client->GetTransientParent(transient_in_wm)); |
| 763 } | 765 } |
| 764 | 766 |
| 765 } // namespace ws | 767 } // namespace ws |
| 766 } // namespace ui | 768 } // namespace ui |
| OLD | NEW |