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

Side by Side Diff: athena/home/minimized_home.h

Issue 397343003: Introduce centered view and bottom view for home card. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: polish Created 6 years, 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 ATHENA_HOME_MINIMIZED_HOME_H_ 5 #ifndef ATHENA_HOME_MINIMIZED_HOME_H_
6 #define ATHENA_HOME_MINIMIZED_HOME_H_ 6 #define ATHENA_HOME_MINIMIZED_HOME_H_
7 7
8 namespace aura {
9 class Window;
10 }
11
12 namespace views { 8 namespace views {
13 class Widget; 9 class View;
14 } 10 }
15 11
16 namespace athena { 12 namespace athena {
17 13
18 class MinimizedHomeDragDelegate { 14 class MinimizedHomeDragDelegate {
19 public: 15 public:
20 virtual ~MinimizedHomeDragDelegate() {} 16 virtual ~MinimizedHomeDragDelegate() {}
21 17
22 virtual void OnDragUpCompleted() = 0; 18 virtual void OnDragUpCompleted() = 0;
23 }; 19 };
24 20
25 // Note that |delegate| is guaranteed to be alive as long as the returned widget 21 // Note that |delegate| is guaranteed to be alive as long as the returned view
26 // is alive. 22 // is alive.
27 views::Widget* CreateMinimizedHome(aura::Window* container, 23 views::View* CreateMinimizedHome(MinimizedHomeDragDelegate* delegate);
28 MinimizedHomeDragDelegate* delegate);
29 24
30 } // namespace athena 25 } // namespace athena
31 26
32 #endif // ATHENA_HOME_MINIMIZED_HOME_H_ 27 #endif // ATHENA_HOME_MINIMIZED_HOME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698