OLD | NEW |
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_EXTENSIONS_EXTENSION_UI_UTIL_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_UI_UTIL_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_UI_UTIL_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_UI_UTIL_H_ |
7 | 7 |
8 namespace content { | 8 namespace content { |
9 class BrowserContext; | 9 class BrowserContext; |
10 class WebContents; | |
11 } | 10 } |
12 | 11 |
13 namespace extensions { | 12 namespace extensions { |
14 | 13 |
15 class Extension; | 14 class Extension; |
16 | 15 |
17 namespace ui_util { | 16 namespace ui_util { |
18 | 17 |
19 // Returns true if the extension should be displayed in the app launcher. | 18 // Returns true if the extension should be displayed in the app launcher. |
20 // Checks whether the extension is an ephemeral app or should be hidden due to | 19 // Checks whether the extension is an ephemeral app or should be hidden due to |
(...skipping 23 matching lines...) Expand all Loading... |
44 // mostly the same as the extension being a component extension, but also | 43 // mostly the same as the extension being a component extension, but also |
45 // includes non-component apps that are hidden from the app launcher and NTP, | 44 // includes non-component apps that are hidden from the app launcher and NTP, |
46 // as well as ephemeral apps. | 45 // as well as ephemeral apps. |
47 bool ShouldNotBeVisible(const Extension* extension, | 46 bool ShouldNotBeVisible(const Extension* extension, |
48 content::BrowserContext* context); | 47 content::BrowserContext* context); |
49 | 48 |
50 } // namespace ui_util | 49 } // namespace ui_util |
51 } // namespace extensions | 50 } // namespace extensions |
52 | 51 |
53 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_UI_UTIL_H_ | 52 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_UI_UTIL_H_ |
OLD | NEW |