Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Unified Diff: core/include/fpdfdoc/fpdf_tagged.h

Issue 453133004: clang-format all code (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: core/include/fpdfdoc/fpdf_tagged.h
diff --git a/core/include/fpdfdoc/fpdf_tagged.h b/core/include/fpdfdoc/fpdf_tagged.h
index f3ab01ea28f62f64c93e00acbe7ac7e4d8bce4ab..504b7f74a6021cd2f32e52323906bdc79e1c65a2 100644
--- a/core/include/fpdfdoc/fpdf_tagged.h
+++ b/core/include/fpdfdoc/fpdf_tagged.h
@@ -1,7 +1,7 @@
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-
+
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#ifndef _FPDF_TAGGED_H_
@@ -13,87 +13,90 @@ class CPDF_Document;
class CPDF_Page;
class IPDF_ReflowEngine;
class IPDF_ReflowedPage;
-class CPDF_StructTree : public CFX_Object
-{
-public:
-
- static CPDF_StructTree* LoadDoc(const CPDF_Document* pDoc);
+class CPDF_StructTree : public CFX_Object {
+ public:
+ static CPDF_StructTree* LoadDoc(const CPDF_Document* pDoc);
- static CPDF_StructTree* LoadPage(const CPDF_Document* pDoc, const CPDF_Dictionary* pPageDict);
+ static CPDF_StructTree* LoadPage(const CPDF_Document* pDoc,
+ const CPDF_Dictionary* pPageDict);
- virtual ~CPDF_StructTree() {}
+ virtual ~CPDF_StructTree() {}
- virtual int CountTopElements() const = 0;
+ virtual int CountTopElements() const = 0;
- virtual CPDF_StructElement* GetTopElement(int i) const = 0;
+ virtual CPDF_StructElement* GetTopElement(int i) const = 0;
};
struct CPDF_StructKid {
- enum {
- Invalid,
- Element,
- PageContent,
- StreamContent,
- Object
- } m_Type;
-
- union {
- struct {
-
- CPDF_StructElement* m_pElement;
-
- CPDF_Dictionary* m_pDict;
- } m_Element;
- struct {
+ enum { Invalid, Element, PageContent, StreamContent, Object } m_Type;
- FX_DWORD m_PageObjNum;
+ union {
+ struct {
+ CPDF_StructElement* m_pElement;
- FX_DWORD m_ContentId;
- } m_PageContent;
- struct {
+ CPDF_Dictionary* m_pDict;
+ } m_Element;
+ struct {
+ FX_DWORD m_PageObjNum;
- FX_DWORD m_PageObjNum;
+ FX_DWORD m_ContentId;
+ } m_PageContent;
+ struct {
+ FX_DWORD m_PageObjNum;
- FX_DWORD m_ContentId;
+ FX_DWORD m_ContentId;
- FX_DWORD m_RefObjNum;
- } m_StreamContent;
- struct {
+ FX_DWORD m_RefObjNum;
+ } m_StreamContent;
+ struct {
+ FX_DWORD m_PageObjNum;
- FX_DWORD m_PageObjNum;
-
- FX_DWORD m_RefObjNum;
- } m_Object;
- };
+ FX_DWORD m_RefObjNum;
+ } m_Object;
+ };
};
-class CPDF_StructElement : public CFX_Object
-{
-public:
-
- virtual CPDF_StructTree* GetTree() const = 0;
-
- virtual const CFX_ByteString& GetType() const = 0;
-
- virtual CPDF_StructElement* GetParent() const = 0;
-
- virtual CPDF_Dictionary * GetDict() const = 0;
+class CPDF_StructElement : public CFX_Object {
+ public:
+ virtual CPDF_StructTree* GetTree() const = 0;
- virtual int CountKids() const = 0;
+ virtual const CFX_ByteString& GetType() const = 0;
- virtual const CPDF_StructKid& GetKid(int index) const = 0;
+ virtual CPDF_StructElement* GetParent() const = 0;
- virtual CFX_PtrArray* GetObjectArray() = 0;
+ virtual CPDF_Dictionary* GetDict() const = 0;
- virtual CPDF_Object* GetAttr(FX_BSTR owner, FX_BSTR name, FX_BOOL bInheritable = FALSE, FX_FLOAT fLevel = 0.0F) = 0;
+ virtual int CountKids() const = 0;
+ virtual const CPDF_StructKid& GetKid(int index) const = 0;
+ virtual CFX_PtrArray* GetObjectArray() = 0;
- virtual CFX_ByteString GetName(FX_BSTR owner, FX_BSTR name, FX_BSTR default_value, FX_BOOL bInheritable = FALSE, int subindex = -1) = 0;
+ virtual CPDF_Object* GetAttr(FX_BSTR owner,
+ FX_BSTR name,
+ FX_BOOL bInheritable = FALSE,
+ FX_FLOAT fLevel = 0.0F) = 0;
- virtual FX_ARGB GetColor(FX_BSTR owner, FX_BSTR name, FX_ARGB default_value, FX_BOOL bInheritable = FALSE, int subindex = -1) = 0;
+ virtual CFX_ByteString GetName(FX_BSTR owner,
+ FX_BSTR name,
+ FX_BSTR default_value,
+ FX_BOOL bInheritable = FALSE,
+ int subindex = -1) = 0;
- virtual FX_FLOAT GetNumber(FX_BSTR owner, FX_BSTR name, FX_FLOAT default_value, FX_BOOL bInheritable = FALSE, int subindex = -1) = 0;
+ virtual FX_ARGB GetColor(FX_BSTR owner,
+ FX_BSTR name,
+ FX_ARGB default_value,
+ FX_BOOL bInheritable = FALSE,
+ int subindex = -1) = 0;
- virtual int GetInteger(FX_BSTR owner, FX_BSTR name, int default_value, FX_BOOL bInheritable = FALSE, int subindex = -1) = 0;
+ virtual FX_FLOAT GetNumber(FX_BSTR owner,
+ FX_BSTR name,
+ FX_FLOAT default_value,
+ FX_BOOL bInheritable = FALSE,
+ int subindex = -1) = 0;
+ virtual int GetInteger(FX_BSTR owner,
+ FX_BSTR name,
+ int default_value,
+ FX_BOOL bInheritable = FALSE,
+ int subindex = -1) = 0;
};
#endif

Powered by Google App Engine
This is Rietveld 408576698