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

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: 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 ApplicationDnDHost;
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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 207
205 // Shows the context menu for the background and launcher at 208 // Shows the context menu for the background and launcher at
206 // |location_in_screen| (in screen coordinates). 209 // |location_in_screen| (in screen coordinates).
207 void ShowContextMenu(const gfx::Point& location_in_screen); 210 void ShowContextMenu(const gfx::Point& location_in_screen);
208 211
209 // Toggles the app list. |window| specifies in which display the app 212 // Toggles the app list. |window| specifies in which display the app
210 // list should be shown. If this is NULL, the active root window 213 // list should be shown. If this is NULL, the active root window
211 // will be used. 214 // will be used.
212 void ToggleAppList(aura::Window* anchor); 215 void ToggleAppList(aura::Window* anchor);
213 216
217 // If |dnd_host| is not NULL it will be called upon drag and drop operations
218 // outside the application list.
219 void SetAppListDnDHost(app_list::ApplicationDnDHost* dnd_host);
220
214 // Returns app list target visibility. 221 // Returns app list target visibility.
215 bool GetAppListTargetVisibility() const; 222 bool GetAppListTargetVisibility() const;
216 223
217 // Returns app list window or NULL if it is not visible. 224 // Returns app list window or NULL if it is not visible.
218 aura::Window* GetAppListWindow(); 225 aura::Window* GetAppListWindow();
219 226
220 // Returns true if a user is logged in whose session can be locked (i.e. the 227 // Returns true if a user is logged in whose session can be locked (i.e. the
221 // user has a password with which to unlock the session). 228 // user has a password with which to unlock the session).
222 bool CanLockScreen(); 229 bool CanLockScreen();
223 230
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 590
584 // For testing only: simulate that a modal window is open 591 // For testing only: simulate that a modal window is open
585 bool simulate_modal_window_open_for_testing_; 592 bool simulate_modal_window_open_for_testing_;
586 593
587 DISALLOW_COPY_AND_ASSIGN(Shell); 594 DISALLOW_COPY_AND_ASSIGN(Shell);
588 }; 595 };
589 596
590 } // namespace ash 597 } // namespace ash
591 598
592 #endif // ASH_SHELL_H_ 599 #endif // ASH_SHELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698