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

Side by Side Diff: ash/launcher/launcher_tooltip_manager.h

Issue 11316323: Cleanup enums for shelf (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: style 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/launcher/launcher_button_host.h ('k') | ash/launcher/launcher_tooltip_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_LAUNCHER_LAUNCHER_TOOLTIP_MANAGER_H_ 5 #ifndef ASH_LAUNCHER_LAUNCHER_TOOLTIP_MANAGER_H_
6 #define ASH_LAUNCHER_LAUNCHER_TOOLTIP_MANAGER_H_ 6 #define ASH_LAUNCHER_LAUNCHER_TOOLTIP_MANAGER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/shelf_types.h"
9 #include "ash/wm/session_state_observer.h" 10 #include "ash/wm/session_state_observer.h"
10 #include "ash/wm/shelf_layout_manager.h" 11 #include "ash/wm/shelf_layout_manager.h"
11 #include "ash/wm/shelf_types.h"
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/string16.h" 13 #include "base/string16.h"
14 #include "ui/base/events/event_handler.h" 14 #include "ui/base/events/event_handler.h"
15 #include "ui/gfx/rect.h" 15 #include "ui/gfx/rect.h"
16 #include "ui/views/bubble/bubble_border.h" 16 #include "ui/views/bubble/bubble_border.h"
17 #include "ui/views/bubble/bubble_delegate.h" 17 #include "ui/views/bubble/bubble_delegate.h"
18 18
19 namespace base { 19 namespace base {
20 class Timer; 20 class Timer;
21 } 21 }
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 virtual ui::EventResult OnTouchEvent(ui::TouchEvent* event) OVERRIDE; 77 virtual ui::EventResult OnTouchEvent(ui::TouchEvent* event) OVERRIDE;
78 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; 78 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
79 79
80 // SessionStateObserver override: 80 // SessionStateObserver override:
81 virtual void OnSessionStateEvent(SessionStateObserver::EventType event) 81 virtual void OnSessionStateEvent(SessionStateObserver::EventType event)
82 OVERRIDE; 82 OVERRIDE;
83 83
84 // ShelfLayoutManager::Observer overrides: 84 // ShelfLayoutManager::Observer overrides:
85 virtual void WillDeleteShelf() OVERRIDE; 85 virtual void WillDeleteShelf() OVERRIDE;
86 virtual void WillChangeVisibilityState( 86 virtual void WillChangeVisibilityState(
87 ShelfLayoutManager::VisibilityState new_state) OVERRIDE; 87 ShelfVisibilityState new_state) OVERRIDE;
88 virtual void OnAutoHideStateChanged( 88 virtual void OnAutoHideStateChanged(ShelfAutoHideState new_state) OVERRIDE;
89 ShelfLayoutManager::AutoHideState new_state) OVERRIDE;
90 89
91 private: 90 private:
92 class LauncherTooltipBubble; 91 class LauncherTooltipBubble;
93 friend class test::LauncherViewTest; 92 friend class test::LauncherViewTest;
94 friend class test::LauncherTooltipManagerTest; 93 friend class test::LauncherTooltipManagerTest;
95 94
96 void CancelHidingAnimation(); 95 void CancelHidingAnimation();
97 void CloseSoon(); 96 void CloseSoon();
98 void ShowInternal(); 97 void ShowInternal();
99 void CreateBubble(views::View* anchor, const string16& text); 98 void CreateBubble(views::View* anchor, const string16& text);
100 99
101 LauncherTooltipBubble* view_; 100 LauncherTooltipBubble* view_;
102 views::Widget* widget_; 101 views::Widget* widget_;
103 views::View* anchor_; 102 views::View* anchor_;
104 string16 text_; 103 string16 text_;
105 ShelfAlignment alignment_; 104 ShelfAlignment alignment_;
106 scoped_ptr<base::Timer> timer_; 105 scoped_ptr<base::Timer> timer_;
107 106
108 ShelfLayoutManager* shelf_layout_manager_; 107 ShelfLayoutManager* shelf_layout_manager_;
109 LauncherView* launcher_view_; 108 LauncherView* launcher_view_;
110 109
111 DISALLOW_COPY_AND_ASSIGN(LauncherTooltipManager); 110 DISALLOW_COPY_AND_ASSIGN(LauncherTooltipManager);
112 }; 111 };
113 112
114 } // namespace internal 113 } // namespace internal
115 } // namespace ash 114 } // namespace ash
116 115
117 #endif // ASH_LAUNCHER_LAUNCHER_TOOLTIP_MANAGER_H_ 116 #endif // ASH_LAUNCHER_LAUNCHER_TOOLTIP_MANAGER_H_
OLDNEW
« 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