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

Unified Diff: core/fpdftext/include/cpdf_linkextract.h

Issue 2383563002: Move core/fpdftext/include to core/fpdftext (Closed)
Patch Set: Rebase to master Created 4 years, 3 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/fpdftext/fpdf_text_int_unittest.cpp ('k') | core/fpdftext/include/cpdf_textpage.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fpdftext/include/cpdf_linkextract.h
diff --git a/core/fpdftext/include/cpdf_linkextract.h b/core/fpdftext/include/cpdf_linkextract.h
deleted file mode 100644
index 5d471e0f1cc0fea8666bb49926d3a17f462ca7a5..0000000000000000000000000000000000000000
--- a/core/fpdftext/include/cpdf_linkextract.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// 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 CORE_FPDFTEXT_INCLUDE_CPDF_LINKEXTRACT_H_
-#define CORE_FPDFTEXT_INCLUDE_CPDF_LINKEXTRACT_H_
-
-#include <vector>
-
-#include "core/fxcrt/include/fx_basic.h"
-#include "core/fxcrt/include/fx_coordinates.h"
-#include "core/fxcrt/include/fx_string.h"
-#include "core/fxcrt/include/fx_system.h"
-
-class CPDF_TextPage;
-
-class CPDF_LinkExtract {
- public:
- explicit CPDF_LinkExtract(const CPDF_TextPage* pTextPage);
- ~CPDF_LinkExtract();
-
- void ExtractLinks();
- size_t CountLinks() const { return m_LinkArray.size(); }
- CFX_WideString GetURL(size_t index) const;
- std::vector<CFX_FloatRect> GetRects(size_t index) const;
-
- protected:
- void ParseLink();
- bool CheckWebLink(CFX_WideString& str);
- bool CheckMailLink(CFX_WideString& str);
-
- private:
- struct Link {
- int m_Start;
- int m_Count;
- CFX_WideString m_strUrl;
- };
-
- const CPDF_TextPage* const m_pTextPage;
- CFX_WideString m_strPageText;
- std::vector<Link> m_LinkArray;
-};
-
-#endif // CORE_FPDFTEXT_INCLUDE_CPDF_LINKEXTRACT_H_
« no previous file with comments | « core/fpdftext/fpdf_text_int_unittest.cpp ('k') | core/fpdftext/include/cpdf_textpage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698