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

Side by Side Diff: ash/shelf/shelf_tooltip_manager.h

Issue 2000393003: ash: Reorder shutdown of ShelfLayoutManager and StatusAreaWidget (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 unified diff | Download patch
« no previous file with comments | « ash/shelf/shelf_layout_manager_unittest.cc ('k') | ash/shelf/shelf_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SHELF_SHELF_TOOLTIP_MANAGER_H_ 5 #ifndef ASH_SHELF_SHELF_TOOLTIP_MANAGER_H_
6 #define ASH_SHELF_SHELF_TOOLTIP_MANAGER_H_ 6 #define ASH_SHELF_SHELF_TOOLTIP_MANAGER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/shelf/shelf_layout_manager_observer.h" 9 #include "ash/shelf/shelf_layout_manager_observer.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 // views::PointerWatcher overrides: 66 // views::PointerWatcher overrides:
67 void OnMousePressed(const ui::MouseEvent& event, 67 void OnMousePressed(const ui::MouseEvent& event,
68 const gfx::Point& location_in_screen, 68 const gfx::Point& location_in_screen,
69 views::Widget* target) override; 69 views::Widget* target) override;
70 void OnTouchPressed(const ui::TouchEvent& event, 70 void OnTouchPressed(const ui::TouchEvent& event,
71 const gfx::Point& location_in_screen, 71 const gfx::Point& location_in_screen,
72 views::Widget* target) override; 72 views::Widget* target) override;
73 73
74 // ShelfLayoutManagerObserver overrides: 74 // ShelfLayoutManagerObserver overrides:
75 void WillDeleteShelf() override; 75 void WillDeleteShelfLayoutManager() override;
76 void WillChangeVisibilityState(ShelfVisibilityState new_state) override; 76 void WillChangeVisibilityState(ShelfVisibilityState new_state) override;
77 void OnAutoHideStateChanged(ShelfAutoHideState new_state) override; 77 void OnAutoHideStateChanged(ShelfAutoHideState new_state) override;
78 78
79 private: 79 private:
80 class ShelfTooltipBubble; 80 class ShelfTooltipBubble;
81 friend class test::ShelfViewTest; 81 friend class test::ShelfViewTest;
82 friend class test::ShelfTooltipManagerTest; 82 friend class test::ShelfTooltipManagerTest;
83 83
84 int timer_delay_; 84 int timer_delay_;
85 base::OneShotTimer timer_; 85 base::OneShotTimer timer_;
86 86
87 ShelfView* shelf_view_; 87 ShelfView* shelf_view_;
88 aura::Window* root_window_; 88 aura::Window* root_window_;
89 ShelfLayoutManager* shelf_layout_manager_; 89 ShelfLayoutManager* shelf_layout_manager_;
90 views::BubbleDialogDelegateView* bubble_; 90 views::BubbleDialogDelegateView* bubble_;
91 91
92 base::WeakPtrFactory<ShelfTooltipManager> weak_factory_; 92 base::WeakPtrFactory<ShelfTooltipManager> weak_factory_;
93 93
94 DISALLOW_COPY_AND_ASSIGN(ShelfTooltipManager); 94 DISALLOW_COPY_AND_ASSIGN(ShelfTooltipManager);
95 }; 95 };
96 96
97 } // namespace ash 97 } // namespace ash
98 98
99 #endif // ASH_SHELF_SHELF_TOOLTIP_MANAGER_H_ 99 #endif // ASH_SHELF_SHELF_TOOLTIP_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/shelf/shelf_layout_manager_unittest.cc ('k') | ash/shelf/shelf_tooltip_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698