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

Unified Diff: core/fpdfapi/fpdf_parser/cpdf_object.cpp

Issue 2392603004: Move core/fpdfapi/fpdf_parser to core/fpdfapi/parser (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_parser/cpdf_object.h ('k') | core/fpdfapi/fpdf_parser/cpdf_object_unittest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fpdfapi/fpdf_parser/cpdf_object.cpp
diff --git a/core/fpdfapi/fpdf_parser/cpdf_object.cpp b/core/fpdfapi/fpdf_parser/cpdf_object.cpp
deleted file mode 100644
index ba7490a13f7aa1f66976fa70e80565e6f6bb823a..0000000000000000000000000000000000000000
--- a/core/fpdfapi/fpdf_parser/cpdf_object.cpp
+++ /dev/null
@@ -1,165 +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
-
-#include "core/fpdfapi/fpdf_parser/cpdf_object.h"
-
-#include <algorithm>
-
-#include "core/fpdfapi/fpdf_parser/cpdf_array.h"
-#include "core/fpdfapi/fpdf_parser/cpdf_dictionary.h"
-#include "core/fpdfapi/fpdf_parser/cpdf_indirect_object_holder.h"
-#include "core/fpdfapi/fpdf_parser/cpdf_parser.h"
-#include "core/fpdfapi/fpdf_parser/fpdf_parser_decode.h"
-#include "core/fxcrt/fx_string.h"
-#include "third_party/base/stl_util.h"
-
-CPDF_Object::~CPDF_Object() {}
-
-CPDF_Object* CPDF_Object::GetDirect() const {
- return const_cast<CPDF_Object*>(this);
-}
-
-CPDF_Object* CPDF_Object::CloneObjectNonCyclic(bool bDirect) const {
- std::set<const CPDF_Object*> visited_objs;
- return CloneNonCyclic(bDirect, &visited_objs);
-}
-
-CPDF_Object* CPDF_Object::CloneDirectObject() const {
- return CloneObjectNonCyclic(true);
-}
-
-CPDF_Object* CPDF_Object::CloneNonCyclic(
- bool bDirect,
- std::set<const CPDF_Object*>* pVisited) const {
- return Clone();
-}
-
-void CPDF_Object::Release() {
- if (m_ObjNum)
- return;
-
- delete this;
-}
-
-CFX_ByteString CPDF_Object::GetString() const {
- return CFX_ByteString();
-}
-
-CFX_WideString CPDF_Object::GetUnicodeText() const {
- return CFX_WideString();
-}
-
-FX_FLOAT CPDF_Object::GetNumber() const {
- return 0;
-}
-
-int CPDF_Object::GetInteger() const {
- return 0;
-}
-
-CPDF_Dictionary* CPDF_Object::GetDict() const {
- return nullptr;
-}
-
-void CPDF_Object::SetString(const CFX_ByteString& str) {
- ASSERT(FALSE);
-}
-
-bool CPDF_Object::IsArray() const {
- return false;
-}
-
-bool CPDF_Object::IsBoolean() const {
- return false;
-}
-
-bool CPDF_Object::IsDictionary() const {
- return false;
-}
-
-bool CPDF_Object::IsName() const {
- return false;
-}
-
-bool CPDF_Object::IsNumber() const {
- return false;
-}
-
-bool CPDF_Object::IsReference() const {
- return false;
-}
-
-bool CPDF_Object::IsStream() const {
- return false;
-}
-
-bool CPDF_Object::IsString() const {
- return false;
-}
-
-CPDF_Array* CPDF_Object::AsArray() {
- return nullptr;
-}
-
-const CPDF_Array* CPDF_Object::AsArray() const {
- return nullptr;
-}
-
-CPDF_Boolean* CPDF_Object::AsBoolean() {
- return nullptr;
-}
-
-const CPDF_Boolean* CPDF_Object::AsBoolean() const {
- return nullptr;
-}
-
-CPDF_Dictionary* CPDF_Object::AsDictionary() {
- return nullptr;
-}
-
-const CPDF_Dictionary* CPDF_Object::AsDictionary() const {
- return nullptr;
-}
-
-CPDF_Name* CPDF_Object::AsName() {
- return nullptr;
-}
-
-const CPDF_Name* CPDF_Object::AsName() const {
- return nullptr;
-}
-
-CPDF_Number* CPDF_Object::AsNumber() {
- return nullptr;
-}
-
-const CPDF_Number* CPDF_Object::AsNumber() const {
- return nullptr;
-}
-
-CPDF_Reference* CPDF_Object::AsReference() {
- return nullptr;
-}
-
-const CPDF_Reference* CPDF_Object::AsReference() const {
- return nullptr;
-}
-
-CPDF_Stream* CPDF_Object::AsStream() {
- return nullptr;
-}
-
-const CPDF_Stream* CPDF_Object::AsStream() const {
- return nullptr;
-}
-
-CPDF_String* CPDF_Object::AsString() {
- return nullptr;
-}
-
-const CPDF_String* CPDF_Object::AsString() const {
- return nullptr;
-}
« no previous file with comments | « core/fpdfapi/fpdf_parser/cpdf_object.h ('k') | core/fpdfapi/fpdf_parser/cpdf_object_unittest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698