| 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 27 matching lines...) Expand all Loading... |
| 38 return aura::WindowTreeClientPrivate(client).GetWindowByServerId(id); | 38 return aura::WindowTreeClientPrivate(client).GetWindowByServerId(id); |
| 39 } | 39 } |
| 40 | 40 |
| 41 class TestWindowManagerDelegate : public aura::WindowManagerDelegate { | 41 class TestWindowManagerDelegate : public aura::WindowManagerDelegate { |
| 42 public: | 42 public: |
| 43 TestWindowManagerDelegate() {} | 43 TestWindowManagerDelegate() {} |
| 44 ~TestWindowManagerDelegate() override {} | 44 ~TestWindowManagerDelegate() override {} |
| 45 | 45 |
| 46 // WindowManagerDelegate: | 46 // WindowManagerDelegate: |
| 47 void SetWindowManagerClient(aura::WindowManagerClient* client) override {} | 47 void SetWindowManagerClient(aura::WindowManagerClient* client) override {} |
| 48 void OnWmConnected() override {} |
| 48 void OnWmSetBounds(aura::Window* window, const gfx::Rect& bounds) override {} | 49 void OnWmSetBounds(aura::Window* window, const gfx::Rect& bounds) override {} |
| 49 bool OnWmSetProperty( | 50 bool OnWmSetProperty( |
| 50 aura::Window* window, | 51 aura::Window* window, |
| 51 const std::string& name, | 52 const std::string& name, |
| 52 std::unique_ptr<std::vector<uint8_t>>* new_data) override { | 53 std::unique_ptr<std::vector<uint8_t>>* new_data) override { |
| 53 return false; | 54 return false; |
| 54 } | 55 } |
| 55 void OnWmSetModalType(aura::Window* window, ui::ModalType type) override {} | 56 void OnWmSetModalType(aura::Window* window, ui::ModalType type) override {} |
| 56 void OnWmSetCanFocus(aura::Window* window, bool can_focus) override {} | 57 void OnWmSetCanFocus(aura::Window* window, bool can_focus) override {} |
| 57 aura::Window* OnWmCreateTopLevelWindow( | 58 aura::Window* OnWmCreateTopLevelWindow( |
| (...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 778 ASSERT_EQ(1u, top_level_in_wm->children().size()); | 779 ASSERT_EQ(1u, top_level_in_wm->children().size()); |
| 779 aura::Window* second_client_child_in_wm = top_level_in_wm->children()[0]; | 780 aura::Window* second_client_child_in_wm = top_level_in_wm->children()[0]; |
| 780 ASSERT_EQ(1u, second_client_child_in_wm->children().size()); | 781 ASSERT_EQ(1u, second_client_child_in_wm->children().size()); |
| 781 aura::Window* transient_in_wm = second_client_child_in_wm->children()[0]; | 782 aura::Window* transient_in_wm = second_client_child_in_wm->children()[0]; |
| 782 ASSERT_EQ(second_client_child_in_wm, | 783 ASSERT_EQ(second_client_child_in_wm, |
| 783 transient_window_client->GetTransientParent(transient_in_wm)); | 784 transient_window_client->GetTransientParent(transient_in_wm)); |
| 784 } | 785 } |
| 785 | 786 |
| 786 } // namespace ws | 787 } // namespace ws |
| 787 } // namespace ui | 788 } // namespace ui |
| OLD | NEW |