summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_textprovider.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-08-21 20:52:02 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-21 20:52:02 +0000
commit7af775a00379e84c0da1ab81695583eb7daaec3a (patch)
treea302accbd2463976903b102f01db0c588b5e1859 /xfa/fxfa/cxfa_textprovider.h
parente4110926f26fcd9a906b2ceb722a4f3b50461130 (diff)
downloadpdfium-7af775a00379e84c0da1ab81695583eb7daaec3a.tar.xz
Change GetEmbbedObj() to return an Optional<WideString>.
Change "EmbbedObj" to "EmbeddedObj". Change-Id: Ia6a8ec45b4563b3ec64b91a10e087dbf32a8d8db Reviewed-on: https://pdfium-review.googlesource.com/40751 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_textprovider.h')
-rw-r--r--xfa/fxfa/cxfa_textprovider.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/xfa/fxfa/cxfa_textprovider.h b/xfa/fxfa/cxfa_textprovider.h
index 4f349e47e2..d6f00056f0 100644
--- a/xfa/fxfa/cxfa_textprovider.h
+++ b/xfa/fxfa/cxfa_textprovider.h
@@ -8,6 +8,7 @@
#define XFA_FXFA_CXFA_TEXTPROVIDER_H_
#include "core/fxcrt/fx_string.h"
+#include "third_party/base/optional.h"
#include "xfa/fxfa/cxfa_textlayout.h"
class CXFA_Font;
@@ -33,11 +34,10 @@ class CXFA_TextProvider {
CXFA_Node* GetTextNode(bool& bRichText);
CXFA_Para* GetParaIfExists();
CXFA_Font* GetFontIfExists();
- bool IsCheckButtonAndAutoWidth();
- bool GetEmbbedObj(bool bURI,
- bool bRaw,
- const WideString& wsAttr,
- WideString& wsValue);
+ bool IsCheckButtonAndAutoWidth() const;
+ Optional<WideString> GetEmbeddedObj(bool bURI,
+ bool bRaw,
+ const WideString& wsAttr);
private:
CXFA_Node* m_pNode; // Raw, this class owned by tree node.