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

Side by Side Diff: ash/launcher/launcher_view.h

Issue 9703026: Makes the maximize/restore button handling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporate review feedback Created 8 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 | Annotate | Revision Log
« no previous file with comments | « ash/launcher/launcher_delegate.h ('k') | ash/launcher/launcher_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_LAUNCHER_LAUNCHER_VIEW_H_ 5 #ifndef ASH_LAUNCHER_LAUNCHER_VIEW_H_
6 #define ASH_LAUNCHER_LAUNCHER_VIEW_H_ 6 #define ASH_LAUNCHER_LAUNCHER_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 LauncherView* launcher_view_; 53 LauncherView* launcher_view_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(TestAPI); 55 DISALLOW_COPY_AND_ASSIGN(TestAPI);
56 }; 56 };
57 57
58 LauncherView(LauncherModel* model, LauncherDelegate* delegate); 58 LauncherView(LauncherModel* model, LauncherDelegate* delegate);
59 virtual ~LauncherView(); 59 virtual ~LauncherView();
60 60
61 void Init(); 61 void Init();
62 62
63 // Returns the ideal bounds of the specified item, or an empty rect if id
64 // isn't know.
65 gfx::Rect GetIdealBoundsOfItemIcon(LauncherID id);
66
63 private: 67 private:
64 class FadeOutAnimationDelegate; 68 class FadeOutAnimationDelegate;
65 class StartFadeAnimationDelegate; 69 class StartFadeAnimationDelegate;
66 70
67 struct IdealBounds { 71 struct IdealBounds {
68 gfx::Rect overflow_bounds; 72 gfx::Rect overflow_bounds;
69 }; 73 };
70 74
71 // Sets the bounds of each view to its ideal bounds. 75 // Sets the bounds of each view to its ideal bounds.
72 void LayoutToIdealBounds(); 76 void LayoutToIdealBounds();
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 // Used to handle cycling among windows. 185 // Used to handle cycling among windows.
182 scoped_ptr<LauncherWindowCycler> cycler_; 186 scoped_ptr<LauncherWindowCycler> cycler_;
183 187
184 DISALLOW_COPY_AND_ASSIGN(LauncherView); 188 DISALLOW_COPY_AND_ASSIGN(LauncherView);
185 }; 189 };
186 190
187 } // namespace internal 191 } // namespace internal
188 } // namespace ash 192 } // namespace ash
189 193
190 #endif // ASH_LAUNCHER_LAUNCHER_VIEW_H_ 194 #endif // ASH_LAUNCHER_LAUNCHER_VIEW_H_
OLDNEW
« no previous file with comments | « ash/launcher/launcher_delegate.h ('k') | ash/launcher/launcher_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698