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

Side by Side Diff: fpdfsdk/src/fsdk_mgr.cpp

Issue 1773733002: Review and cleanup lint warnings. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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 | « fpdfsdk/src/fsdk_baseform.cpp ('k') | fpdfsdk/src/fxedit/fxet_list.cpp » ('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 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 "fpdfsdk/include/fsdk_mgr.h" 7 #include "fpdfsdk/include/fsdk_mgr.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 explicit CFX_SystemHandler(CPDFDoc_Environment* pEnv) 55 explicit CFX_SystemHandler(CPDFDoc_Environment* pEnv)
56 : m_pEnv(pEnv), m_nCharSet(-1) {} 56 : m_pEnv(pEnv), m_nCharSet(-1) {}
57 ~CFX_SystemHandler() override {} 57 ~CFX_SystemHandler() override {}
58 58
59 public: 59 public:
60 // IFX_SystemHandler 60 // IFX_SystemHandler
61 void InvalidateRect(FX_HWND hWnd, FX_RECT rect) override; 61 void InvalidateRect(FX_HWND hWnd, FX_RECT rect) override;
62 void OutputSelectedRect(void* pFormFiller, CFX_FloatRect& rect) override; 62 void OutputSelectedRect(void* pFormFiller, CFX_FloatRect& rect) override;
63 FX_BOOL IsSelectionImplemented() override; 63 FX_BOOL IsSelectionImplemented() override;
64 CFX_WideString GetClipboardText(FX_HWND hWnd) override { return L""; } 64 CFX_WideString GetClipboardText(FX_HWND hWnd) override { return L""; }
65 FX_BOOL SetClipboardText(FX_HWND hWnd, CFX_WideString string) override { 65 FX_BOOL SetClipboardText(FX_HWND hWnd, CFX_WideString str) override {
66 return FALSE; 66 return FALSE;
67 } 67 }
68 void ClientToScreen(FX_HWND hWnd, int32_t& x, int32_t& y) override {} 68 void ClientToScreen(FX_HWND hWnd, int32_t& x, int32_t& y) override {}
69 void ScreenToClient(FX_HWND hWnd, int32_t& x, int32_t& y) override {} 69 void ScreenToClient(FX_HWND hWnd, int32_t& x, int32_t& y) override {}
70 void SetCursor(int32_t nCursorType) override; 70 void SetCursor(int32_t nCursorType) override;
71 FX_HMENU CreatePopupMenu() override { return NULL; } 71 FX_HMENU CreatePopupMenu() override { return NULL; }
72 FX_BOOL AppendMenuItem(FX_HMENU hMenu, 72 FX_BOOL AppendMenuItem(FX_HMENU hMenu,
73 int32_t nIDNewItem, 73 int32_t nIDNewItem,
74 CFX_WideString string) override { 74 CFX_WideString str) override {
75 return FALSE; 75 return FALSE;
76 } 76 }
77 FX_BOOL EnableMenuItem(FX_HMENU hMenu, 77 FX_BOOL EnableMenuItem(FX_HMENU hMenu,
78 int32_t nIDItem, 78 int32_t nIDItem,
79 FX_BOOL bEnabled) override { 79 FX_BOOL bEnabled) override {
80 return FALSE; 80 return FALSE;
81 } 81 }
82 int32_t TrackPopupMenu(FX_HMENU hMenu, 82 int32_t TrackPopupMenu(FX_HMENU hMenu,
83 int32_t x, 83 int32_t x,
84 int32_t y, 84 int32_t y,
(...skipping 1105 matching lines...) Expand 10 before | Expand all | Expand 10 after
1190 CPDFSDK_Annot* pFocusAnnot = m_pSDKDoc->GetFocusAnnot(); 1190 CPDFSDK_Annot* pFocusAnnot = m_pSDKDoc->GetFocusAnnot();
1191 if (!pFocusAnnot) 1191 if (!pFocusAnnot)
1192 return nullptr; 1192 return nullptr;
1193 1193
1194 for (CPDFSDK_Annot* pAnnot : m_fxAnnotArray) { 1194 for (CPDFSDK_Annot* pAnnot : m_fxAnnotArray) {
1195 if (pAnnot == pFocusAnnot) 1195 if (pAnnot == pFocusAnnot)
1196 return pAnnot; 1196 return pAnnot;
1197 } 1197 }
1198 return nullptr; 1198 return nullptr;
1199 } 1199 }
OLDNEW
« no previous file with comments | « fpdfsdk/src/fsdk_baseform.cpp ('k') | fpdfsdk/src/fxedit/fxet_list.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698