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

Side by Side Diff: ash/wm/app_list_controller.h

Issue 14533006: Drag and drop between app list and launcher - First patch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 ASH_WM_APP_LIST_CONTROLLER_H_ 5 #ifndef ASH_WM_APP_LIST_CONTROLLER_H_
6 #define ASH_WM_APP_LIST_CONTROLLER_H_ 6 #define ASH_WM_APP_LIST_CONTROLLER_H_
7 7
8 #include "ash/launcher/launcher_icon_observer.h" 8 #include "ash/launcher/launcher_icon_observer.h"
9 #include "ash/shell_observer.h" 9 #include "ash/shell_observer.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/timer.h" 12 #include "base/timer.h"
13 #include "ui/app_list/pagination_model_observer.h" 13 #include "ui/app_list/pagination_model_observer.h"
14 #include "ui/aura/client/focus_change_observer.h" 14 #include "ui/aura/client/focus_change_observer.h"
15 #include "ui/aura/root_window_observer.h" 15 #include "ui/aura/root_window_observer.h"
16 #include "ui/base/events/event_handler.h" 16 #include "ui/base/events/event_handler.h"
17 #include "ui/compositor/layer_animation_observer.h" 17 #include "ui/compositor/layer_animation_observer.h"
18 #include "ui/gfx/rect.h" 18 #include "ui/gfx/rect.h"
19 #include "ui/views/widget/widget_observer.h" 19 #include "ui/views/widget/widget_observer.h"
20 20
21 namespace app_list { 21 namespace app_list {
22 class ApplicationDnDHost;
22 class AppListView; 23 class AppListView;
23 class PaginationModel; 24 class PaginationModel;
24 } 25 }
25 26
26 namespace ui { 27 namespace ui {
27 class LocatedEvent; 28 class LocatedEvent;
28 } 29 }
29 30
30 namespace ash { 31 namespace ash {
31 namespace internal { 32 namespace internal {
(...skipping 22 matching lines...) Expand all
54 // Whether app list window is visible (shown or being shown). 55 // Whether app list window is visible (shown or being shown).
55 bool IsVisible() const; 56 bool IsVisible() const;
56 57
57 // Returns target visibility. This differs from IsVisible() if an animation 58 // Returns target visibility. This differs from IsVisible() if an animation
58 // is ongoing. 59 // is ongoing.
59 bool GetTargetVisibility() const { return is_visible_; } 60 bool GetTargetVisibility() const { return is_visible_; }
60 61
61 // Returns app list window or NULL if it is not visible. 62 // Returns app list window or NULL if it is not visible.
62 aura::Window* GetWindow(); 63 aura::Window* GetWindow();
63 64
65 // If |dnd_host| is not NULL it will be called upon drag and drop operations
66 // outside the application list.
67 void SetAppListDnDHost(app_list::ApplicationDnDHost* dnd_host);
68
64 private: 69 private:
65 // Sets the app list view and attempts to show it. 70 // Sets the app list view and attempts to show it.
66 void SetView(app_list::AppListView* view); 71 void SetView(app_list::AppListView* view);
67 72
68 // Forgets the view. 73 // Forgets the view.
69 void ResetView(); 74 void ResetView();
70 75
71 // Starts show/hide animation. 76 // Starts show/hide animation.
72 void ScheduleAnimation(); 77 void ScheduleAnimation();
73 78
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // Whether should schedule snap back animation. 124 // Whether should schedule snap back animation.
120 bool should_snap_back_; 125 bool should_snap_back_;
121 126
122 DISALLOW_COPY_AND_ASSIGN(AppListController); 127 DISALLOW_COPY_AND_ASSIGN(AppListController);
123 }; 128 };
124 129
125 } // namespace internal 130 } // namespace internal
126 } // namespace ash 131 } // namespace ash
127 132
128 #endif // ASH_WM_APP_LIST_CONTROLLER_H_ 133 #endif // ASH_WM_APP_LIST_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698