OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_STACK_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_STACK_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_STACK_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_STACK_VIEW_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
| 10 #include <memory> |
| 11 |
10 #include "base/macros.h" | 12 #include "base/macros.h" |
11 #include "base/memory/scoped_ptr.h" | |
12 #include "build/build_config.h" | 13 #include "build/build_config.h" |
13 #include "chrome/browser/ui/panels/native_panel_stack_window.h" | 14 #include "chrome/browser/ui/panels/native_panel_stack_window.h" |
14 #include "ui/gfx/animation/animation_delegate.h" | 15 #include "ui/gfx/animation/animation_delegate.h" |
15 #include "ui/views/focus/widget_focus_manager.h" | 16 #include "ui/views/focus/widget_focus_manager.h" |
16 #include "ui/views/widget/widget_delegate.h" | 17 #include "ui/views/widget/widget_delegate.h" |
17 #include "ui/views/widget/widget_observer.h" | 18 #include "ui/views/widget/widget_observer.h" |
18 | 19 |
19 #if defined(OS_WIN) | 20 #if defined(OS_WIN) |
20 #include "chrome/browser/ui/views/panels/taskbar_window_thumbnailer_win.h" | 21 #include "chrome/browser/ui/views/panels/taskbar_window_thumbnailer_win.h" |
21 #include "ui/base/win/hwnd_subclass.h" | 22 #include "ui/base/win/hwnd_subclass.h" |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 Panels panels_; | 123 Panels panels_; |
123 | 124 |
124 // Is the taskbar icon of the underlying window being flashed in order to | 125 // Is the taskbar icon of the underlying window being flashed in order to |
125 // draw the user's attention? | 126 // draw the user's attention? |
126 bool is_drawing_attention_; | 127 bool is_drawing_attention_; |
127 | 128 |
128 #if defined(OS_WIN) | 129 #if defined(OS_WIN) |
129 // The custom live preview snapshot is always provided for the stack window. | 130 // The custom live preview snapshot is always provided for the stack window. |
130 // This is because the system might not show the snapshot correctly for | 131 // This is because the system might not show the snapshot correctly for |
131 // a small window, like collapsed panel. | 132 // a small window, like collapsed panel. |
132 scoped_ptr<TaskbarWindowThumbnailerWin> thumbnailer_; | 133 std::unique_ptr<TaskbarWindowThumbnailerWin> thumbnailer_; |
133 #endif | 134 #endif |
134 | 135 |
135 // For batch bounds update. | 136 // For batch bounds update. |
136 bool animate_bounds_updates_; | 137 bool animate_bounds_updates_; |
137 bool bounds_updates_started_; | 138 bool bounds_updates_started_; |
138 BoundsUpdates bounds_updates_; | 139 BoundsUpdates bounds_updates_; |
139 | 140 |
140 // Used to animate the bounds changes at a synchronized pace. | 141 // Used to animate the bounds changes at a synchronized pace. |
141 scoped_ptr<gfx::LinearAnimation> bounds_animator_; | 142 std::unique_ptr<gfx::LinearAnimation> bounds_animator_; |
142 | 143 |
143 DISALLOW_COPY_AND_ASSIGN(PanelStackView); | 144 DISALLOW_COPY_AND_ASSIGN(PanelStackView); |
144 }; | 145 }; |
145 | 146 |
146 #endif // CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_STACK_VIEW_H_ | 147 #endif // CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_STACK_VIEW_H_ |
OLD | NEW |