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

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: Merged & 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/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 ApplicationDragAndDropHost;
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 |drag_and_drop_host| is not NULL it will be called upon drag and drop
66 // operations outside the application list.
67 void SetDragAndDropHostOfCurrentAppList(
koz (OOO until 15th September) 2013/05/08 02:00:39 Could you rename this to SetDragAndDropHost()? I t
Mr4D (OOO till 08-26) 2013/05/08 02:53:35 I did this because of my previous reviewer asked m
68 app_list::ApplicationDragAndDropHost* drag_and_drop_host);
69
64 private: 70 private:
65 // Sets the app list view and attempts to show it. 71 // Sets the app list view and attempts to show it.
66 void SetView(app_list::AppListView* view); 72 void SetView(app_list::AppListView* view);
67 73
68 // Forgets the view. 74 // Forgets the view.
69 void ResetView(); 75 void ResetView();
70 76
71 // Starts show/hide animation. 77 // Starts show/hide animation.
72 void ScheduleAnimation(); 78 void ScheduleAnimation();
73 79
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // Whether should schedule snap back animation. 125 // Whether should schedule snap back animation.
120 bool should_snap_back_; 126 bool should_snap_back_;
121 127
122 DISALLOW_COPY_AND_ASSIGN(AppListController); 128 DISALLOW_COPY_AND_ASSIGN(AppListController);
123 }; 129 };
124 130
125 } // namespace internal 131 } // namespace internal
126 } // namespace ash 132 } // namespace ash
127 133
128 #endif // ASH_WM_APP_LIST_CONTROLLER_H_ 134 #endif // ASH_WM_APP_LIST_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698