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

Unified Diff: ash/launcher/launcher_tooltip_manager.h

Issue 11434099: Use the correct launcher assets for shelf alignment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years 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/launcher/launcher_button_host.h ('k') | ash/launcher/launcher_tooltip_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/launcher/launcher_tooltip_manager.h
diff --git a/ash/launcher/launcher_tooltip_manager.h b/ash/launcher/launcher_tooltip_manager.h
index 0e2c6609295970a035d89856dc6d5466e50ecb83..8bb764f757ccc287740e436100b739fa950683d6 100644
--- a/ash/launcher/launcher_tooltip_manager.h
+++ b/ash/launcher/launcher_tooltip_manager.h
@@ -40,11 +40,14 @@ class ASH_EXPORT LauncherTooltipManager : public ui::EventHandler,
public ShelfLayoutManager::Observer,
public SessionStateObserver {
public:
- LauncherTooltipManager(ShelfAlignment alignment,
- ShelfLayoutManager* shelf_layout_manager,
+ LauncherTooltipManager(ShelfLayoutManager* shelf_layout_manager,
LauncherView* launcher_view);
virtual ~LauncherTooltipManager();
+ ShelfLayoutManager* shelf_layout_manager() {
+ return shelf_layout_manager_;
+ }
+
// Called when the bubble is closed.
void OnBubbleClosed(views::BubbleDelegateView* view);
@@ -59,7 +62,7 @@ class ASH_EXPORT LauncherTooltipManager : public ui::EventHandler,
// Changes the arrow location of the tooltip in case that the launcher
// arrangement has changed.
- void SetArrowLocation(ShelfAlignment alignment);
+ void UpdateArrowLocation();
// Resets the timer for the delayed showing |view_|. If the timer isn't
// running, it starts a new timer.
@@ -101,7 +104,6 @@ protected:
views::Widget* widget_;
views::View* anchor_;
string16 text_;
- ShelfAlignment alignment_;
scoped_ptr<base::Timer> timer_;
ShelfLayoutManager* shelf_layout_manager_;
« no previous file with comments | « ash/launcher/launcher_button_host.h ('k') | ash/launcher/launcher_tooltip_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698