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

Side by Side Diff: chrome/browser/ui/app_list/app_list_service.h

Issue 276833002: Make the App Info Dialog appear modal (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed the AppList overlay to be a Background Created 6 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 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_APP_LIST_APP_LIST_SERVICE_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_
6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "chrome/browser/ui/host_desktop.h" 12 #include "chrome/browser/ui/host_desktop.h"
13 #include "ui/gfx/native_widget_types.h" 13 #include "ui/gfx/native_widget_types.h"
14 14
15 class AppListControllerDelegate; 15 class AppListControllerDelegate;
16 class PrefRegistrySimple; 16 class PrefRegistrySimple;
17 class Profile; 17 class Profile;
18 18
19 namespace app_list {
20 class AppListView;
21 }
22
19 namespace base { 23 namespace base {
20 class CommandLine; 24 class CommandLine;
21 class FilePath; 25 class FilePath;
22 } 26 }
23 27
24 namespace gfx { 28 namespace gfx {
25 class ImageSkia; 29 class ImageSkia;
26 } 30 }
27 31
28 class AppListService { 32 class AppListService {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 virtual bool IsAppListVisible() const = 0; 97 virtual bool IsAppListVisible() const = 0;
94 98
95 // Enable the app list. What this does specifically will depend on the host 99 // Enable the app list. What this does specifically will depend on the host
96 // operating system and shell. 100 // operating system and shell.
97 virtual void EnableAppList(Profile* initial_profile, 101 virtual void EnableAppList(Profile* initial_profile,
98 AppListEnableSource enable_source) = 0; 102 AppListEnableSource enable_source) = 0;
99 103
100 // Get the window the app list is in, or NULL if the app list isn't visible. 104 // Get the window the app list is in, or NULL if the app list isn't visible.
101 virtual gfx::NativeWindow GetAppListWindow() = 0; 105 virtual gfx::NativeWindow GetAppListWindow() = 0;
102 106
107 // Get app list view, or NULL if the app list isn't visible.
108 virtual app_list::AppListView* GetAppListView() = 0;
calamity 2014/05/16 05:54:32 Hmm. Mac doesn't have an AppListView which is like
sashab 2014/05/19 07:24:53 Great suggestion!! It was even easier than that -
109
103 // Returns a pointer to the platform specific AppListControllerDelegate. 110 // Returns a pointer to the platform specific AppListControllerDelegate.
104 virtual AppListControllerDelegate* GetControllerDelegate() = 0; 111 virtual AppListControllerDelegate* GetControllerDelegate() = 0;
105 112
106 protected: 113 protected:
107 AppListService() {} 114 AppListService() {}
108 virtual ~AppListService() {} 115 virtual ~AppListService() {}
109 116
110 // Do any once off initialization needed for the app list. 117 // Do any once off initialization needed for the app list.
111 virtual void Init(Profile* initial_profile) = 0; 118 virtual void Init(Profile* initial_profile) = 0;
112 119
113 private: 120 private:
114 DISALLOW_COPY_AND_ASSIGN(AppListService); 121 DISALLOW_COPY_AND_ASSIGN(AppListService);
115 }; 122 };
116 123
117 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ 124 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/app_list_service_disabled.cc » ('j') | ui/app_list/views/app_list_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698