ewk_private.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. Copyright (C) 2009-2010 ProFUSION embedded systems
  3. Copyright (C) 2009-2012 Samsung Electronics
  4. This library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Library General Public
  6. License as published by the Free Software Foundation; either
  7. version 2 of the License, or (at your option) any later version.
  8. This library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Library General Public License for more details.
  12. You should have received a copy of the GNU Library General Public License
  13. along with this library; see the file COPYING.LIB. If not, write to
  14. the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  15. Boston, MA 02110-1301, USA.
  16. */
  17. #ifndef ewk_private_h
  18. #define ewk_private_h
  19. #include "APICast.h"
  20. #include <Evas.h>
  21. // If defined, ewk will do type checking to ensure objects are of correct type
  22. #define EWK_TYPE_CHECK 1
  23. #define EWK_ARGB_BYTES_SIZE 4
  24. // forward declarations
  25. namespace WebCore {
  26. #if USE(ACCELERATED_COMPOSITING)
  27. class GraphicsContext3D;
  28. class GraphicsLayer;
  29. #endif
  30. }
  31. struct Ewk_Window_Object_Cleared_Event {
  32. JSContextRef context;
  33. JSObjectRef windowObject;
  34. Evas_Object* frame;
  35. };
  36. extern int _ewk_log_dom;
  37. #define CRITICAL(...) EINA_LOG_DOM_CRIT(_ewk_log_dom, __VA_ARGS__)
  38. #define ERR(...) EINA_LOG_DOM_ERR(_ewk_log_dom, __VA_ARGS__)
  39. #define WARN(...) EINA_LOG_DOM_WARN(_ewk_log_dom, __VA_ARGS__)
  40. #define INFO(...) EINA_LOG_DOM_INFO(_ewk_log_dom, __VA_ARGS__)
  41. #define DBG(...) EINA_LOG_DOM_DBG(_ewk_log_dom, __VA_ARGS__)
  42. #endif // ewk_private_h