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

Unified Diff: ash/shelf/shelf_widget.cc

Issue 1998933002: Update shelf spacing in Chrome OS according to the MD specs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 6 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/shelf/shelf_view_unittest.cc ('k') | ash/system/status_area_widget_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_widget.cc
diff --git a/ash/shelf/shelf_widget.cc b/ash/shelf/shelf_widget.cc
index 9c6ea09e47ceb3b30eb83bbfe3b3e5b31d49cc67..28757a2ed26e404c356679080633f7e6e2f2430b 100644
--- a/ash/shelf/shelf_widget.cc
+++ b/ash/shelf/shelf_widget.cc
@@ -276,15 +276,13 @@ class ShelfWindowTargeter : public ::wm::EasyResizeWindowTargeter,
if (new_state == SHELF_VISIBLE) {
// Let clicks at the very top of the shelf through so windows can be
// resized with the bottom-right corner and bottom edge.
- mouse_insets = GetInsetsForAlignment(
- ShelfLayoutManager::kWorkspaceAreaVisibleInset,
- shelf_->GetAlignment());
+ mouse_insets = GetInsetsForAlignment(kWorkspaceAreaVisibleInset,
+ shelf_->GetAlignment());
} else if (new_state == SHELF_AUTO_HIDE) {
// Extend the touch hit target out a bit to allow users to drag shelf out
// while hidden.
- touch_insets = GetInsetsForAlignment(
- -ShelfLayoutManager::kWorkspaceAreaAutoHideInset,
- shelf_->GetAlignment());
+ touch_insets = GetInsetsForAlignment(-kWorkspaceAreaAutoHideInset,
+ shelf_->GetAlignment());
}
set_mouse_extend(mouse_insets);
« no previous file with comments | « ash/shelf/shelf_view_unittest.cc ('k') | ash/system/status_area_widget_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698