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

Side by Side Diff: xfa/include/fwl/basewidget/fwl_datetimepicker.h

Issue 1509203002: FWL refcounts never incremented (part 1) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: protected Created 5 years 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 unified diff | Download patch
« no previous file with comments | « xfa/include/fwl/basewidget/fwl_combobox.h ('k') | xfa/include/fwl/basewidget/fwl_edit.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef _FWL_DATETIMEPICKER_H 7 #ifndef _FWL_DATETIMEPICKER_H
8 #define _FWL_DATETIMEPICKER_H 8 #define _FWL_DATETIMEPICKER_H
9 class CFWL_WidgetImpProperties; 9 class CFWL_WidgetImpProperties;
10 class IFWL_Widget; 10 class IFWL_Widget;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 END_FWL_EVENT_DEF 63 END_FWL_EVENT_DEF
64 class IFWL_DateTimePickerDP : public IFWL_DataProvider { 64 class IFWL_DateTimePickerDP : public IFWL_DataProvider {
65 public: 65 public:
66 virtual FWL_ERR GetToday(IFWL_Widget* pWidget, 66 virtual FWL_ERR GetToday(IFWL_Widget* pWidget,
67 int32_t& iYear, 67 int32_t& iYear,
68 int32_t& iMonth, 68 int32_t& iMonth,
69 int32_t& iDay) = 0; 69 int32_t& iDay) = 0;
70 }; 70 };
71 class IFWL_DateTimePicker : public IFWL_Widget { 71 class IFWL_DateTimePicker : public IFWL_Widget {
72 public: 72 public:
73 static IFWL_DateTimePicker* Create(); 73 IFWL_DateTimePicker();
74 FWL_ERR Initialize(const CFWL_WidgetImpProperties& properties, 74 FWL_ERR Initialize(const CFWL_WidgetImpProperties& properties,
75 IFWL_Widget* pOuter); 75 IFWL_Widget* pOuter);
76 FWL_ERR GetCurSel(int32_t& iYear, int32_t& iMonth, int32_t& iDay); 76 FWL_ERR GetCurSel(int32_t& iYear, int32_t& iMonth, int32_t& iDay);
77 FWL_ERR SetCurSel(int32_t iYear, int32_t iMonth, int32_t iDay); 77 FWL_ERR SetCurSel(int32_t iYear, int32_t iMonth, int32_t iDay);
78 FWL_ERR SetEditText(const CFX_WideString& wsText); 78 FWL_ERR SetEditText(const CFX_WideString& wsText);
79 FWL_ERR GetEditText(CFX_WideString& wsText, 79 FWL_ERR GetEditText(CFX_WideString& wsText,
80 int32_t nStart = 0, 80 int32_t nStart = 0,
81 int32_t nCount = -1) const; 81 int32_t nCount = -1) const;
82 int32_t CountSelRanges(); 82 int32_t CountSelRanges();
83 int32_t GetSelRange(int32_t nIndex, int32_t& nStart); 83 int32_t GetSelRange(int32_t nIndex, int32_t& nStart);
84 FX_BOOL CanUndo(); 84 FX_BOOL CanUndo();
85 FX_BOOL CanRedo(); 85 FX_BOOL CanRedo();
86 FX_BOOL Undo(); 86 FX_BOOL Undo();
87 FX_BOOL Redo(); 87 FX_BOOL Redo();
88 FX_BOOL CanCopy(); 88 FX_BOOL CanCopy();
89 FX_BOOL CanCut(); 89 FX_BOOL CanCut();
90 FX_BOOL CanSelectAll(); 90 FX_BOOL CanSelectAll();
91 FX_BOOL Copy(CFX_WideString& wsCopy); 91 FX_BOOL Copy(CFX_WideString& wsCopy);
92 FX_BOOL Cut(CFX_WideString& wsCut); 92 FX_BOOL Cut(CFX_WideString& wsCut);
93 FX_BOOL Paste(const CFX_WideString& wsPaste); 93 FX_BOOL Paste(const CFX_WideString& wsPaste);
94 FX_BOOL SelectAll(); 94 FX_BOOL SelectAll();
95 FX_BOOL Delete(); 95 FX_BOOL Delete();
96 FX_BOOL DeSelect(); 96 FX_BOOL DeSelect();
97 FWL_ERR GetBBox(CFX_RectF& rect); 97 FWL_ERR GetBBox(CFX_RectF& rect);
98 FWL_ERR SetEditLimit(int32_t nLimit); 98 FWL_ERR SetEditLimit(int32_t nLimit);
99 FWL_ERR ModifyEditStylesEx(FX_DWORD dwStylesExAdded, 99 FWL_ERR ModifyEditStylesEx(FX_DWORD dwStylesExAdded,
100 FX_DWORD dwStylesExRemoved); 100 FX_DWORD dwStylesExRemoved);
101
102 protected:
103 IFWL_DateTimePicker();
104 }; 101 };
105 #endif 102 #endif
OLDNEW
« no previous file with comments | « xfa/include/fwl/basewidget/fwl_combobox.h ('k') | xfa/include/fwl/basewidget/fwl_edit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698