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

Unified Diff: ash/shelf/shelf_window_targeter.cc

Issue 2899253002: chromeos: Rename ash::WmShelf to Shelf (Closed)
Patch Set: rebase Created 3 years, 7 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_window_targeter.h ('k') | ash/shelf/wm_shelf.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_window_targeter.cc
diff --git a/ash/shelf/shelf_window_targeter.cc b/ash/shelf/shelf_window_targeter.cc
index 6668ad53649a1637d3a9419c4106511b877e8c99..eb377a1dd203d3a8f3d69436873260af2da83af1 100644
--- a/ash/shelf/shelf_window_targeter.cc
+++ b/ash/shelf/shelf_window_targeter.cc
@@ -5,8 +5,8 @@
#include "ash/shelf/shelf_window_targeter.h"
#include "ash/public/cpp/shelf_types.h"
+#include "ash/shelf/shelf.h"
#include "ash/shelf/shelf_constants.h"
-#include "ash/shelf/wm_shelf.h"
#include "ash/wm_window.h"
#include "ui/aura/window.h"
@@ -24,7 +24,7 @@ gfx::Insets GetInsetsForAlignment(int distance, ShelfAlignment alignment) {
} // namespace
-ShelfWindowTargeter::ShelfWindowTargeter(WmWindow* container, WmShelf* shelf)
+ShelfWindowTargeter::ShelfWindowTargeter(WmWindow* container, Shelf* shelf)
: ::wm::EasyResizeWindowTargeter(WmWindow::GetAuraWindow(container),
gfx::Insets(),
gfx::Insets()),
@@ -52,13 +52,13 @@ void ShelfWindowTargeter::WillChangeVisibilityState(
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(kWorkspaceAreaVisibleInset,
- shelf_->GetAlignment());
+ mouse_insets =
+ GetInsetsForAlignment(kWorkspaceAreaVisibleInset, shelf_->alignment());
} 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(-kWorkspaceAreaAutoHideInset,
- shelf_->GetAlignment());
+ shelf_->alignment());
}
set_mouse_extend(mouse_insets);
« no previous file with comments | « ash/shelf/shelf_window_targeter.h ('k') | ash/shelf/wm_shelf.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698