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

Side by Side Diff: chrome/browser/ui/apps/app_info_dialog.h

Issue 2406303003: Move enable_app_list to a buildflag. (Closed)
Patch Set: More grit defines Created 4 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_APPS_APP_INFO_DIALOG_H_ 5 #ifndef CHROME_BROWSER_UI_APPS_APP_INFO_DIALOG_H_
6 #define CHROME_BROWSER_UI_APPS_APP_INFO_DIALOG_H_ 6 #define CHROME_BROWSER_UI_APPS_APP_INFO_DIALOG_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "chrome/common/features.h"
9 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
10 11
11 class Profile; 12 class Profile;
12 13
13 namespace content { 14 namespace content {
14 class WebContents; 15 class WebContents;
15 } 16 }
16 17
17 namespace extensions { 18 namespace extensions {
18 class Extension; 19 class Extension;
(...skipping 12 matching lines...) Expand all
31 NUM_LAUNCH_SOURCES, 32 NUM_LAUNCH_SOURCES,
32 }; 33 };
33 34
34 // TODO(tsergeant): Move these methods into a class 35 // TODO(tsergeant): Move these methods into a class
35 // Returns true if the app info dialog is available on the current platform. 36 // Returns true if the app info dialog is available on the current platform.
36 bool CanShowAppInfoDialog(); 37 bool CanShowAppInfoDialog();
37 38
38 // Returns the size of the native window container for the app info dialog. 39 // Returns the size of the native window container for the app info dialog.
39 gfx::Size GetAppInfoNativeDialogSize(); 40 gfx::Size GetAppInfoNativeDialogSize();
40 41
41 #if defined(ENABLE_APP_LIST) 42 #if BUILDFLAG(ENABLE_APP_LIST)
42 // Shows the chrome app information as a frameless window for the given |app| 43 // Shows the chrome app information as a frameless window for the given |app|
43 // and |profile| at the given |app_list_bounds|. Appears 'inside' the app list. 44 // and |profile| at the given |app_list_bounds|. Appears 'inside' the app list.
44 void ShowAppInfoInAppList(gfx::NativeWindow parent, 45 void ShowAppInfoInAppList(gfx::NativeWindow parent,
45 const gfx::Rect& app_list_bounds, 46 const gfx::Rect& app_list_bounds,
46 Profile* profile, 47 Profile* profile,
47 const extensions::Extension* app, 48 const extensions::Extension* app,
48 const base::Closure& close_callback); 49 const base::Closure& close_callback);
49 #endif 50 #endif
50 51
51 // Shows the chrome app information in a native dialog box of the given |size|. 52 // Shows the chrome app information in a native dialog box of the given |size|.
52 void ShowAppInfoInNativeDialog(content::WebContents* web_contents, 53 void ShowAppInfoInNativeDialog(content::WebContents* web_contents,
53 const gfx::Size& size, 54 const gfx::Size& size,
54 Profile* profile, 55 Profile* profile,
55 const extensions::Extension* app, 56 const extensions::Extension* app,
56 const base::Closure& close_callback); 57 const base::Closure& close_callback);
57 58
58 #endif // CHROME_BROWSER_UI_APPS_APP_INFO_DIALOG_H_ 59 #endif // CHROME_BROWSER_UI_APPS_APP_INFO_DIALOG_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/app_list_util.cc ('k') | chrome/browser/ui/startup/startup_browser_creator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698