| 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 "ash/common/devtools/ash_devtools_css_agent.h" | 5 #include "ash/common/devtools/ash_devtools_css_agent.h" |
| 6 #include "ash/common/devtools/ash_devtools_dom_agent.h" | 6 #include "ash/common/devtools/ash_devtools_dom_agent.h" |
| 7 #include "ash/common/test/ash_test.h" | 7 #include "ash/common/test/ash_test.h" |
| 8 #include "ash/common/wm_lookup.h" | 8 #include "ash/common/wm_lookup.h" |
| 9 #include "ash/common/wm_root_window_controller.h" | 9 #include "ash/common/wm_root_window_controller.h" |
| 10 #include "ash/common/wm_shell.h" | 10 #include "ash/common/wm_shell.h" |
| 11 #include "ash/common/wm_window.h" | 11 #include "ash/common/wm_window.h" |
| 12 #include "base/memory/ptr_util.h" |
| 12 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
| 13 #include "ui/display/display.h" | 14 #include "ui/display/display.h" |
| 14 #include "ui/views/background.h" | 15 #include "ui/views/background.h" |
| 15 #include "ui/views/widget/native_widget_private.h" | 16 #include "ui/views/widget/native_widget_private.h" |
| 16 #include "ui/views/widget/widget.h" | 17 #include "ui/views/widget/widget.h" |
| 17 | 18 |
| 18 namespace ash { | 19 namespace ash { |
| 19 namespace { | 20 namespace { |
| 20 using namespace ui::devtools::protocol; | 21 using namespace ui::devtools::protocol; |
| 21 const int kDefaultChildNodeCount = -1; | 22 const int kDefaultChildNodeCount = -1; |
| (...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 762 EXPECT_EQ(gfx::Rect(25, 35, 45, 20), root_view->bounds()); // Not changed | 763 EXPECT_EQ(gfx::Rect(25, 35, 45, 20), root_view->bounds()); // Not changed |
| 763 | 764 |
| 764 SetStyleTexts(root_view_node, "\nheight: 73;\n ", true); | 765 SetStyleTexts(root_view_node, "\nheight: 73;\n ", true); |
| 765 EXPECT_EQ(gfx::Rect(25, 35, 45, 73), root_view->bounds()); | 766 EXPECT_EQ(gfx::Rect(25, 35, 45, 73), root_view->bounds()); |
| 766 | 767 |
| 767 SetStyleTexts(root_view_node, "\nx: 10; y: 23; width: 52;\n ", true); | 768 SetStyleTexts(root_view_node, "\nx: 10; y: 23; width: 52;\n ", true); |
| 768 EXPECT_EQ(gfx::Rect(10, 23, 52, 73), root_view->bounds()); | 769 EXPECT_EQ(gfx::Rect(10, 23, 52, 73), root_view->bounds()); |
| 769 } | 770 } |
| 770 | 771 |
| 771 } // namespace ash | 772 } // namespace ash |
| OLD | NEW |