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

Side by Side Diff: ash/shell.h

Issue 2898743002: Draggable peeking/fullscreen launcher with transparent background. (Closed)
Patch Set: Fixed case where Esc key was not closing app list. Created 3 years, 6 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
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 <memory> 8 #include <memory>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "ash/ash_export.h" 12 #include "ash/ash_export.h"
13 #include "ash/metrics/user_metrics_recorder.h" 13 #include "ash/metrics/user_metrics_recorder.h"
14 #include "ash/public/cpp/shelf_types.h" 14 #include "ash/public/cpp/shelf_types.h"
15 #include "ash/session/session_observer.h" 15 #include "ash/session/session_observer.h"
16 #include "ash/wm/system_modal_container_event_filter_delegate.h" 16 #include "ash/wm/system_modal_container_event_filter_delegate.h"
17 #include "base/gtest_prod_util.h" 17 #include "base/gtest_prod_util.h"
18 #include "base/macros.h" 18 #include "base/macros.h"
19 #include "base/memory/weak_ptr.h" 19 #include "base/memory/weak_ptr.h"
20 #include "base/observer_list.h" 20 #include "base/observer_list.h"
21 #include "ui/app_list/presenter/app_list_delegate.h"
21 #include "ui/aura/window.h" 22 #include "ui/aura/window.h"
22 #include "ui/display/screen.h" 23 #include "ui/display/screen.h"
23 #include "ui/events/event_target.h" 24 #include "ui/events/event_target.h"
24 #include "ui/wm/core/cursor_manager.h" 25 #include "ui/wm/core/cursor_manager.h"
25 #include "ui/wm/public/activation_change_observer.h" 26 #include "ui/wm/public/activation_change_observer.h"
26 27
27 #if defined(OS_CHROMEOS) 28 #if defined(OS_CHROMEOS)
28 #include "ash/wm/cursor_manager_chromeos.h" 29 #include "ash/wm/cursor_manager_chromeos.h"
29 #endif // defined(OS_CHROMEOS) 30 #endif // defined(OS_CHROMEOS)
30 31
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 // TODO(jamescook): Move to Shelf. 603 // TODO(jamescook): Move to Shelf.
603 void NotifyShelfAlignmentChanged(aura::Window* root_window); 604 void NotifyShelfAlignmentChanged(aura::Window* root_window);
604 605
605 // Notifies observers that |root_window|'s shelf changed auto-hide behavior. 606 // Notifies observers that |root_window|'s shelf changed auto-hide behavior.
606 // TODO(jamescook): Move to Shelf. 607 // TODO(jamescook): Move to Shelf.
607 void NotifyShelfAutoHideBehaviorChanged(aura::Window* root_window); 608 void NotifyShelfAutoHideBehaviorChanged(aura::Window* root_window);
608 609
609 // Used to provide better error messages for Shell::Get() under mash. 610 // Used to provide better error messages for Shell::Get() under mash.
610 static void SetIsBrowserProcessWithMash(); 611 static void SetIsBrowserProcessWithMash();
611 612
613 void OnAppListVisibilityChanged(bool visible, aura::Window* root_window);
614
612 private: 615 private:
613 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, TestCursor); 616 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, TestCursor);
614 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors); 617 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors);
615 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, TransformActivate); 618 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, TransformActivate);
616 friend class AcceleratorControllerTest; 619 friend class AcceleratorControllerTest;
617 friend class RootWindowController; 620 friend class RootWindowController;
618 friend class ScopedRootWindowForNewWindows; 621 friend class ScopedRootWindowForNewWindows;
619 friend class SmsObserverTest; 622 friend class SmsObserverTest;
620 friend class test::ShellTestApi; 623 friend class test::ShellTestApi;
621 friend class shell::WindowWatcher; 624 friend class shell::WindowWatcher;
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 base::ObserverList<ShellObserver> shell_observers_; 835 base::ObserverList<ShellObserver> shell_observers_;
833 836
834 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; 837 scoped_refptr<base::SequencedWorkerPool> blocking_pool_;
835 838
836 DISALLOW_COPY_AND_ASSIGN(Shell); 839 DISALLOW_COPY_AND_ASSIGN(Shell);
837 }; 840 };
838 841
839 } // namespace ash 842 } // namespace ash
840 843
841 #endif // ASH_SHELL_H_ 844 #endif // ASH_SHELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698