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

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

Issue 23531053: ui/base/animation -> ui/gfx/animation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge 2 trunk Created 7 years, 3 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 | Annotate | Revision Log
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/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/ui/panels/native_panel.h" 9 #include "chrome/browser/ui/panels/native_panel.h"
10 #include "ui/base/animation/animation_delegate.h" 10 #include "ui/gfx/animation/animation_delegate.h"
11 #include "ui/views/widget/widget_delegate.h" 11 #include "ui/views/widget/widget_delegate.h"
12 #include "ui/views/widget/widget_observer.h" 12 #include "ui/views/widget/widget_observer.h"
13 13
14 #if defined(OS_WIN) 14 #if defined(OS_WIN)
15 #include "ui/base/win/hwnd_subclass.h" 15 #include "ui/base/win/hwnd_subclass.h"
16 #endif 16 #endif
17 17
18 class Panel; 18 class Panel;
19 class PanelBoundsAnimation; 19 class PanelBoundsAnimation;
20 class PanelFrameView; 20 class PanelFrameView;
21 class TaskbarWindowThumbnailerWin; 21 class TaskbarWindowThumbnailerWin;
22 22
23 namespace views { 23 namespace views {
24 class WebView; 24 class WebView;
25 } 25 }
26 26
27 class PanelView : public NativePanel, 27 class PanelView : public NativePanel,
28 public views::WidgetObserver, 28 public views::WidgetObserver,
29 public views::WidgetDelegateView, 29 public views::WidgetDelegateView,
30 #if defined(OS_WIN) 30 #if defined(OS_WIN)
31 public ui::HWNDMessageFilter, 31 public ui::HWNDMessageFilter,
32 #endif 32 #endif
33 public ui::AnimationDelegate { 33 public gfx::AnimationDelegate {
34 public: 34 public:
35 // The size of inside area used for mouse resizing. 35 // The size of inside area used for mouse resizing.
36 static const int kResizeInsideBoundsSize = 5; 36 static const int kResizeInsideBoundsSize = 5;
37 37
38 PanelView(Panel* panel, const gfx::Rect& bounds, bool always_on_top); 38 PanelView(Panel* panel, const gfx::Rect& bounds, bool always_on_top);
39 virtual ~PanelView(); 39 virtual ~PanelView();
40 40
41 // Overridden from NativePanel: 41 // Overridden from NativePanel:
42 virtual void ShowPanel() OVERRIDE; 42 virtual void ShowPanel() OVERRIDE;
43 virtual void ShowPanelInactive() OVERRIDE; 43 virtual void ShowPanelInactive() OVERRIDE;
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // Overridden from ui::HWNDMessageFilter: 151 // Overridden from ui::HWNDMessageFilter:
152 #if defined(OS_WIN) 152 #if defined(OS_WIN)
153 virtual bool FilterMessage(HWND hwnd, 153 virtual bool FilterMessage(HWND hwnd,
154 UINT message, 154 UINT message,
155 WPARAM w_param, 155 WPARAM w_param,
156 LPARAM l_param, 156 LPARAM l_param,
157 LRESULT* l_result) OVERRIDE; 157 LRESULT* l_result) OVERRIDE;
158 #endif 158 #endif
159 159
160 // Overridden from AnimationDelegate: 160 // Overridden from AnimationDelegate:
161 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; 161 virtual void AnimationEnded(const gfx::Animation* animation) OVERRIDE;
162 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; 162 virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE;
163 163
164 void UpdateLoadingAnimations(bool should_animate); 164 void UpdateLoadingAnimations(bool should_animate);
165 void UpdateWindowTitle(); 165 void UpdateWindowTitle();
166 void UpdateWindowIcon(); 166 void UpdateWindowIcon();
167 void SetBoundsInternal(const gfx::Rect& bounds, bool animate); 167 void SetBoundsInternal(const gfx::Rect& bounds, bool animate);
168 bool EndDragging(bool cancelled); 168 bool EndDragging(bool cancelled);
169 void OnViewWasResized(); 169 void OnViewWasResized();
170 170
171 // Sets the bounds of the underlying window to |new_bounds|. Note that this 171 // Sets the bounds of the underlying window to |new_bounds|. Note that this
172 // might update the window style to work around the minimum overlapped 172 // might update the window style to work around the minimum overlapped
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 248
249 #if defined(OS_WIN) 249 #if defined(OS_WIN)
250 // Used to provide custom taskbar thumbnail for Windows 7 and later. 250 // Used to provide custom taskbar thumbnail for Windows 7 and later.
251 scoped_ptr<TaskbarWindowThumbnailerWin> thumbnailer_; 251 scoped_ptr<TaskbarWindowThumbnailerWin> thumbnailer_;
252 #endif 252 #endif
253 253
254 DISALLOW_COPY_AND_ASSIGN(PanelView); 254 DISALLOW_COPY_AND_ASSIGN(PanelView);
255 }; 255 };
256 256
257 #endif // CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_VIEW_H_ 257 #endif // CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/panels/panel_stack_view.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