message_center_style.h 776 B

123456789101112131415161718192021222324
  1. // Copyright (c) 2012 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 UI_MESSAGE_CENTER_MESSAGE_CENTER_STYLE_H_
  5. #define UI_MESSAGE_CENTER_MESSAGE_CENTER_STYLE_H_
  6. #include <stddef.h>
  7. #include "build/build_config.h"
  8. #include "ui/gfx/geometry/size.h"
  9. #include "ui/message_center/message_center_export.h"
  10. namespace message_center {
  11. // Given the size of an image, returns the size of the properly scaled-up image
  12. // which fits into |container_size|.
  13. MESSAGE_CENTER_EXPORT gfx::Size GetImageSizeForContainerSize(
  14. const gfx::Size& container_size,
  15. const gfx::Size& image_size);
  16. } // namespace message_center
  17. #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_STYLE_H_