summaryrefslogtreecommitdiffstats
path: root/ash/shelf/shelf_tooltip_manager.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-18 01:30:04 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-18 01:30:04 +0000
commit99c5ed8e3fd3a26b79a7e7c91235bb0ad23cc30b (patch)
treed9244fe9e4e1a07f07a79d87b832ed01bcb89352 /ash/shelf/shelf_tooltip_manager.cc
parent466b2c53add7fbad7e447729fbd3268c3be66361 (diff)
downloadchromium_src-99c5ed8e3fd3a26b79a7e7c91235bb0ad23cc30b.zip
chromium_src-99c5ed8e3fd3a26b79a7e7c91235bb0ad23cc30b.tar.gz
chromium_src-99c5ed8e3fd3a26b79a7e7c91235bb0ad23cc30b.tar.bz2
ash: Move launcher_view* to shelf/ directory.
BUG=248353 TEST=none, no functional changes. R=jamescook@chromium.org, xiyuan@chromium.org TBR=sky@chromium.org # for chrome/browser/ui Review URL: https://codereview.chromium.org/27628002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229274 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shelf/shelf_tooltip_manager.cc')
-rw-r--r--ash/shelf/shelf_tooltip_manager.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/ash/shelf/shelf_tooltip_manager.cc b/ash/shelf/shelf_tooltip_manager.cc
index 8bfb53a..bdf3306 100644
--- a/ash/shelf/shelf_tooltip_manager.cc
+++ b/ash/shelf/shelf_tooltip_manager.cc
@@ -4,8 +4,8 @@
#include "ash/shelf/shelf_tooltip_manager.h"
-#include "ash/launcher/launcher_view.h"
#include "ash/shelf/shelf_layout_manager.h"
+#include "ash/shelf/shelf_view.h"
#include "ash/shell.h"
#include "ash/shell_window_ids.h"
#include "ash/wm/window_animations.h"
@@ -138,12 +138,12 @@ gfx::Size ShelfTooltipManager::ShelfTooltipBubble::GetPreferredSize() {
ShelfTooltipManager::ShelfTooltipManager(
ShelfLayoutManager* shelf_layout_manager,
- LauncherView* launcher_view)
+ ShelfView* shelf_view)
: view_(NULL),
widget_(NULL),
anchor_(NULL),
shelf_layout_manager_(shelf_layout_manager),
- launcher_view_(launcher_view),
+ shelf_view_(shelf_view),
weak_factory_(this) {
if (shelf_layout_manager)
shelf_layout_manager->AddObserver(this);
@@ -253,7 +253,7 @@ void ShelfTooltipManager::OnMouseEvent(ui::MouseEvent* event) {
return;
DCHECK(view_);
- DCHECK(launcher_view_);
+ DCHECK(shelf_view_);
// Pressing the mouse button anywhere should close the tooltip.
if (event->type() == ui::ET_MOUSE_PRESSED) {
@@ -267,12 +267,12 @@ void ShelfTooltipManager::OnMouseEvent(ui::MouseEvent* event) {
return;
}
- gfx::Point location_in_launcher_view = event->location();
+ gfx::Point location_in_shelf_view = event->location();
aura::Window::ConvertPointToTarget(
- target, launcher_view_->GetWidget()->GetNativeWindow(),
- &location_in_launcher_view);
+ target, shelf_view_->GetWidget()->GetNativeWindow(),
+ &location_in_shelf_view);
- if (launcher_view_->ShouldHideTooltip(location_in_launcher_view)) {
+ if (shelf_view_->ShouldHideTooltip(location_in_shelf_view)) {
// Because this mouse event may arrive to |view_|, here we just schedule
// the closing event rather than directly calling Close().
CloseSoon();