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

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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 209
207 // Shows the context menu for the background and launcher at 210 // Shows the context menu for the background and launcher at
208 // |location_in_screen| (in screen coordinates). 211 // |location_in_screen| (in screen coordinates).
209 void ShowContextMenu(const gfx::Point& location_in_screen); 212 void ShowContextMenu(const gfx::Point& location_in_screen);
210 213
211 // Toggles the app list. |window| specifies in which display the app 214 // Toggles the app list. |window| specifies in which display the app
212 // list should be shown. If this is NULL, the active root window 215 // list should be shown. If this is NULL, the active root window
213 // will be used. 216 // will be used.
214 void ToggleAppList(aura::Window* anchor); 217 void ToggleAppList(aura::Window* anchor);
215 218
219 // If |drag_and_drop_host| is not NULL it will be called upon drag and drop
220 // operations outside the application list.
221 void SetDragAndDropHostOfCurrentAppList(
222 app_list::ApplicationDragAndDropHost* drag_and_drop_host);
223
216 // Returns app list target visibility. 224 // Returns app list target visibility.
217 bool GetAppListTargetVisibility() const; 225 bool GetAppListTargetVisibility() const;
218 226
219 // Returns app list window or NULL if it is not visible. 227 // Returns app list window or NULL if it is not visible.
220 aura::Window* GetAppListWindow(); 228 aura::Window* GetAppListWindow();
221 229
222 // Returns true if a system-modal dialog window is currently open. 230 // Returns true if a system-modal dialog window is currently open.
223 bool IsSystemModalWindowOpen() const; 231 bool IsSystemModalWindowOpen() const;
224 232
225 // For testing only: set simulation that a modal window is open 233 // For testing only: set simulation that a modal window is open
(...skipping 365 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

Powered by Google App Engine
This is Rietveld 408576698