OLD | NEW |
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_NOTE_H | 7 #ifndef _FWL_NOTE_H |
8 #define _FWL_NOTE_H | 8 #define _FWL_NOTE_H |
9 class IFWL_Target; | 9 class IFWL_Target; |
10 class IFWL_Widget; | 10 class IFWL_Widget; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 #define FWL_MSGKEYCMD_KeyDown 1 | 113 #define FWL_MSGKEYCMD_KeyDown 1 |
114 #define FWL_MSGKEYCMD_KeyUp 2 | 114 #define FWL_MSGKEYCMD_KeyUp 2 |
115 #define FWL_MSGKEYCMD_Char 3 | 115 #define FWL_MSGKEYCMD_Char 3 |
116 #define FWL_KEYFLAG_Ctrl (1 << 0) | 116 #define FWL_KEYFLAG_Ctrl (1 << 0) |
117 #define FWL_KEYFLAG_Alt (1 << 1) | 117 #define FWL_KEYFLAG_Alt (1 << 1) |
118 #define FWL_KEYFLAG_Shift (1 << 2) | 118 #define FWL_KEYFLAG_Shift (1 << 2) |
119 #define FWL_KEYFLAG_Command (1 << 3) | 119 #define FWL_KEYFLAG_Command (1 << 3) |
120 #define FWL_KEYFLAG_LButton (1 << 4) | 120 #define FWL_KEYFLAG_LButton (1 << 4) |
121 #define FWL_KEYFLAG_RButton (1 << 5) | 121 #define FWL_KEYFLAG_RButton (1 << 5) |
122 #define FWL_KEYFLAG_MButton (1 << 6) | 122 #define FWL_KEYFLAG_MButton (1 << 6) |
123 class CFWL_Note : public CFX_Object | 123 class CFWL_Note |
124 { | 124 { |
125 public: | 125 public: |
126 virtual FX_DWORD Release() | 126 virtual FX_DWORD Release() |
127 { | 127 { |
128 m_dwRefCount --; | 128 m_dwRefCount --; |
129 FX_DWORD dwRefCount = m_dwRefCount; | 129 FX_DWORD dwRefCount = m_dwRefCount; |
130 if (!m_dwRefCount) { | 130 if (!m_dwRefCount) { |
131 delete this; | 131 delete this; |
132 } | 132 } |
133 return dwRefCount; | 133 return dwRefCount; |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 return FWL_ERR_Indefinite; | 380 return FWL_ERR_Indefinite; |
381 } | 381 } |
382 }; | 382 }; |
383 FWL_ERR FWL_AddToolTipTarget(IFWL_ToolTipTarget *pTarget); | 383 FWL_ERR FWL_AddToolTipTarget(IFWL_ToolTipTarget *pTarget); |
384 FWL_ERR FWL_RemoveToolTipTarget(IFWL_ToolTipTarget *pTarget); | 384 FWL_ERR FWL_RemoveToolTipTarget(IFWL_ToolTipTarget *pTarget); |
385 FWL_ERR FWL_SetToolTipInitialDelay(FX_INT32 iDelayTime); | 385 FWL_ERR FWL_SetToolTipInitialDelay(FX_INT32 iDelayTime); |
386 FWL_ERR FWL_SetToolTipAutoPopDelay(FX_INT32 iDelayTime); | 386 FWL_ERR FWL_SetToolTipAutoPopDelay(FX_INT32 iDelayTime); |
387 typedef FX_BOOL (*FWLMessageHookCallback)(CFWL_Message *msg, FX_LPVOID info); | 387 typedef FX_BOOL (*FWLMessageHookCallback)(CFWL_Message *msg, FX_LPVOID info); |
388 FWL_ERR FWL_SetHook(IFWL_NoteDriver *driver, FWLMessageHookCallback callback, FX
_LPVOID info); | 388 FWL_ERR FWL_SetHook(IFWL_NoteDriver *driver, FWLMessageHookCallback callback, FX
_LPVOID info); |
389 #endif | 389 #endif |
OLD | NEW |