summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_imagedata.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-01-03 16:23:03 -0500
committerChromium commit bot <commit-bot@chromium.org>2018-01-03 21:50:51 +0000
commit8afa22d5701a6c47b3f34267a2c52948efc3d301 (patch)
treeeaa6e06fe2abb5c7cf09c3bd01e1ab89b5909b1f /xfa/fxfa/parser/cxfa_imagedata.cpp
parent4f88617ad2a4d352af87b95c2f7293d12e7bd2c8 (diff)
downloadpdfium-8afa22d5701a6c47b3f34267a2c52948efc3d301.tar.xz
Fold CXFA_ImageData into CXFA_Image
This CL folds the CXFA_ImageData wrapper into CXFA_Image. Change-Id: I36596abc4dff7d17dc6ee13a857a084f41164c7a Reviewed-on: https://pdfium-review.googlesource.com/22190 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_imagedata.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_imagedata.cpp48
1 files changed, 0 insertions, 48 deletions
diff --git a/xfa/fxfa/parser/cxfa_imagedata.cpp b/xfa/fxfa/parser/cxfa_imagedata.cpp
deleted file mode 100644
index cacbf9558d..0000000000
--- a/xfa/fxfa/parser/cxfa_imagedata.cpp
+++ /dev/null
@@ -1,48 +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 "xfa/fxfa/parser/cxfa_imagedata.h"
-
-#include "xfa/fxfa/parser/cxfa_node.h"
-
-CXFA_ImageData::CXFA_ImageData(CXFA_Node* pNode) : CXFA_DataData(pNode) {}
-
-XFA_AttributeEnum CXFA_ImageData::GetAspect() const {
- return m_pNode->JSObject()->GetEnum(XFA_Attribute::Aspect);
-}
-
-WideString CXFA_ImageData::GetContentType() const {
- return m_pNode->JSObject()
- ->TryCData(XFA_Attribute::ContentType, true)
- .value_or(L"");
-}
-
-WideString CXFA_ImageData::GetHref() const {
- return m_pNode->JSObject()->TryCData(XFA_Attribute::Href, true).value_or(L"");
-}
-
-XFA_AttributeEnum CXFA_ImageData::GetTransferEncoding() const {
- return static_cast<XFA_AttributeEnum>(
- m_pNode->JSObject()->GetEnum(XFA_Attribute::TransferEncoding));
-}
-
-WideString CXFA_ImageData::GetContent() const {
- return m_pNode->JSObject()->TryContent(false, true).value_or(L"");
-}
-
-void CXFA_ImageData::SetContentType(const WideString& wsContentType) {
- m_pNode->JSObject()->SetCData(XFA_Attribute::ContentType, wsContentType,
- false, false);
-}
-
-void CXFA_ImageData::SetHref(const WideString& wsHref) {
- m_pNode->JSObject()->SetCData(XFA_Attribute::Href, wsHref, false, false);
-}
-
-void CXFA_ImageData::SetTransferEncoding(XFA_AttributeEnum iTransferEncoding) {
- m_pNode->JSObject()->SetEnum(XFA_Attribute::TransferEncoding,
- iTransferEncoding, false);
-}