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

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: addressed 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/observer_list.h" 12 #include "base/observer_list.h"
13 #include "base/timer.h" 13 #include "base/timer.h"
14 #include "ui/app_list/pagination_model_observer.h" 14 #include "ui/app_list/pagination_model_observer.h"
15 #include "ui/aura/client/focus_change_observer.h" 15 #include "ui/aura/client/focus_change_observer.h"
16 #include "ui/aura/root_window_observer.h" 16 #include "ui/aura/root_window_observer.h"
17 #include "ui/base/events/event_handler.h" 17 #include "ui/base/events/event_handler.h"
18 #include "ui/compositor/layer_animation_observer.h" 18 #include "ui/compositor/layer_animation_observer.h"
19 #include "ui/gfx/rect.h" 19 #include "ui/gfx/rect.h"
20 #include "ui/views/widget/widget_observer.h" 20 #include "ui/views/widget/widget_observer.h"
21 21
22 namespace app_list { 22 namespace app_list {
23 class ApplicationDragAndDropHost;
23 class AppListView; 24 class AppListView;
24 class PaginationModel; 25 class PaginationModel;
25 } 26 }
26 27
27 namespace ui { 28 namespace ui {
28 class LocatedEvent; 29 class LocatedEvent;
29 } 30 }
30 31
31 namespace ash { 32 namespace ash {
32 33
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // IsVisible(). 68 // IsVisible().
68 void Toggle(aura::Window* window); 69 void Toggle(aura::Window* window);
69 70
70 // Returns target visibility. This differs from IsVisible() if an animation 71 // Returns target visibility. This differs from IsVisible() if an animation
71 // is ongoing. 72 // is ongoing.
72 bool GetTargetVisibility() const { return is_visible_; } 73 bool GetTargetVisibility() const { return is_visible_; }
73 74
74 // Returns app list window or NULL if it is not visible. 75 // Returns app list window or NULL if it is not visible.
75 aura::Window* GetWindow(); 76 aura::Window* GetWindow();
76 77
78 // If |drag_and_drop_host| is not NULL it will be called upon drag and drop
79 // operations outside the application list.
80 void SetDragAndDropHostOfCurrentAppList(
81 app_list::ApplicationDragAndDropHost* drag_and_drop_host);
82
77 void AddObserver(AppListControllerObserver* observer); 83 void AddObserver(AppListControllerObserver* observer);
78 void RemoveObserver(AppListControllerObserver* observer); 84 void RemoveObserver(AppListControllerObserver* observer);
79 85
80 private: 86 private:
81 // Sets the app list view and attempts to show it. 87 // Sets the app list view and attempts to show it.
82 void SetView(app_list::AppListView* view); 88 void SetView(app_list::AppListView* view);
83 89
84 // Forgets the view. 90 // Forgets the view.
85 void ResetView(); 91 void ResetView();
86 92
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 145
140 ObserverList<AppListControllerObserver, true> observers_; 146 ObserverList<AppListControllerObserver, true> observers_;
141 147
142 DISALLOW_COPY_AND_ASSIGN(AppListController); 148 DISALLOW_COPY_AND_ASSIGN(AppListController);
143 }; 149 };
144 150
145 } // namespace internal 151 } // namespace internal
146 } // namespace ash 152 } // namespace ash
147 153
148 #endif // ASH_WM_APP_LIST_CONTROLLER_H_ 154 #endif // ASH_WM_APP_LIST_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698