ui_util.h 853 B

12345678910111213141516171819202122232425
  1. // Copyright 2020 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef EXTENSIONS_BROWSER_UI_UTIL_H_
  5. #define EXTENSIONS_BROWSER_UI_UTIL_H_
  6. #include "extensions/common/manifest.h"
  7. namespace extensions {
  8. class Extension;
  9. namespace ui_util {
  10. // Returns true if an extension with the given |type| and |location| should be
  11. // displayed in the extension settings page (e.g. chrome://extensions).
  12. bool ShouldDisplayInExtensionSettings(Manifest::Type type,
  13. mojom::ManifestLocation location);
  14. // Convenience method of the above taking an Extension object.
  15. bool ShouldDisplayInExtensionSettings(const Extension& extension);
  16. } // namespace ui_util
  17. } // namespace extensions
  18. #endif // EXTENSIONS_BROWSER_UI_UTIL_H_