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

Side by Side Diff: chrome/browser/views/tabs/dragged_tab_view.h

Issue 7344: Convert GetPreferredSize from:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_VIEWS_TABS_DRAGGED_TAB_VIEW_H_ 5 #ifndef CHROME_BROWSER_VIEWS_TABS_DRAGGED_TAB_VIEW_H_
6 #define CHROME_BROWSER_VIEWS_TABS_DRAGGED_TAB_VIEW_H_ 6 #define CHROME_BROWSER_VIEWS_TABS_DRAGGED_TAB_VIEW_H_
7 7
8 #include "base/gfx/point.h" 8 #include "base/gfx/point.h"
9 #include "base/gfx/size.h" 9 #include "base/gfx/size.h"
10 #include "base/task.h" 10 #include "base/task.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 private: 55 private:
56 // Overridden from AnimationDelegate: 56 // Overridden from AnimationDelegate:
57 virtual void AnimationProgressed(const Animation* animation); 57 virtual void AnimationProgressed(const Animation* animation);
58 virtual void AnimationEnded(const Animation* animation); 58 virtual void AnimationEnded(const Animation* animation);
59 virtual void AnimationCanceled(const Animation* animation); 59 virtual void AnimationCanceled(const Animation* animation);
60 60
61 // Overridden from ChromeViews::View: 61 // Overridden from ChromeViews::View:
62 virtual void Paint(ChromeCanvas* canvas); 62 virtual void Paint(ChromeCanvas* canvas);
63 virtual void Layout(); 63 virtual void Layout();
64 virtual void GetPreferredSize(CSize* out); 64 virtual gfx::Size GetPreferredSize();
65 65
66 // Paint the view, when it's attached to a TabStrip. 66 // Paint the view, when it's attached to a TabStrip.
67 void PaintAttachedTab(ChromeCanvas* canvas); 67 void PaintAttachedTab(ChromeCanvas* canvas);
68 68
69 // Paint the view, when it's not attached to any TabStrip. 69 // Paint the view, when it's not attached to any TabStrip.
70 void PaintDetachedView(ChromeCanvas* canvas); 70 void PaintDetachedView(ChromeCanvas* canvas);
71 71
72 // Resizes the container to fit the content for the current attachment mode. 72 // Resizes the container to fit the content for the current attachment mode.
73 void ResizeContainer(); 73 void ResizeContainer();
74 74
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 // The start and end bounds of the animation sequence. 111 // The start and end bounds of the animation sequence.
112 gfx::Rect animation_start_bounds_; 112 gfx::Rect animation_start_bounds_;
113 gfx::Rect animation_end_bounds_; 113 gfx::Rect animation_end_bounds_;
114 114
115 DISALLOW_EVIL_CONSTRUCTORS(DraggedTabView); 115 DISALLOW_EVIL_CONSTRUCTORS(DraggedTabView);
116 }; 116 };
117 117
118 #endif // CHROME_BROWSER_VIEWS_TABS_DRAGGED_TAB_VIEW_H_ 118 #endif // CHROME_BROWSER_VIEWS_TABS_DRAGGED_TAB_VIEW_H_
119 119
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698