summaryrefslogtreecommitdiff
path: root/core/fpdftext/include/ipdf_linkextract.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2016-03-14 15:56:00 -0400
committerDan Sinclair <dsinclair@chromium.org>2016-03-14 15:56:00 -0400
commit13ee55a8267963c9b39486a6a22646fbdd770742 (patch)
treee50fd9cb4dbde547de6a913c54128114db64df4e /core/fpdftext/include/ipdf_linkextract.h
parent544bbc6d81ee9d94a09809830b3f622f2dbad28a (diff)
downloadpdfium-13ee55a8267963c9b39486a6a22646fbdd770742.tar.xz
Move fx_crypto.h and fpdf_text.h out of core/include.
This CL moves the two files and breaks fpdf_text.h apart into individual pieces. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1801973002 .
Diffstat (limited to 'core/fpdftext/include/ipdf_linkextract.h')
-rw-r--r--core/fpdftext/include/ipdf_linkextract.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/core/fpdftext/include/ipdf_linkextract.h b/core/fpdftext/include/ipdf_linkextract.h
new file mode 100644
index 0000000000..2d7fe02127
--- /dev/null
+++ b/core/fpdftext/include/ipdf_linkextract.h
@@ -0,0 +1,26 @@
+// 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_FPDFTEXT_INCLUDE_IPDF_LINKEXTRACT_H_
+#define CORE_FPDFTEXT_INCLUDE_IPDF_LINKEXTRACT_H_
+
+#include "core/include/fxcrt/fx_coordinates.h"
+#include "core/include/fxcrt/fx_system.h"
+#include "core/fpdftext/include/ipdf_textpage.h"
+
+class IPDF_LinkExtract {
+ public:
+ static IPDF_LinkExtract* CreateLinkExtract();
+ virtual ~IPDF_LinkExtract() {}
+
+ virtual FX_BOOL ExtractLinks(const IPDF_TextPage* pTextPage) = 0;
+ virtual int CountLinks() const = 0;
+ virtual CFX_WideString GetURL(int index) const = 0;
+ virtual void GetBoundedSegment(int index, int& start, int& count) const = 0;
+ virtual void GetRects(int index, CFX_RectArray& rects) const = 0;
+};
+
+#endif // CORE_FPDFTEXT_INCLUDE_IPDF_LINKEXTRACT_H_