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

Side by Side Diff: ash/shell/shell_delegate_impl.h

Issue 1861013004: AppListController refactoring part 3: Switching over to use AppListShower in Ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mus_chrome_delegates_ash_impl
Patch Set: Addressing review feedback. Created 4 years, 8 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_SHELL_DELEGATE_IMPL_H_ 5 #ifndef ASH_SHELL_SHELL_DELEGATE_IMPL_H_
6 #define ASH_SHELL_SHELL_DELEGATE_IMPL_H_ 6 #define ASH_SHELL_SHELL_DELEGATE_IMPL_H_
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
sky 2016/04/07 21:43:27 include <utility>
mfomitchev 2016/04/08 15:50:44 I believe unique_ptr is in <memory>: http://en.cpp
9 10
10 #include "ash/shell_delegate.h" 11 #include "ash/shell_delegate.h"
11 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
12 #include "base/macros.h" 13 #include "base/macros.h"
13 14
15 namespace app_list {
16 class AppListShowerDelegateFactory;
17 class AppListShowerImpl;
18 }
19
14 namespace keyboard { 20 namespace keyboard {
15 class KeyboardUI; 21 class KeyboardUI;
16 } 22 }
17 23
18 namespace ash { 24 namespace ash {
19 namespace shell { 25 namespace shell {
20 26
21 class ShelfDelegateImpl; 27 class ShelfDelegateImpl;
22 28
23 class ShellDelegateImpl : public ash::ShellDelegate { 29 class ShellDelegateImpl : public ash::ShellDelegate {
(...skipping 10 matching lines...) Expand all
34 void PreInit() override; 40 void PreInit() override;
35 void PreShutdown() override; 41 void PreShutdown() override;
36 void Exit() override; 42 void Exit() override;
37 keyboard::KeyboardUI* CreateKeyboardUI() override; 43 keyboard::KeyboardUI* CreateKeyboardUI() override;
38 void VirtualKeyboardActivated(bool activated) override; 44 void VirtualKeyboardActivated(bool activated) override;
39 void AddVirtualKeyboardStateObserver( 45 void AddVirtualKeyboardStateObserver(
40 VirtualKeyboardStateObserver* observer) override; 46 VirtualKeyboardStateObserver* observer) override;
41 void RemoveVirtualKeyboardStateObserver( 47 void RemoveVirtualKeyboardStateObserver(
42 VirtualKeyboardStateObserver* observer) override; 48 VirtualKeyboardStateObserver* observer) override;
43 void OpenUrl(const GURL& url) override; 49 void OpenUrl(const GURL& url) override;
44 app_list::AppListViewDelegate* GetAppListViewDelegate() override; 50 app_list::AppListShower* GetAppListShower() override;
45 ShelfDelegate* CreateShelfDelegate(ShelfModel* model) override; 51 ShelfDelegate* CreateShelfDelegate(ShelfModel* model) override;
46 ash::SystemTrayDelegate* CreateSystemTrayDelegate() override; 52 ash::SystemTrayDelegate* CreateSystemTrayDelegate() override;
47 ash::UserWallpaperDelegate* CreateUserWallpaperDelegate() override; 53 ash::UserWallpaperDelegate* CreateUserWallpaperDelegate() override;
48 ash::SessionStateDelegate* CreateSessionStateDelegate() override; 54 ash::SessionStateDelegate* CreateSessionStateDelegate() override;
49 ash::AccessibilityDelegate* CreateAccessibilityDelegate() override; 55 ash::AccessibilityDelegate* CreateAccessibilityDelegate() override;
50 ash::NewWindowDelegate* CreateNewWindowDelegate() override; 56 ash::NewWindowDelegate* CreateNewWindowDelegate() override;
51 ash::MediaDelegate* CreateMediaDelegate() override; 57 ash::MediaDelegate* CreateMediaDelegate() override;
52 ui::MenuModel* CreateContextMenu(ash::Shelf* shelf, 58 ui::MenuModel* CreateContextMenu(ash::Shelf* shelf,
53 const ash::ShelfItem* item) override; 59 const ash::ShelfItem* item) override;
54 GPUSupport* CreateGPUSupport() override; 60 GPUSupport* CreateGPUSupport() override;
55 base::string16 GetProductName() const override; 61 base::string16 GetProductName() const override;
56 gfx::Image GetDeprecatedAcceleratorImage() const override; 62 gfx::Image GetDeprecatedAcceleratorImage() const override;
57 63
58 private: 64 private:
59 ShelfDelegateImpl* shelf_delegate_; 65 ShelfDelegateImpl* shelf_delegate_;
60 scoped_ptr<app_list::AppListViewDelegate> app_list_view_delegate_; 66 std::unique_ptr<app_list::AppListShowerDelegateFactory>
67 app_list_shower_delegate_factory_;
68 std::unique_ptr<app_list::AppListShowerImpl> app_list_shower_;
61 69
62 DISALLOW_COPY_AND_ASSIGN(ShellDelegateImpl); 70 DISALLOW_COPY_AND_ASSIGN(ShellDelegateImpl);
63 }; 71 };
64 72
65 } // namespace shell 73 } // namespace shell
66 } // namespace ash 74 } // namespace ash
67 75
68 #endif // ASH_SHELL_SHELL_DELEGATE_IMPL_H_ 76 #endif // ASH_SHELL_SHELL_DELEGATE_IMPL_H_
OLDNEW
« no previous file with comments | « ash/shell.cc ('k') | ash/shell/shell_delegate_impl.cc » ('j') | ash/test/test_shell_delegate.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698