Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Unified Diff: ash/mus/touch_hud_layout.cc

Issue 2092343002: Touch HUD app for mustash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change window manager connection unittest to original Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/mus/touch_hud_layout.h ('k') | ash/public/interfaces/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « ash/mus/touch_hud_layout.h ('k') | ash/public/interfaces/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698