Chromium Code Reviews| 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 XFA_INCLUDE_FWL_CORE_FWL_NOTE_H_ | 7 #ifndef XFA_INCLUDE_FWL_CORE_FWL_NOTE_H_ |
| 8 #define XFA_INCLUDE_FWL_CORE_FWL_NOTE_H_ | 8 #define XFA_INCLUDE_FWL_CORE_FWL_NOTE_H_ |
| 9 | 9 |
| 10 #include "xfa/include/fxgraphics/fx_graphics.h" | 10 #include "xfa/include/fxgraphics/fx_graphics.h" |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 179 public: \ | 179 public: \ |
| 180 classname() : CFWL_Message() {} \ | 180 classname() : CFWL_Message() {} \ |
| 181 virtual CFWL_Note* Clone() { return new classname(*this); } \ | 181 virtual CFWL_Note* Clone() { return new classname(*this); } \ |
| 182 virtual FWL_ERR GetClassName(CFX_WideString& wsClass) const { \ | 182 virtual FWL_ERR GetClassName(CFX_WideString& wsClass) const { \ |
| 183 wsClass = L## #classname; \ | 183 wsClass = L## #classname; \ |
| 184 return FWL_ERR_Succeeded; \ | 184 return FWL_ERR_Succeeded; \ |
| 185 } \ | 185 } \ |
| 186 virtual FX_DWORD GetClassID() const { return msghashcode; } | 186 virtual FX_DWORD GetClassID() const { return msghashcode; } |
| 187 #define END_FWL_MESSAGE_DEF \ | 187 #define END_FWL_MESSAGE_DEF \ |
| 188 } \ | 188 } \ |
| 189 ; | 189 ; // NOLINT |
|
Tom Sepez
2016/02/23 17:44:19
what's the issue with these?
dsinclair
2016/02/23 19:14:01
Semicolon isn't allowed on a line by itself. git c
| |
| 190 BEGIN_FWL_MESSAGE_DEF(CFWL_MsgActivate, FWL_MSGHASH_Activate) | 190 BEGIN_FWL_MESSAGE_DEF(CFWL_MsgActivate, FWL_MSGHASH_Activate) |
| 191 END_FWL_MESSAGE_DEF | 191 END_FWL_MESSAGE_DEF |
| 192 BEGIN_FWL_MESSAGE_DEF(CFWL_MsgDeactivate, FWL_MSGHASH_Deactivate) | 192 BEGIN_FWL_MESSAGE_DEF(CFWL_MsgDeactivate, FWL_MSGHASH_Deactivate) |
| 193 END_FWL_MESSAGE_DEF | 193 END_FWL_MESSAGE_DEF |
| 194 BEGIN_FWL_MESSAGE_DEF(CFWL_MsgMouse, FWL_MSGHASH_Mouse) | 194 BEGIN_FWL_MESSAGE_DEF(CFWL_MsgMouse, FWL_MSGHASH_Mouse) |
| 195 FX_FLOAT m_fx; | 195 FX_FLOAT m_fx; |
| 196 FX_FLOAT m_fy; | 196 FX_FLOAT m_fy; |
| 197 FX_DWORD m_dwFlags; | 197 FX_DWORD m_dwFlags; |
| 198 FX_DWORD m_dwCmd; | 198 FX_DWORD m_dwCmd; |
| 199 END_FWL_MESSAGE_DEF | 199 END_FWL_MESSAGE_DEF |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 254 class classname : public CFWL_Event { \ | 254 class classname : public CFWL_Event { \ |
| 255 public: \ | 255 public: \ |
| 256 classname() : CFWL_Event() {} \ | 256 classname() : CFWL_Event() {} \ |
| 257 virtual FWL_ERR GetClassName(CFX_WideString& wsClass) const { \ | 257 virtual FWL_ERR GetClassName(CFX_WideString& wsClass) const { \ |
| 258 wsClass = L## #classname; \ | 258 wsClass = L## #classname; \ |
| 259 return FWL_ERR_Succeeded; \ | 259 return FWL_ERR_Succeeded; \ |
| 260 } \ | 260 } \ |
| 261 virtual FX_DWORD GetClassID() const { return eventhashcode; } | 261 virtual FX_DWORD GetClassID() const { return eventhashcode; } |
| 262 #define END_FWL_EVENT_DEF \ | 262 #define END_FWL_EVENT_DEF \ |
| 263 } \ | 263 } \ |
| 264 ; | 264 ; // NOLINT |
| 265 BEGIN_FWL_EVENT_DEF(CFWL_EvtMouse, FWL_EVTHASH_Mouse) | 265 BEGIN_FWL_EVENT_DEF(CFWL_EvtMouse, FWL_EVTHASH_Mouse) |
| 266 FX_FLOAT m_fx; | 266 FX_FLOAT m_fx; |
| 267 FX_FLOAT m_fy; | 267 FX_FLOAT m_fy; |
| 268 FX_DWORD m_dwFlags; | 268 FX_DWORD m_dwFlags; |
| 269 FX_DWORD m_dwCmd; | 269 FX_DWORD m_dwCmd; |
| 270 END_FWL_EVENT_DEF | 270 END_FWL_EVENT_DEF |
| 271 BEGIN_FWL_EVENT_DEF(CFWL_EvtMouseWheel, FWL_EVTHASH_MouseWheel) | 271 BEGIN_FWL_EVENT_DEF(CFWL_EvtMouseWheel, FWL_EVTHASH_MouseWheel) |
| 272 FX_FLOAT m_fx; | 272 FX_FLOAT m_fx; |
| 273 FX_FLOAT m_fy; | 273 FX_FLOAT m_fy; |
| 274 FX_FLOAT m_fDeltaX; | 274 FX_FLOAT m_fDeltaX; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 371 FWL_ERR FWL_AddToolTipTarget(IFWL_ToolTipTarget* pTarget); | 371 FWL_ERR FWL_AddToolTipTarget(IFWL_ToolTipTarget* pTarget); |
| 372 FWL_ERR FWL_RemoveToolTipTarget(IFWL_ToolTipTarget* pTarget); | 372 FWL_ERR FWL_RemoveToolTipTarget(IFWL_ToolTipTarget* pTarget); |
| 373 FWL_ERR FWL_SetToolTipInitialDelay(int32_t iDelayTime); | 373 FWL_ERR FWL_SetToolTipInitialDelay(int32_t iDelayTime); |
| 374 FWL_ERR FWL_SetToolTipAutoPopDelay(int32_t iDelayTime); | 374 FWL_ERR FWL_SetToolTipAutoPopDelay(int32_t iDelayTime); |
| 375 typedef FX_BOOL (*FWLMessageHookCallback)(CFWL_Message* msg, void* info); | 375 typedef FX_BOOL (*FWLMessageHookCallback)(CFWL_Message* msg, void* info); |
| 376 FWL_ERR FWL_SetHook(IFWL_NoteDriver* driver, | 376 FWL_ERR FWL_SetHook(IFWL_NoteDriver* driver, |
| 377 FWLMessageHookCallback callback, | 377 FWLMessageHookCallback callback, |
| 378 void* info); | 378 void* info); |
| 379 | 379 |
| 380 #endif // XFA_INCLUDE_FWL_CORE_FWL_NOTE_H_ | 380 #endif // XFA_INCLUDE_FWL_CORE_FWL_NOTE_H_ |
| OLD | NEW |