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

Unified Diff: core/fpdfapi/fpdf_page/cpdf_page.h

Issue 2386423004: Move core/fpdfapi/fpdf_page to core/fpdfapi/page (Closed)
Patch Set: Rebase to master Created 4 years, 2 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
« no previous file with comments | « core/fpdfapi/fpdf_page/cpdf_meshstream.cpp ('k') | core/fpdfapi/fpdf_page/cpdf_page.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fpdfapi/fpdf_page/cpdf_page.h
diff --git a/core/fpdfapi/fpdf_page/cpdf_page.h b/core/fpdfapi/fpdf_page/cpdf_page.h
deleted file mode 100644
index 13f51986a263e5c0a66d08d3ded610ef73e5b586..0000000000000000000000000000000000000000
--- a/core/fpdfapi/fpdf_page/cpdf_page.h
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright 2016 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 CORE_FPDFAPI_FPDF_PAGE_CPDF_PAGE_H_
-#define CORE_FPDFAPI_FPDF_PAGE_CPDF_PAGE_H_
-
-#include <memory>
-
-#include "core/fpdfapi/fpdf_page/cpdf_pageobjectholder.h"
-#include "core/fxcrt/fx_basic.h"
-#include "core/fxcrt/fx_coordinates.h"
-#include "core/fxcrt/fx_system.h"
-
-class CPDF_Dictionary;
-class CPDF_Document;
-class CPDF_Object;
-class CPDF_PageRenderCache;
-class CPDF_PageRenderContext;
-
-class CPDF_Page : public CPDF_PageObjectHolder {
- public:
- class View {}; // Caller implements as desired, empty here due to layering.
-
- CPDF_Page(CPDF_Document* pDocument,
- CPDF_Dictionary* pPageDict,
- bool bPageCache);
- ~CPDF_Page() override;
-
- void ParseContent();
-
- void GetDisplayMatrix(CFX_Matrix& matrix,
- int xPos,
- int yPos,
- int xSize,
- int ySize,
- int iRotate) const;
-
- FX_FLOAT GetPageWidth() const { return m_PageWidth; }
- FX_FLOAT GetPageHeight() const { return m_PageHeight; }
- CFX_FloatRect GetPageBBox() const { return m_BBox; }
- const CFX_Matrix& GetPageMatrix() const { return m_PageMatrix; }
- CPDF_Object* GetPageAttr(const CFX_ByteString& name) const;
- CPDF_PageRenderCache* GetRenderCache() const { return m_pPageRender.get(); }
-
- CPDF_PageRenderContext* GetRenderContext() const {
- return m_pRenderContext.get();
- }
- void SetRenderContext(std::unique_ptr<CPDF_PageRenderContext> pContext);
-
- View* GetView() const { return m_pView; }
- void SetView(View* pView) { m_pView = pView; }
-
- protected:
- friend class CPDF_ContentParser;
-
- void StartParse();
-
- FX_FLOAT m_PageWidth;
- FX_FLOAT m_PageHeight;
- CFX_Matrix m_PageMatrix;
- View* m_pView;
- std::unique_ptr<CPDF_PageRenderCache> m_pPageRender;
- std::unique_ptr<CPDF_PageRenderContext> m_pRenderContext;
-};
-
-#endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_PAGE_H_
« no previous file with comments | « core/fpdfapi/fpdf_page/cpdf_meshstream.cpp ('k') | core/fpdfapi/fpdf_page/cpdf_page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698