| 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 #include "../../include/pdfwindow/PDFWindow.h" | 7 #include "../../include/pdfwindow/PDFWindow.h" |
| 8 #include "../../include/pdfwindow/PWL_Wnd.h" | 8 #include "../../include/pdfwindow/PWL_Wnd.h" |
| 9 #include "../../include/pdfwindow/PWL_Utils.h" | 9 #include "../../include/pdfwindow/PWL_Utils.h" |
| 10 #include "../../include/pdfwindow/PWL_ScrollBar.h" | 10 #include "../../include/pdfwindow/PWL_ScrollBar.h" |
| 11 | 11 |
| 12 /* -------------------------- CPWL_Timer -------------------------- */ | 12 /* -------------------------- CPWL_Timer -------------------------- */ |
| 13 | 13 |
| 14 static CFX_MapPtrTemplate<FX_INT32, CPWL_Timer*> g_TimeMap; | 14 static CFX_MapPtrTemplate<FX_INT32, CPWL_Timer*> g_TimeMap; |
| 15 | 15 |
| 16 CPWL_Timer::CPWL_Timer(CPWL_TimerHandler* pAttached, IFX_SystemHandler* pSystemH
andler) : | 16 CPWL_Timer::CPWL_Timer(CPWL_TimerHandler* pAttached, IFX_SystemHandler* pSystemH
andler) : |
| 17 m_nTimerID(0), |
| 17 m_pAttached(pAttached), | 18 m_pAttached(pAttached), |
| 18 m_nTimerID(0), | |
| 19 m_pSystemHandler(pSystemHandler) | 19 m_pSystemHandler(pSystemHandler) |
| 20 { | 20 { |
| 21 ASSERT(m_pAttached != NULL); | 21 ASSERT(m_pAttached != NULL); |
| 22 ASSERT(m_pSystemHandler != NULL); | 22 ASSERT(m_pSystemHandler != NULL); |
| 23 } | 23 } |
| 24 | 24 |
| 25 CPWL_Timer::~CPWL_Timer() | 25 CPWL_Timer::~CPWL_Timer() |
| 26 { | 26 { |
| 27 KillPWLTimer(); | 27 KillPWLTimer(); |
| 28 } | 28 } |
| (...skipping 1304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1333 FX_BOOL CPWL_Wnd::IsINSERTpressed(FX_DWORD nFlag) const | 1333 FX_BOOL CPWL_Wnd::IsINSERTpressed(FX_DWORD nFlag) const |
| 1334 { | 1334 { |
| 1335 if (IFX_SystemHandler* pSystemHandler = GetSystemHandler()) | 1335 if (IFX_SystemHandler* pSystemHandler = GetSystemHandler()) |
| 1336 { | 1336 { |
| 1337 return pSystemHandler->IsINSERTKeyDown(nFlag); | 1337 return pSystemHandler->IsINSERTKeyDown(nFlag); |
| 1338 } | 1338 } |
| 1339 | 1339 |
| 1340 return FALSE; | 1340 return FALSE; |
| 1341 } | 1341 } |
| 1342 | 1342 |
| OLD | NEW |