mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:18:48 +00:00
21cd830e68
- Bug 586587 - support kHTMLMime in the Windows clipboard as CF_HTML. r=jimm (6af5a0d7fa) - Bug 1159604: Use a fallible allocation in nsClipboard::GetGlobalData. r=bbondy (c9645301a4) - Bug 1048624 - Cleanup and refactor the media crashtest manifests and re-enable some disabled tests that now pass. (d712e08056) - crashtest for bug 1020370 r=padenot (c0900de1df) - crashtest for bug 1206362 r=padenot (07ace6a42f) - Bug 1207546 - Integrate WebRTC with audio channels, r=roc (0ecafba529) - Bug 1219478: Replace PRLogModuleInfo usage with LazyLogModule in dom folders except media.r=amerchesini (2e67bd7308) - Bug 1198422 - CSP: Allow nonce to load if default-src is not specified in second policy (r=dveditz) (8a8bca1eb3) - Bug 1187152 (part 1) - Replace nsBaseHashtable::Enumerate() calls in modules/ with iterators. r=mwu. (85cea6dce7) - Bug 1187152 (part 2) - Replace nsBaseHashtable::Enumerate() calls in modules/ with iterators. r=froydnj. (e909442934) - Bug 1187152 (part 3) - Replace nsBaseHashtable::Enumerate() calls in modules/ with iterators. r=froydnj. (48c78d75e6)
45 lines
1.7 KiB
C
45 lines
1.7 KiB
C
/* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */
|
|
/* vim: set ts=2 et sw=2 tw=40: */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef DOM_CAMERA_CAMERACOMMON_H
|
|
#define DOM_CAMERA_CAMERACOMMON_H
|
|
|
|
#include "mozilla/Logging.h"
|
|
|
|
extern mozilla::LogModule* GetCameraLog();
|
|
#define DOM_CAMERA_LOG( type, ... ) MOZ_LOG(GetCameraLog(), (mozilla::LogLevel)type, ( __VA_ARGS__ ))
|
|
|
|
#define DOM_CAMERA_LOGA( ... ) DOM_CAMERA_LOG( mozilla::LogLevel::Error, __VA_ARGS__ )
|
|
|
|
/**
|
|
* From the least to the most output.
|
|
*/
|
|
enum {
|
|
DOM_CAMERA_LOG_NOTHING,
|
|
DOM_CAMERA_LOG_ERROR,
|
|
DOM_CAMERA_LOG_WARNING,
|
|
DOM_CAMERA_LOG_INFO,
|
|
DOM_CAMERA_LOG_TRACE,
|
|
DOM_CAMERA_LOG_REFERENCES
|
|
};
|
|
|
|
/**
|
|
* DOM_CAMERA_LOGR() can be called before 'gCameraLog' is set, so
|
|
* we need to handle this one a little differently.
|
|
*/
|
|
#define DOM_CAMERA_LOGR( ... ) \
|
|
do { \
|
|
if (GetCameraLog()) { \
|
|
DOM_CAMERA_LOG( DOM_CAMERA_LOG_REFERENCES, __VA_ARGS__ ); \
|
|
} \
|
|
} while (0)
|
|
#define DOM_CAMERA_LOGT( ... ) DOM_CAMERA_LOG( DOM_CAMERA_LOG_TRACE, __VA_ARGS__ )
|
|
#define DOM_CAMERA_LOGI( ... ) DOM_CAMERA_LOG( DOM_CAMERA_LOG_INFO, __VA_ARGS__ )
|
|
#define DOM_CAMERA_LOGW( ... ) DOM_CAMERA_LOG( DOM_CAMERA_LOG_WARNING, __VA_ARGS__ )
|
|
#define DOM_CAMERA_LOGE( ... ) DOM_CAMERA_LOG( DOM_CAMERA_LOG_ERROR, __VA_ARGS__ )
|
|
|
|
#endif // DOM_CAMERA_CAMERACOMMON_H
|