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

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

Issue 1519693002: Merge to XFA: Remove CFX_AffineMatrix/CPDF_Matrix (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: XFA-specific changes Created 5 years 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 "fpdfsdk/include/pdfwindow/PDFWindow.h" 7 #include "fpdfsdk/include/pdfwindow/PDFWindow.h"
8 #include "fpdfsdk/include/pdfwindow/PWL_IconList.h" 8 #include "fpdfsdk/include/pdfwindow/PWL_IconList.h"
9 #include "fpdfsdk/include/pdfwindow/PWL_Label.h" 9 #include "fpdfsdk/include/pdfwindow/PWL_Label.h"
10 #include "fpdfsdk/include/pdfwindow/PWL_ListCtrl.h" 10 #include "fpdfsdk/include/pdfwindow/PWL_ListCtrl.h"
(...skipping 15 matching lines...) Expand all
26 26
27 CFX_ByteString CPWL_IconList_Item::GetClassName() const { 27 CFX_ByteString CPWL_IconList_Item::GetClassName() const {
28 return "CPWL_IconList_Item"; 28 return "CPWL_IconList_Item";
29 } 29 }
30 30
31 FX_FLOAT CPWL_IconList_Item::GetItemHeight(FX_FLOAT fLimitWidth) { 31 FX_FLOAT CPWL_IconList_Item::GetItemHeight(FX_FLOAT fLimitWidth) {
32 return PWL_IconList_ITEM_HEIGHT; 32 return PWL_IconList_ITEM_HEIGHT;
33 } 33 }
34 34
35 void CPWL_IconList_Item::DrawThisAppearance(CFX_RenderDevice* pDevice, 35 void CPWL_IconList_Item::DrawThisAppearance(CFX_RenderDevice* pDevice,
36 CPDF_Matrix* pUser2Device) { 36 CFX_Matrix* pUser2Device) {
37 CPDF_Rect rcClient = GetClientRect(); 37 CPDF_Rect rcClient = GetClientRect();
38 38
39 if (m_bSelected) { 39 if (m_bSelected) {
40 if (IsEnabled()) { 40 if (IsEnabled()) {
41 CPWL_Utils::DrawFillRect( 41 CPWL_Utils::DrawFillRect(
42 pDevice, pUser2Device, rcClient, 42 pDevice, pUser2Device, rcClient,
43 CPWL_Utils::PWLColorToFXColor(PWL_DEFAULT_SELBACKCOLOR, 43 CPWL_Utils::PWLColorToFXColor(PWL_DEFAULT_SELBACKCOLOR,
44 GetTransparency())); 44 GetTransparency()));
45 } else { 45 } else {
46 CPWL_Utils::DrawFillRect( 46 CPWL_Utils::DrawFillRect(
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 if (CPWL_ScrollBar* pScrollBar = GetVScrollBar()) 496 if (CPWL_ScrollBar* pScrollBar = GetVScrollBar())
497 pScrollBar->OnNotify(this, PNM_SETSCROLLPOS, SBT_VSCROLL, 497 pScrollBar->OnNotify(this, PNM_SETSCROLLPOS, SBT_VSCROLL,
498 (intptr_t)&ptNew.y); 498 (intptr_t)&ptNew.y);
499 499
500 return TRUE; 500 return TRUE;
501 } 501 }
502 } 502 }
503 503
504 return FALSE; 504 return FALSE;
505 } 505 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698