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

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

Issue 1867223004: Convert //ash from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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_SHELF_SHELF_WIDGET_H_ 5 #ifndef ASH_SHELF_SHELF_WIDGET_H_
6 #define ASH_SHELF_SHELF_WIDGET_H_ 6 #define ASH_SHELF_SHELF_WIDGET_H_
7 7
oshima 2016/04/08 07:09:41 include?
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/shelf/background_animator.h" 9 #include "ash/shelf/background_animator.h"
10 #include "ash/shelf/shelf_layout_manager_observer.h" 10 #include "ash/shelf/shelf_layout_manager_observer.h"
11 #include "ash/shelf/shelf_types.h" 11 #include "ash/shelf/shelf_types.h"
12 #include "ui/views/widget/widget.h" 12 #include "ui/views/widget/widget.h"
13 #include "ui/views/widget/widget_observer.h" 13 #include "ui/views/widget/widget_observer.h"
14 14
15 namespace aura { 15 namespace aura {
16 class Window; 16 class Window;
17 } 17 }
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // Disable dimming animations for running tests. 93 // Disable dimming animations for running tests.
94 void DisableDimmingAnimationsForTest(); 94 void DisableDimmingAnimationsForTest();
95 95
96 // ShelfLayoutManagerObserver overrides: 96 // ShelfLayoutManagerObserver overrides:
97 void WillDeleteShelf() override; 97 void WillDeleteShelf() override;
98 98
99 private: 99 private:
100 class DelegateView; 100 class DelegateView;
101 101
102 ShelfLayoutManager* shelf_layout_manager_; 102 ShelfLayoutManager* shelf_layout_manager_;
103 scoped_ptr<Shelf> shelf_; 103 std::unique_ptr<Shelf> shelf_;
104 StatusAreaWidget* status_area_widget_; 104 StatusAreaWidget* status_area_widget_;
105 105
106 // delegate_view_ is attached to window_container_ and is cleaned up 106 // delegate_view_ is attached to window_container_ and is cleaned up
107 // during CloseChildWindows of the associated RootWindowController. 107 // during CloseChildWindows of the associated RootWindowController.
108 DelegateView* delegate_view_; 108 DelegateView* delegate_view_;
109 BackgroundAnimator background_animator_; 109 BackgroundAnimator background_animator_;
110 bool activating_as_fallback_; 110 bool activating_as_fallback_;
111 aura::Window* window_container_; 111 aura::Window* window_container_;
112 }; 112 };
113 113
114 } // namespace ash 114 } // namespace ash
115 115
116 #endif // ASH_SHELF_SHELF_WIDGET_H_ 116 #endif // ASH_SHELF_SHELF_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698