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

Side by Side Diff: xfa/fxfa/include/fxfa.h

Issue 1986503002: XFA_WIDGETSTATUS, LAYOUTSTATUS and WIDGETFILTER cleanup. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « xfa/fxfa/app/xfa_rendercontext.cpp ('k') | xfa/fxfa/parser/xfa_doclayout.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 XFA_FXFA_INCLUDE_FXFA_H_ 7 #ifndef XFA_FXFA_INCLUDE_FXFA_H_
8 #define XFA_FXFA_INCLUDE_FXFA_H_ 8 #define XFA_FXFA_INCLUDE_FXFA_H_
9 9
10 #include <vector> 10 #include <vector>
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 #define XFA_RENDERSTATUS_Failed -1 178 #define XFA_RENDERSTATUS_Failed -1
179 179
180 #define XFA_TRAVERSEWAY_Tranvalse 0x0001 180 #define XFA_TRAVERSEWAY_Tranvalse 0x0001
181 #define XFA_TRAVERSEWAY_Form 0x0002 181 #define XFA_TRAVERSEWAY_Form 0x0002
182 #define XFA_WIDGETFILTER_Visible 0x0001 182 #define XFA_WIDGETFILTER_Visible 0x0001
183 #define XFA_WIDGETFILTER_Viewable 0x0010 183 #define XFA_WIDGETFILTER_Viewable 0x0010
184 #define XFA_WIDGETFILTER_Printable 0x0020 184 #define XFA_WIDGETFILTER_Printable 0x0020
185 #define XFA_WIDGETFILTER_Field 0x0100 185 #define XFA_WIDGETFILTER_Field 0x0100
186 #define XFA_WIDGETFILTER_AllType 0x0F00 186 #define XFA_WIDGETFILTER_AllType 0x0F00
187 187
188 #define XFA_WIDGETSTATUS_Visible 0x00000001 188 enum XFA_WidgetStatus {
Tom Sepez 2016/05/16 18:36:57 Any reason not an enum class?
dsinclair 2016/05/16 18:39:27 We | and & the values together which, I believe, y
189 #define XFA_WIDGETSTATUS_Invisible 0x00000002 189 XFA_WidgetStatus_None = 1 << 0,
190 #define XFA_WIDGETSTATUS_Hidden 0x00000004 190 XFA_WidgetStatus_Access = 1 << 1,
191 #define XFA_WIDGETSTATUS_Viewable 0x00000010 191 XFA_WidgetStatus_ButtonDown = 1 << 2,
192 #define XFA_WIDGETSTATUS_Printable 0x00000020 192 XFA_WidgetStatus_Disabled = 1 << 3,
193 #define XFA_WIDGETSTATUS_Focused 0x00000100 193 XFA_WidgetStatus_Focused = 1 << 4,
194 XFA_WidgetStatus_Highlight = 1 << 5,
195 XFA_WidgetStatus_Printable = 1 << 6,
196 XFA_WidgetStatus_RectCached = 1 << 7,
197 XFA_WidgetStatus_TextEditValueChanged = 1 < 8,
198 XFA_WidgetStatus_Viewable = 1 << 9,
199 XFA_WidgetStatus_Visible = 1 << 10
200 };
194 201
195 enum XFA_EVENTTYPE { 202 enum XFA_EVENTTYPE {
196 XFA_EVENT_Click, 203 XFA_EVENT_Click,
197 XFA_EVENT_Change, 204 XFA_EVENT_Change,
198 XFA_EVENT_DocClose, 205 XFA_EVENT_DocClose,
199 XFA_EVENT_DocReady, 206 XFA_EVENT_DocReady,
200 XFA_EVENT_Enter, 207 XFA_EVENT_Enter,
201 XFA_EVENT_Exit, 208 XFA_EVENT_Exit,
202 XFA_EVENT_Full, 209 XFA_EVENT_Full,
203 XFA_EVENT_IndexChange, 210 XFA_EVENT_IndexChange,
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 virtual CXFA_FFWidget* MoveToNext() = 0; 550 virtual CXFA_FFWidget* MoveToNext() = 0;
544 virtual CXFA_FFWidget* MoveToPrevious() = 0; 551 virtual CXFA_FFWidget* MoveToPrevious() = 0;
545 virtual CXFA_FFWidget* GetCurrentWidget() = 0; 552 virtual CXFA_FFWidget* GetCurrentWidget() = 0;
546 virtual FX_BOOL SetCurrentWidget(CXFA_FFWidget* hWidget) = 0; 553 virtual FX_BOOL SetCurrentWidget(CXFA_FFWidget* hWidget) = 0;
547 554
548 protected: 555 protected:
549 virtual ~IXFA_WidgetIterator() {} 556 virtual ~IXFA_WidgetIterator() {}
550 }; 557 };
551 558
552 #endif // XFA_FXFA_INCLUDE_FXFA_H_ 559 #endif // XFA_FXFA_INCLUDE_FXFA_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_rendercontext.cpp ('k') | xfa/fxfa/parser/xfa_doclayout.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698