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

Side by Side Diff: xfa/fwl/core/ifwl_notedriver.h

Issue 1835703002: Remove FX_DWORD from XFA, part 2 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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/fwl/core/ifwl_form.h ('k') | xfa/fwl/core/ifwl_target.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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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_FWL_CORE_IFWL_NOTEDRIVER_H_ 7 #ifndef XFA_FWL_CORE_IFWL_NOTEDRIVER_H_
8 #define XFA_FWL_CORE_IFWL_NOTEDRIVER_H_ 8 #define XFA_FWL_CORE_IFWL_NOTEDRIVER_H_
9 9
10 #include "core/fxcrt/include/fx_system.h" 10 #include "core/fxcrt/include/fx_system.h"
(...skipping 15 matching lines...) Expand all
26 class IFWL_Widget; 26 class IFWL_Widget;
27 27
28 class IFWL_NoteDriver { 28 class IFWL_NoteDriver {
29 public: 29 public:
30 virtual ~IFWL_NoteDriver() {} 30 virtual ~IFWL_NoteDriver() {}
31 31
32 virtual FX_BOOL SendNote(CFWL_Note* pNote) = 0; 32 virtual FX_BOOL SendNote(CFWL_Note* pNote) = 0;
33 virtual FWL_ERR RegisterEventTarget( 33 virtual FWL_ERR RegisterEventTarget(
34 IFWL_Widget* pListener, 34 IFWL_Widget* pListener,
35 IFWL_Widget* pEventSource = NULL, 35 IFWL_Widget* pEventSource = NULL,
36 FX_DWORD dwFilter = FWL_EVENT_ALL_MASK) = 0; 36 uint32_t dwFilter = FWL_EVENT_ALL_MASK) = 0;
37 virtual FWL_ERR UnregisterEventTarget(IFWL_Widget* pListener) = 0; 37 virtual FWL_ERR UnregisterEventTarget(IFWL_Widget* pListener) = 0;
38 virtual void ClearEventTargets(FX_BOOL bRemoveAll) = 0; 38 virtual void ClearEventTargets(FX_BOOL bRemoveAll) = 0;
39 virtual int32_t GetQueueMaxSize() const = 0; 39 virtual int32_t GetQueueMaxSize() const = 0;
40 virtual FWL_ERR SetQueueMaxSize(const int32_t size) = 0; 40 virtual FWL_ERR SetQueueMaxSize(const int32_t size) = 0;
41 virtual IFWL_NoteThread* GetOwnerThread() const = 0; 41 virtual IFWL_NoteThread* GetOwnerThread() const = 0;
42 virtual FWL_ERR PushNoteLoop(IFWL_NoteLoop* pNoteLoop) = 0; 42 virtual FWL_ERR PushNoteLoop(IFWL_NoteLoop* pNoteLoop) = 0;
43 virtual IFWL_NoteLoop* PopNoteLoop() = 0; 43 virtual IFWL_NoteLoop* PopNoteLoop() = 0;
44 virtual IFWL_Widget* GetFocus() = 0; 44 virtual IFWL_Widget* GetFocus() = 0;
45 virtual FX_BOOL SetFocus(IFWL_Widget* pFocus, FX_BOOL bNotify = FALSE) = 0; 45 virtual FX_BOOL SetFocus(IFWL_Widget* pFocus, FX_BOOL bNotify = FALSE) = 0;
46 virtual void SetGrab(IFWL_Widget* pGrab, FX_BOOL bSet) = 0; 46 virtual void SetGrab(IFWL_Widget* pGrab, FX_BOOL bSet) = 0;
47 virtual FWL_ERR Run() = 0; 47 virtual FWL_ERR Run() = 0;
48 }; 48 };
49 49
50 IFWL_Widget* FWL_GetCurrentThreadModalWidget(IFWL_NoteThread* pNoteThread); 50 IFWL_Widget* FWL_GetCurrentThreadModalWidget(IFWL_NoteThread* pNoteThread);
51 51
52 typedef FX_BOOL (*FWLMessageHookCallback)(CFWL_Message* msg, void* info); 52 typedef FX_BOOL (*FWLMessageHookCallback)(CFWL_Message* msg, void* info);
53 FWL_ERR FWL_SetHook(IFWL_NoteDriver* driver, 53 FWL_ERR FWL_SetHook(IFWL_NoteDriver* driver,
54 FWLMessageHookCallback callback, 54 FWLMessageHookCallback callback,
55 void* info); 55 void* info);
56 56
57 #endif // XFA_FWL_CORE_IFWL_NOTEDRIVER_H_ 57 #endif // XFA_FWL_CORE_IFWL_NOTEDRIVER_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_form.h ('k') | xfa/fwl/core/ifwl_target.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698