summaryrefslogtreecommitdiff
path: root/xfa/fde/cfde_texteditengine.h
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fde/cfde_texteditengine.h')
-rw-r--r--xfa/fde/cfde_texteditengine.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/xfa/fde/cfde_texteditengine.h b/xfa/fde/cfde_texteditengine.h
index e26487aaf6..dbb12f3953 100644
--- a/xfa/fde/cfde_texteditengine.h
+++ b/xfa/fde/cfde_texteditengine.h
@@ -129,14 +129,14 @@ class CFDE_TextEditEngine {
bool Undo();
void ClearOperationRecords();
- // TODO(dsinclair): Implement ....
- size_t GetIndexBefore(size_t pos) { return 0; }
- size_t GetIndexLeft(size_t pos) { return 0; }
- size_t GetIndexRight(size_t pos) { return 0; }
- size_t GetIndexUp(size_t pos) { return 0; }
- size_t GetIndexDown(size_t pos) { return 0; }
- size_t GetIndexAtStartOfLine(size_t pos) { return 0; }
- size_t GetIndexAtEndOfLine(size_t pos) { return 0; }
+ // This is not const it can trigger a |Layout|.
+ size_t GetIndexBefore(size_t pos);
+ size_t GetIndexLeft(size_t pos) const;
+ size_t GetIndexRight(size_t pos) const;
+ size_t GetIndexUp(size_t pos) const;
+ size_t GetIndexDown(size_t pos) const;
+ size_t GetIndexAtStartOfLine(size_t pos) const;
+ size_t GetIndexAtEndOfLine(size_t pos) const;
void SelectAll();
void SetSelection(size_t start_idx, size_t count);