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

Side by Side Diff: chrome/browser/ui/views/panels/panel_view.h

Issue 1708343002: Add ScopedKeepAlive to c/b/lifetime (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove KeepAliveOrigin::TEST Created 4 years, 9 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 CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_VIEW_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
11 #include "chrome/browser/ui/panels/native_panel.h" 11 #include "chrome/browser/ui/panels/native_panel.h"
12 #include "ui/gfx/animation/animation_delegate.h" 12 #include "ui/gfx/animation/animation_delegate.h"
13 #include "ui/views/widget/widget_delegate.h" 13 #include "ui/views/widget/widget_delegate.h"
14 #include "ui/views/widget/widget_observer.h" 14 #include "ui/views/widget/widget_observer.h"
15 15
16 #if defined(OS_WIN) 16 #if defined(OS_WIN)
17 #include "ui/base/win/hwnd_subclass.h" 17 #include "ui/base/win/hwnd_subclass.h"
18 #endif 18 #endif
19 19
20 class AutoKeepAlive; 20 class ScopedKeepAlive;
21 class Panel; 21 class Panel;
22 class PanelBoundsAnimation; 22 class PanelBoundsAnimation;
23 class PanelFrameView; 23 class PanelFrameView;
24 class TaskbarWindowThumbnailerWin; 24 class TaskbarWindowThumbnailerWin;
25 25
26 namespace views { 26 namespace views {
27 class WebView; 27 class WebView;
28 } 28 }
29 29
30 class PanelView : public NativePanel, 30 class PanelView : public NativePanel,
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 bool is_drawing_attention_; 233 bool is_drawing_attention_;
234 234
235 // Should we force to paint the panel as inactive? This is needed when we need 235 // Should we force to paint the panel as inactive? This is needed when we need
236 // to capture the screenshot before an active panel goes minimized. 236 // to capture the screenshot before an active panel goes minimized.
237 bool force_to_paint_as_inactive_; 237 bool force_to_paint_as_inactive_;
238 238
239 // The last view that had focus in the panel. This is saved so that focus can 239 // The last view that had focus in the panel. This is saved so that focus can
240 // be restored properly when a drag ends. 240 // be restored properly when a drag ends.
241 views::View* old_focused_view_; 241 views::View* old_focused_view_;
242 242
243 scoped_ptr<AutoKeepAlive> keep_alive_; 243 scoped_ptr<ScopedKeepAlive> keep_alive_;
244 244
245 #if defined(OS_WIN) 245 #if defined(OS_WIN)
246 // Used to provide custom taskbar thumbnail for Windows 7 and later. 246 // Used to provide custom taskbar thumbnail for Windows 7 and later.
247 scoped_ptr<TaskbarWindowThumbnailerWin> thumbnailer_; 247 scoped_ptr<TaskbarWindowThumbnailerWin> thumbnailer_;
248 #endif 248 #endif
249 249
250 DISALLOW_COPY_AND_ASSIGN(PanelView); 250 DISALLOW_COPY_AND_ASSIGN(PanelView);
251 }; 251 };
252 252
253 #endif // CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_VIEW_H_ 253 #endif // CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/auto_keep_alive.cc ('k') | chrome/browser/ui/views/panels/panel_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698