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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
333 IFWL_Widget* pListener, | 333 IFWL_Widget* pListener, |
334 IFWL_Widget* pEventSource = NULL, | 334 IFWL_Widget* pEventSource = NULL, |
335 FX_DWORD dwFilter = FWL_EVENT_ALL_MASK) = 0; | 335 FX_DWORD dwFilter = FWL_EVENT_ALL_MASK) = 0; |
336 virtual FWL_ERR UnregisterEventTarget(IFWL_Widget* pListener) = 0; | 336 virtual FWL_ERR UnregisterEventTarget(IFWL_Widget* pListener) = 0; |
337 virtual void ClearEventTargets(FX_BOOL bRemoveAll) = 0; | 337 virtual void ClearEventTargets(FX_BOOL bRemoveAll) = 0; |
338 virtual int32_t GetQueueMaxSize() const = 0; | 338 virtual int32_t GetQueueMaxSize() const = 0; |
339 virtual FWL_ERR SetQueueMaxSize(const int32_t size) = 0; | 339 virtual FWL_ERR SetQueueMaxSize(const int32_t size) = 0; |
340 virtual IFWL_NoteThread* GetOwnerThread() const = 0; | 340 virtual IFWL_NoteThread* GetOwnerThread() const = 0; |
341 virtual FWL_ERR PushNoteLoop(IFWL_NoteLoop* pNoteLoop) = 0; | 341 virtual FWL_ERR PushNoteLoop(IFWL_NoteLoop* pNoteLoop) = 0; |
342 virtual IFWL_NoteLoop* PopNoteLoop() = 0; | 342 virtual IFWL_NoteLoop* PopNoteLoop() = 0; |
343 virtual IFWL_Widget* GetFocus() = 0; | |
Tom Sepez
2015/12/10 22:40:35
Note: Prevent casting to concrete class later on .
| |
343 virtual FX_BOOL SetFocus(IFWL_Widget* pFocus, FX_BOOL bNotify = FALSE) = 0; | 344 virtual FX_BOOL SetFocus(IFWL_Widget* pFocus, FX_BOOL bNotify = FALSE) = 0; |
345 virtual void SetGrab(IFWL_Widget* pGrab, FX_BOOL bSet) = 0; | |
344 virtual FWL_ERR Run() = 0; | 346 virtual FWL_ERR Run() = 0; |
345 }; | 347 }; |
346 IFWL_Widget* FWL_GetCurrentThreadModalWidget(IFWL_NoteThread* pNoteThread); | 348 IFWL_Widget* FWL_GetCurrentThreadModalWidget(IFWL_NoteThread* pNoteThread); |
347 class IFWL_NoteLoop { | 349 class IFWL_NoteLoop { |
348 public: | 350 public: |
349 virtual ~IFWL_NoteLoop() {} | 351 virtual ~IFWL_NoteLoop() {} |
350 virtual FX_BOOL PreProcessMessage(CFWL_Message* pMessage) = 0; | 352 virtual FX_BOOL PreProcessMessage(CFWL_Message* pMessage) = 0; |
351 virtual FWL_ERR Idle(int32_t count) = 0; | 353 virtual FWL_ERR Idle(int32_t count) = 0; |
352 }; | 354 }; |
353 class IFWL_ToolTipTarget { | 355 class IFWL_ToolTipTarget { |
(...skipping 11 matching lines...) Expand all Loading... | |
365 }; | 367 }; |
366 FWL_ERR FWL_AddToolTipTarget(IFWL_ToolTipTarget* pTarget); | 368 FWL_ERR FWL_AddToolTipTarget(IFWL_ToolTipTarget* pTarget); |
367 FWL_ERR FWL_RemoveToolTipTarget(IFWL_ToolTipTarget* pTarget); | 369 FWL_ERR FWL_RemoveToolTipTarget(IFWL_ToolTipTarget* pTarget); |
368 FWL_ERR FWL_SetToolTipInitialDelay(int32_t iDelayTime); | 370 FWL_ERR FWL_SetToolTipInitialDelay(int32_t iDelayTime); |
369 FWL_ERR FWL_SetToolTipAutoPopDelay(int32_t iDelayTime); | 371 FWL_ERR FWL_SetToolTipAutoPopDelay(int32_t iDelayTime); |
370 typedef FX_BOOL (*FWLMessageHookCallback)(CFWL_Message* msg, void* info); | 372 typedef FX_BOOL (*FWLMessageHookCallback)(CFWL_Message* msg, void* info); |
371 FWL_ERR FWL_SetHook(IFWL_NoteDriver* driver, | 373 FWL_ERR FWL_SetHook(IFWL_NoteDriver* driver, |
372 FWLMessageHookCallback callback, | 374 FWLMessageHookCallback callback, |
373 void* info); | 375 void* info); |
374 #endif | 376 #endif |
OLD | NEW |