diff options
author | Nico Weber <thakis@chromium.org> | 2015-08-04 13:00:21 -0700 |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2015-08-04 13:00:21 -0700 |
commit | 9d8ec5a6e37e8d1d4d4edca9040de234e2d4728f (patch) | |
tree | c97037f398d714665aefccb6eb54d0969ad7030c /xfa/src/fxbarcode/BC_TwoDimWriter.h | |
parent | 780cee82236d1b3b0f9b01a22424e4b8ec9a6f12 (diff) | |
download | pdfium-9d8ec5a6e37e8d1d4d4edca9040de234e2d4728f.tar.xz |
XFA: clang-format all pdfium code.
No behavior change.
Generated by:
find . -name '*.cpp' -o -name '*.h' | \
grep -E -v 'third_party|thirdparties|lpng_v163|tiff_v403' | \
xargs ../../buildtools/mac/clang-format -i
Then manually merged https://codereview.chromium.org/1269223002/
See thread "tabs vs spaces" on pdfium@googlegroups.com for discussion.
BUG=none
Diffstat (limited to 'xfa/src/fxbarcode/BC_TwoDimWriter.h')
-rw-r--r-- | xfa/src/fxbarcode/BC_TwoDimWriter.h | 68 |
1 files changed, 39 insertions, 29 deletions
diff --git a/xfa/src/fxbarcode/BC_TwoDimWriter.h b/xfa/src/fxbarcode/BC_TwoDimWriter.h index 9ed2932c27..1afe59fb00 100644 --- a/xfa/src/fxbarcode/BC_TwoDimWriter.h +++ b/xfa/src/fxbarcode/BC_TwoDimWriter.h @@ -10,35 +10,45 @@ class CBC_Writer;
class CBC_CommonBitMatrix;
class CBC_TwoDimWriter;
-class CBC_TwoDimWriter : public CBC_Writer
-{
-public:
- CBC_TwoDimWriter();
- virtual ~CBC_TwoDimWriter();
- virtual uint8_t* Encode(const CFX_WideString& contents, int32_t ecLevel, int32_t &outWidth, int32_t &outHeight, int32_t &e)
- {
- return NULL;
- };
- virtual uint8_t* Encode(const CFX_ByteString& contents, BCFORMAT format, int32_t &outWidth, int32_t &outHeight, int32_t hints, int32_t &e)
- {
- return NULL;
- };
- virtual uint8_t* Encode(const CFX_ByteString& contents, BCFORMAT format, int32_t &outWidth, int32_t &outHeight, int32_t &e)
- {
- return NULL;
- };
- virtual void RenderResult(uint8_t *code, int32_t codeWidth, int32_t codeHeight, int32_t &e);
- virtual void RenderBitmapResult(CFX_DIBitmap *&pOutBitmap, int32_t& e);
- virtual void RenderDeviceResult(CFX_RenderDevice* device, const CFX_Matrix* matrix);
- virtual FX_BOOL SetErrorCorrectionLevel (int32_t level) = 0;
- virtual int32_t GetErrorCorrectionLevel()
- {
- return m_iCorrectLevel;
- };
+class CBC_TwoDimWriter : public CBC_Writer {
+ public:
+ CBC_TwoDimWriter();
+ virtual ~CBC_TwoDimWriter();
+ virtual uint8_t* Encode(const CFX_WideString& contents,
+ int32_t ecLevel,
+ int32_t& outWidth,
+ int32_t& outHeight,
+ int32_t& e) {
+ return NULL;
+ };
+ virtual uint8_t* Encode(const CFX_ByteString& contents,
+ BCFORMAT format,
+ int32_t& outWidth,
+ int32_t& outHeight,
+ int32_t hints,
+ int32_t& e) {
+ return NULL;
+ };
+ virtual uint8_t* Encode(const CFX_ByteString& contents,
+ BCFORMAT format,
+ int32_t& outWidth,
+ int32_t& outHeight,
+ int32_t& e) {
+ return NULL;
+ };
+ virtual void RenderResult(uint8_t* code,
+ int32_t codeWidth,
+ int32_t codeHeight,
+ int32_t& e);
+ virtual void RenderBitmapResult(CFX_DIBitmap*& pOutBitmap, int32_t& e);
+ virtual void RenderDeviceResult(CFX_RenderDevice* device,
+ const CFX_Matrix* matrix);
+ virtual FX_BOOL SetErrorCorrectionLevel(int32_t level) = 0;
+ virtual int32_t GetErrorCorrectionLevel() { return m_iCorrectLevel; };
-protected:
- int32_t m_iCorrectLevel;
- FX_BOOL m_bFixedSize;
- CBC_CommonBitMatrix* m_output;
+ protected:
+ int32_t m_iCorrectLevel;
+ FX_BOOL m_bFixedSize;
+ CBC_CommonBitMatrix* m_output;
};
#endif
|