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

Unified Diff: ash/shelf/shelf_bezel_event_handler.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_bezel_event_handler.h ('k') | ash/shelf/shelf_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_bezel_event_handler.cc
diff --git a/ash/shelf/shelf_bezel_event_handler.cc b/ash/shelf/shelf_bezel_event_handler.cc
index 1545ea77b0e497ff47d69b574f4eae14e8a2256d..75b7445a3251234ab16f801e74c744f476e6ce29 100644
--- a/ash/shelf/shelf_bezel_event_handler.cc
+++ b/ash/shelf/shelf_bezel_event_handler.cc
@@ -4,7 +4,7 @@
#include "ash/shelf/shelf_bezel_event_handler.h"
-#include "ash/shelf/wm_shelf.h"
+#include "ash/shelf/shelf.h"
#include "ash/shell.h"
#include "ui/aura/window.h"
#include "ui/display/display.h"
@@ -16,7 +16,7 @@
namespace ash {
-ShelfBezelEventHandler::ShelfBezelEventHandler(WmShelf* shelf)
+ShelfBezelEventHandler::ShelfBezelEventHandler(Shelf* shelf)
: shelf_(shelf), in_touch_drag_(false) {
Shell::Get()->AddPreTargetHandler(this);
}
@@ -54,7 +54,7 @@ void ShelfBezelEventHandler::OnGestureEvent(ui::GestureEvent* event) {
bool ShelfBezelEventHandler::IsShelfOnBezel(const gfx::Rect& screen,
const gfx::Point& point) const {
- switch (shelf_->GetAlignment()) {
+ switch (shelf_->alignment()) {
case SHELF_ALIGNMENT_BOTTOM:
case SHELF_ALIGNMENT_BOTTOM_LOCKED:
return point.y() >= screen.bottom();
« no previous file with comments | « ash/shelf/shelf_bezel_event_handler.h ('k') | ash/shelf/shelf_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698