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

Unified Diff: xfa/src/fwl/src/lightwidget/theme.cpp

Issue 1172793002: Merge to XFA: Use stdint.h types throughout PDFium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa/src/fwl/src/lightwidget/picturebox.cpp ('k') | xfa/src/fwl/src/lightwidget/tooltipctrl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/src/fwl/src/lightwidget/theme.cpp
diff --git a/xfa/src/fwl/src/lightwidget/theme.cpp b/xfa/src/fwl/src/lightwidget/theme.cpp
index a631b37f88235fe0a0ecddcb4a8f1aa935870956..84925f562e49a0c6366dec8bb2782053d3016c66 100644
--- a/xfa/src/fwl/src/lightwidget/theme.cpp
+++ b/xfa/src/fwl/src/lightwidget/theme.cpp
@@ -18,9 +18,9 @@ FX_DWORD CFWL_Theme::GetThemeID(IFWL_Widget *pWidget)
}
FX_DWORD CFWL_Theme::SetThemeID(IFWL_Widget *pWidget, FX_DWORD dwThemeID, FX_BOOL bChildren )
{
- FX_INT32 iCount = m_arrThemes.GetSize();
+ int32_t iCount = m_arrThemes.GetSize();
FX_DWORD dwID;
- for (FX_INT32 i = 0; i < iCount; i ++) {
+ for (int32_t i = 0; i < iCount; i ++) {
CFWL_WidgetTP *pTheme = (CFWL_WidgetTP*)m_arrThemes[i];
dwID = pTheme->GetThemeID(pWidget);
pTheme->SetThemeID(pWidget, dwThemeID, FALSE);
@@ -79,8 +79,8 @@ FX_BOOL CFWL_Theme::CalcTextRect(CFWL_ThemeText *pParams, CFX_RectF &rect)
}
FWL_ERR CFWL_Theme::Initialize()
{
- FX_INT32 iCount = m_arrThemes.GetSize();
- for (FX_INT32 i = 0; i < iCount; i ++) {
+ int32_t iCount = m_arrThemes.GetSize();
+ for (int32_t i = 0; i < iCount; i ++) {
CFWL_WidgetTP *pTheme = (CFWL_WidgetTP*)m_arrThemes[i];
pTheme->Initialize();
}
@@ -89,8 +89,8 @@ FWL_ERR CFWL_Theme::Initialize()
}
FWL_ERR CFWL_Theme::Finalize()
{
- FX_INT32 iCount = m_arrThemes.GetSize();
- for (FX_INT32 i = 0; i < iCount; i ++) {
+ int32_t iCount = m_arrThemes.GetSize();
+ for (int32_t i = 0; i < iCount; i ++) {
CFWL_WidgetTP *pTheme = (CFWL_WidgetTP*)m_arrThemes[i];
pTheme->Finalize();
}
@@ -126,8 +126,8 @@ CFWL_Theme::CFWL_Theme()
}
CFWL_Theme::~CFWL_Theme()
{
- FX_INT32 iCount = m_arrThemes.GetSize();
- for (FX_INT32 i = 0; i < iCount; i ++) {
+ int32_t iCount = m_arrThemes.GetSize();
+ for (int32_t i = 0; i < iCount; i ++) {
CFWL_WidgetTP *pTheme = (CFWL_WidgetTP*)m_arrThemes[i];
delete pTheme;
}
@@ -135,8 +135,8 @@ CFWL_Theme::~CFWL_Theme()
}
FWL_ERR CFWL_Theme::SetFont(IFWL_Widget *pWidget, FX_LPCWSTR strFont, FX_FLOAT fFontSize, FX_ARGB rgbFont)
{
- FX_INT32 iCount = m_arrThemes.GetSize();
- for (FX_INT32 i = 0; i < iCount; i ++) {
+ int32_t iCount = m_arrThemes.GetSize();
+ for (int32_t i = 0; i < iCount; i ++) {
CFWL_WidgetTP *pTheme = (CFWL_WidgetTP*)m_arrThemes[i];
pTheme->SetFont(pWidget, strFont, fFontSize, rgbFont);
}
@@ -144,8 +144,8 @@ FWL_ERR CFWL_Theme::SetFont(IFWL_Widget *pWidget, FX_LPCWSTR strFont, FX_FLOAT f
}
CFWL_WidgetTP* CFWL_Theme::GetTheme(IFWL_Widget* pWidget)
{
- FX_INT32 iCount = m_arrThemes.GetSize();
- for (FX_INT32 i = 0; i < iCount; i ++) {
+ int32_t iCount = m_arrThemes.GetSize();
+ for (int32_t i = 0; i < iCount; i ++) {
CFWL_WidgetTP *pTheme = (CFWL_WidgetTP*)m_arrThemes[i];
if (pTheme->IsValidWidget(pWidget)) {
return pTheme;
« no previous file with comments | « xfa/src/fwl/src/lightwidget/picturebox.cpp ('k') | xfa/src/fwl/src/lightwidget/tooltipctrl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698