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

Side by Side Diff: ash/shell.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_SHELL_H_ 5 #ifndef ASH_SHELL_H_
6 #define ASH_SHELL_H_ 6 #define ASH_SHELL_H_
7 7
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
11 #include "ash/ash_export.h" 11 #include "ash/ash_export.h"
12 #include "ash/shelf/shelf_types.h" 12 #include "ash/shelf/shelf_types.h"
13 #include "ash/system/user/login_status.h" 13 #include "ash/system/user/login_status.h"
14 #include "ash/wm/system_modal_container_event_filter_delegate.h" 14 #include "ash/wm/system_modal_container_event_filter_delegate.h"
15 #include "base/basictypes.h" 15 #include "base/basictypes.h"
16 #include "base/compiler_specific.h" 16 #include "base/compiler_specific.h"
17 #include "base/gtest_prod_util.h" 17 #include "base/gtest_prod_util.h"
18 #include "base/memory/scoped_ptr.h" 18 #include "base/memory/scoped_ptr.h"
19 #include "base/observer_list.h" 19 #include "base/observer_list.h"
20 #include "ui/aura/client/activation_change_observer.h" 20 #include "ui/aura/client/activation_change_observer.h"
21 #include "ui/base/events/event_target.h" 21 #include "ui/base/events/event_target.h"
22 #include "ui/gfx/insets.h" 22 #include "ui/gfx/insets.h"
23 #include "ui/gfx/screen.h" 23 #include "ui/gfx/screen.h"
24 #include "ui/gfx/size.h" 24 #include "ui/gfx/size.h"
25 #include "ui/views/corewm/cursor_manager.h" 25 #include "ui/views/corewm/cursor_manager.h"
26 26
27 class CommandLine; 27 class CommandLine;
28 28
29 namespace app_list {
30 class ApplicationDragAndDropHost;
31 }
29 namespace aura { 32 namespace aura {
30 class EventFilter; 33 class EventFilter;
31 class RootWindow; 34 class RootWindow;
32 class Window; 35 class Window;
33 namespace client { 36 namespace client {
34 class ActivationClient; 37 class ActivationClient;
35 class FocusClient; 38 class FocusClient;
36 class UserActionClient; 39 class UserActionClient;
37 } 40 }
38 } 41 }
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 213
211 // Shows the context menu for the background and launcher at 214 // Shows the context menu for the background and launcher at
212 // |location_in_screen| (in screen coordinates). 215 // |location_in_screen| (in screen coordinates).
213 void ShowContextMenu(const gfx::Point& location_in_screen); 216 void ShowContextMenu(const gfx::Point& location_in_screen);
214 217
215 // Toggles the app list. |window| specifies in which display the app 218 // Toggles the app list. |window| specifies in which display the app
216 // list should be shown. If this is NULL, the active root window 219 // list should be shown. If this is NULL, the active root window
217 // will be used. 220 // will be used.
218 void ToggleAppList(aura::Window* anchor); 221 void ToggleAppList(aura::Window* anchor);
219 222
223 // If |drag_and_drop_host| is not NULL it will be called upon drag and drop
224 // operations outside the application list.
225 void SetDragAndDropHostOfCurrentAppList(
226 app_list::ApplicationDragAndDropHost* drag_and_drop_host);
227
220 // Returns app list target visibility. 228 // Returns app list target visibility.
221 bool GetAppListTargetVisibility() const; 229 bool GetAppListTargetVisibility() const;
222 230
223 // Returns app list window or NULL if it is not visible. 231 // Returns app list window or NULL if it is not visible.
224 aura::Window* GetAppListWindow(); 232 aura::Window* GetAppListWindow();
225 233
226 // Returns true if a system-modal dialog window is currently open. 234 // Returns true if a system-modal dialog window is currently open.
227 bool IsSystemModalWindowOpen() const; 235 bool IsSystemModalWindowOpen() const;
228 236
229 // For testing only: set simulation that a modal window is open 237 // For testing only: set simulation that a modal window is open
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 599
592 // For testing only: simulate that a modal window is open 600 // For testing only: simulate that a modal window is open
593 bool simulate_modal_window_open_for_testing_; 601 bool simulate_modal_window_open_for_testing_;
594 602
595 DISALLOW_COPY_AND_ASSIGN(Shell); 603 DISALLOW_COPY_AND_ASSIGN(Shell);
596 }; 604 };
597 605
598 } // namespace ash 606 } // namespace ash
599 607
600 #endif // ASH_SHELL_H_ 608 #endif // ASH_SHELL_H_
OLDNEW
« ash/launcher/launcher_view.cc ('K') | « ash/launcher/launcher_view.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698