Opera 12.15 Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

img_module.h 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*-
  2. **
  3. ** Copyright (C) 1995-2005 Opera Software AS. All rights reserved.
  4. **
  5. ** This file is part of the Opera web browser. It may not be distributed
  6. ** under any circumstances.
  7. */
  8. #ifndef MODULES_IMG_IMG_MODULE_H
  9. #define MODULES_IMG_IMG_MODULE_H
  10. #include "modules/hardcore/opera/module.h"
  11. #include "modules/img/image.h"
  12. #ifdef EMBEDDED_ICC_SUPPORT
  13. class ImageColorManager;
  14. #endif // EMBEDDED_ICC_SUPPORT
  15. class ImgModule : public OperaModule
  16. {
  17. public:
  18. ImgModule() :
  19. img_manager(NULL),
  20. #ifdef EMBEDDED_ICC_SUPPORT
  21. img_color_manager(NULL),
  22. #endif // EMBEDDED_ICC_SUPPORT
  23. null_listener(NULL) {}
  24. void InitL(const OperaInitInfo& info);
  25. void Destroy();
  26. ImageManager* img_manager;
  27. #ifdef EMBEDDED_ICC_SUPPORT
  28. ImageColorManager* img_color_manager;
  29. #endif // EMBEDDED_ICC_SUPPORT
  30. NullImageListener* null_listener;
  31. };
  32. #define imgManager (g_opera->img_module.img_manager)
  33. #ifdef EMBEDDED_ICC_SUPPORT
  34. #define g_color_manager (g_opera->img_module.img_color_manager)
  35. #endif // EMBEDDED_ICC_SUPPORT
  36. #define null_image_listener (g_opera->img_module.null_listener)
  37. #define IMG_MODULE_REQUIRED
  38. #endif // !MODULES_IMG_IMG_MODULE_H