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

Unified Diff: ash/shelf/shelf_tooltip_manager.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_tooltip_manager.h ('k') | ash/shelf/shelf_tooltip_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_tooltip_manager.cc
diff --git a/ash/shelf/shelf_tooltip_manager.cc b/ash/shelf/shelf_tooltip_manager.cc
index 0a0389c35f520f404a46ea58d1f1f7fcb114becd..abddb3d224645d6cf16182bf11fcc18d8b541b30 100644
--- a/ash/shelf/shelf_tooltip_manager.cc
+++ b/ash/shelf/shelf_tooltip_manager.cc
@@ -6,8 +6,8 @@
#include "ash/public/cpp/shell_window_ids.h"
#include "ash/root_window_controller.h"
+#include "ash/shelf/shelf.h"
#include "ash/shelf/shelf_view.h"
-#include "ash/shelf/wm_shelf.h"
#include "ash/shell_port.h"
#include "ash/system/tray/tray_constants.h"
#include "ash/wm_window.h"
@@ -124,14 +124,14 @@ ShelfTooltipManager::ShelfTooltipManager(ShelfView* shelf_view)
shelf_view_(shelf_view),
bubble_(nullptr),
weak_factory_(this) {
- shelf_view_->wm_shelf()->AddObserver(this);
+ shelf_view_->shelf()->AddObserver(this);
ShellPort::Get()->AddPointerWatcher(this,
views::PointerWatcherEventTypes::BASIC);
}
ShelfTooltipManager::~ShelfTooltipManager() {
ShellPort::Get()->RemovePointerWatcher(this);
- shelf_view_->wm_shelf()->RemoveObserver(this);
+ shelf_view_->shelf()->RemoveObserver(this);
WmWindow* window = nullptr;
if (shelf_view_->GetWidget())
window = WmWindow::Get(shelf_view_->GetWidget()->GetNativeWindow());
@@ -172,7 +172,7 @@ void ShelfTooltipManager::ShowTooltip(views::View* view) {
return;
views::BubbleBorder::Arrow arrow = views::BubbleBorder::Arrow::NONE;
- switch (shelf_view_->wm_shelf()->GetAlignment()) {
+ switch (shelf_view_->shelf()->alignment()) {
case SHELF_ALIGNMENT_BOTTOM:
case SHELF_ALIGNMENT_BOTTOM_LOCKED:
arrow = views::BubbleBorder::BOTTOM_CENTER;
@@ -253,7 +253,7 @@ void ShelfTooltipManager::OnAutoHideStateChanged(ShelfAutoHideState new_state) {
}
bool ShelfTooltipManager::ShouldShowTooltipForView(views::View* view) {
- WmShelf* shelf = shelf_view_ ? shelf_view_->wm_shelf() : nullptr;
+ Shelf* shelf = shelf_view_ ? shelf_view_->shelf() : nullptr;
return shelf && shelf_view_->ShouldShowTooltipForView(view) &&
(shelf->GetVisibilityState() == SHELF_VISIBLE ||
(shelf->GetVisibilityState() == SHELF_AUTO_HIDE &&
« no previous file with comments | « ash/shelf/shelf_tooltip_manager.h ('k') | ash/shelf/shelf_tooltip_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698