OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "ash/display/display_controller.h" | 14 #include "ash/display/display_controller.h" |
15 #include "ash/launcher/launcher_delegate.h" | 15 #include "ash/launcher/launcher_delegate.h" |
16 #include "ash/launcher/launcher_types.h" | 16 #include "ash/launcher/launcher_types.h" |
17 #include "ash/shelf/shelf_item_delegate.h" | 17 #include "ash/shelf/shelf_item_delegate.h" |
18 #include "ash/shelf/shelf_layout_manager_observer.h" | 18 #include "ash/shelf/shelf_layout_manager_observer.h" |
19 #include "ash/shelf/shelf_model_observer.h" | 19 #include "ash/shelf/shelf_model_observer.h" |
20 #include "ash/shelf/shelf_types.h" | 20 #include "ash/shelf/shelf_types.h" |
21 #include "ash/shell_observer.h" | 21 #include "ash/shell_observer.h" |
22 #include "base/basictypes.h" | 22 #include "base/basictypes.h" |
23 #include "base/compiler_specific.h" | 23 #include "base/compiler_specific.h" |
24 #include "base/memory/scoped_ptr.h" | 24 #include "base/memory/scoped_ptr.h" |
25 #include "base/memory/scoped_vector.h" | 25 #include "base/memory/scoped_vector.h" |
26 #include "base/prefs/pref_change_registrar.h" | 26 #include "base/prefs/pref_change_registrar.h" |
27 #include "chrome/browser/extensions/app_icon_loader.h" | 27 #include "chrome/browser/extensions/app_icon_loader.h" |
28 #include "chrome/browser/extensions/launch_util.h" | |
29 #include "chrome/browser/prefs/pref_service_syncable_observer.h" | 28 #include "chrome/browser/prefs/pref_service_syncable_observer.h" |
30 #include "chrome/browser/ui/ash/app_sync_ui_state_observer.h" | 29 #include "chrome/browser/ui/ash/app_sync_ui_state_observer.h" |
31 #include "chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item.h" | 30 #include "chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item.h" |
32 #include "chrome/browser/ui/ash/launcher/chrome_launcher_types.h" | 31 #include "chrome/browser/ui/ash/launcher/chrome_launcher_types.h" |
33 #include "chrome/browser/ui/extensions/extension_enable_flow_delegate.h" | 32 #include "chrome/browser/ui/extensions/extension_enable_flow_delegate.h" |
| 33 #include "chrome/common/extensions/extension_constants.h" |
34 #include "content/public/browser/notification_observer.h" | 34 #include "content/public/browser/notification_observer.h" |
35 #include "content/public/browser/notification_registrar.h" | 35 #include "content/public/browser/notification_registrar.h" |
36 #include "ui/aura/window_observer.h" | 36 #include "ui/aura/window_observer.h" |
37 | 37 |
38 class AppSyncUIState; | 38 class AppSyncUIState; |
39 class Browser; | 39 class Browser; |
40 class BrowserShortcutLauncherItemController; | 40 class BrowserShortcutLauncherItemController; |
41 class BrowserStatusMonitor; | 41 class BrowserStatusMonitor; |
42 class ExtensionEnableFlow; | 42 class ExtensionEnableFlow; |
43 class GURL; | 43 class GURL; |
44 class LauncherItemController; | 44 class LauncherItemController; |
45 class Profile; | 45 class Profile; |
46 class ShellWindowLauncherController; | 46 class ShellWindowLauncherController; |
47 class TabContents; | 47 class TabContents; |
48 | 48 |
49 namespace ash { | 49 namespace ash { |
50 class ShelfItemDelegateManager; | 50 class ShelfItemDelegateManager; |
51 class ShelfModel; | 51 class ShelfModel; |
52 } | 52 } |
53 | 53 |
54 namespace aura { | 54 namespace aura { |
55 class Window; | 55 class Window; |
56 } | 56 } |
57 | 57 |
58 namespace content { | 58 namespace content { |
59 class WebContents; | 59 class WebContents; |
60 } | 60 } |
61 | 61 |
| 62 namespace extensions { |
| 63 class Extension; |
| 64 } |
| 65 |
62 namespace ui { | 66 namespace ui { |
63 class BaseWindow; | 67 class BaseWindow; |
64 } | 68 } |
65 | 69 |
66 // A list of the elements which makes up a simple menu description. | 70 // A list of the elements which makes up a simple menu description. |
67 typedef ScopedVector<ChromeLauncherAppMenuItem> ChromeLauncherAppMenuItems; | 71 typedef ScopedVector<ChromeLauncherAppMenuItem> ChromeLauncherAppMenuItems; |
68 | 72 |
69 // A class which needs to be overwritten dependent on the used OS to moitor | 73 // A class which needs to be overwritten dependent on the used OS to moitor |
70 // user switching. | 74 // user switching. |
71 class ChromeLauncherControllerUserSwitchObserver { | 75 class ChromeLauncherControllerUserSwitchObserver { |
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 // If true, incoming pinned state changes should be ignored. | 587 // If true, incoming pinned state changes should be ignored. |
584 bool ignore_persist_pinned_state_change_; | 588 bool ignore_persist_pinned_state_change_; |
585 | 589 |
586 // True if each user has an own desktop. | 590 // True if each user has an own desktop. |
587 bool multi_profile_desktop_separation_; | 591 bool multi_profile_desktop_separation_; |
588 | 592 |
589 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); | 593 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); |
590 }; | 594 }; |
591 | 595 |
592 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ | 596 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ |
OLD | NEW |