Index: ash/mus/touch_hud_layout.cc |
diff --git a/ash/mus/screenlock_layout.cc b/ash/mus/touch_hud_layout.cc |
similarity index 55% |
copy from ash/mus/screenlock_layout.cc |
copy to ash/mus/touch_hud_layout.cc |
index 0cedefc937975df98cde9e23d8ec12cf04aa7214..93a4b45032caf835ffa6ae4300cdd53e95cb8fb8 100644 |
--- a/ash/mus/screenlock_layout.cc |
+++ b/ash/mus/touch_hud_layout.cc |
@@ -2,7 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "ash/mus/screenlock_layout.h" |
+#include "ash/mus/touch_hud_layout.h" |
#include "ash/mus/property_util.h" |
#include "services/ui/public/cpp/property_type_converters.h" |
@@ -13,17 +13,11 @@ |
namespace ash { |
namespace mus { |
-ScreenlockLayout::ScreenlockLayout(::ui::Window* owner) |
- : LayoutManager(owner) {} |
-ScreenlockLayout::~ScreenlockLayout() {} |
+TouchHudLayout::TouchHudLayout(::ui::Window* owner) : LayoutManager(owner) {} |
+TouchHudLayout::~TouchHudLayout() {} |
-// We explicitly don't make assertions about the number of children in this |
-// layout as the number of children can vary when the application providing the |
-// screenlock restarts. |
- |
-void ScreenlockLayout::LayoutWindow(::ui::Window* window) { |
+void TouchHudLayout::LayoutWindow(::ui::Window* window) { |
gfx::Rect bounds = owner()->bounds(); |
- bounds.Inset(-25, -25); |
window->SetBounds(bounds); |
} |