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

Side by Side Diff: fpdfsdk/src/pdfwindow/PWL_ListBox.cpp

Issue 1277043002: XFA: clang-format all pdfium code, again. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 4 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
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 "../../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_ListBox.h" 9 #include "../../include/pdfwindow/PWL_ListBox.h"
10 #include "../../include/pdfwindow/PWL_Utils.h" 10 #include "../../include/pdfwindow/PWL_Utils.h"
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 if (IFX_Edit* pEdit = m_pList->GetItemEdit(i)) { 176 if (IFX_Edit* pEdit = m_pList->GetItemEdit(i)) {
177 CPDF_Rect rcContent = pEdit->GetContentRect(); 177 CPDF_Rect rcContent = pEdit->GetContentRect();
178 if (rcContent.Width() > rcClient.Width()) 178 if (rcContent.Width() > rcClient.Width())
179 rcItem.Intersect(rcList); 179 rcItem.Intersect(rcList);
180 else 180 else
181 rcItem.Intersect(rcClient); 181 rcItem.Intersect(rcClient);
182 } 182 }
183 183
184 if (m_pList->IsItemSelected(i)) { 184 if (m_pList->IsItemSelected(i)) {
185 // CPWL_Utils::DrawFillRect(pDevice, pUser2Device, rcItem, 185 // CPWL_Utils::DrawFillRect(pDevice, pUser2Device, rcItem,
186 //ArgbEncode(255,0,51,113)); 186 // ArgbEncode(255,0,51,113));
187 IFX_SystemHandler* pSysHandler = GetSystemHandler(); 187 IFX_SystemHandler* pSysHandler = GetSystemHandler();
188 if (pSysHandler && pSysHandler->IsSelectionImplemented()) { 188 if (pSysHandler && pSysHandler->IsSelectionImplemented()) {
189 IFX_Edit::DrawEdit( 189 IFX_Edit::DrawEdit(
190 pDevice, pUser2Device, m_pList->GetItemEdit(i), 190 pDevice, pUser2Device, m_pList->GetItemEdit(i),
191 CPWL_Utils::PWLColorToFXColor(GetTextColor()), 191 CPWL_Utils::PWLColorToFXColor(GetTextColor()),
192 CPWL_Utils::PWLColorToFXColor(GetTextStrokeColor()), rcList, 192 CPWL_Utils::PWLColorToFXColor(GetTextStrokeColor()), rcList,
193 ptOffset, NULL, pSysHandler, m_pFormFiller); 193 ptOffset, NULL, pSysHandler, m_pFormFiller);
194 pSysHandler->OutputSelectedRect(m_pFormFiller, rcItem); 194 pSysHandler->OutputSelectedRect(m_pFormFiller, rcItem);
195 } else { 195 } else {
196 CPWL_Utils::DrawFillRect(pDevice, pUser2Device, rcItem, 196 CPWL_Utils::DrawFillRect(pDevice, pUser2Device, rcItem,
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 if (zDelta < 0) { 533 if (zDelta < 0) {
534 m_pList->OnVK_DOWN(IsSHIFTpressed(nFlag), IsCTRLpressed(nFlag)); 534 m_pList->OnVK_DOWN(IsSHIFTpressed(nFlag), IsCTRLpressed(nFlag));
535 } else { 535 } else {
536 m_pList->OnVK_UP(IsSHIFTpressed(nFlag), IsCTRLpressed(nFlag)); 536 m_pList->OnVK_UP(IsSHIFTpressed(nFlag), IsCTRLpressed(nFlag));
537 } 537 }
538 538
539 FX_BOOL bExit = FALSE; 539 FX_BOOL bExit = FALSE;
540 OnNotifySelChanged(FALSE, bExit, nFlag); 540 OnNotifySelChanged(FALSE, bExit, nFlag);
541 return TRUE; 541 return TRUE;
542 } 542 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698