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

Side by Side Diff: xfa/src/fwl/src/lightwidget/theme.cpp

Issue 1570743002: XFA: Remove many relative includes in xfa/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 4 years, 11 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 "../../../foxitlib.h" 7 #include "xfa/src/foxitlib.h"
8 FX_BOOL CFWL_Theme::IsValidWidget(IFWL_Widget* pWidget) { 8 FX_BOOL CFWL_Theme::IsValidWidget(IFWL_Widget* pWidget) {
9 return !!GetTheme(pWidget); 9 return !!GetTheme(pWidget);
10 } 10 }
11 FX_DWORD CFWL_Theme::GetThemeID(IFWL_Widget* pWidget) { 11 FX_DWORD CFWL_Theme::GetThemeID(IFWL_Widget* pWidget) {
12 return GetTheme(pWidget)->GetThemeID(pWidget); 12 return GetTheme(pWidget)->GetThemeID(pWidget);
13 } 13 }
14 FX_DWORD CFWL_Theme::SetThemeID(IFWL_Widget* pWidget, 14 FX_DWORD CFWL_Theme::SetThemeID(IFWL_Widget* pWidget,
15 FX_DWORD dwThemeID, 15 FX_DWORD dwThemeID,
16 FX_BOOL bChildren) { 16 FX_BOOL bChildren) {
17 int32_t iCount = m_arrThemes.GetSize(); 17 int32_t iCount = m_arrThemes.GetSize();
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 CFWL_WidgetTP* CFWL_Theme::GetTheme(IFWL_Widget* pWidget) { 131 CFWL_WidgetTP* CFWL_Theme::GetTheme(IFWL_Widget* pWidget) {
132 int32_t iCount = m_arrThemes.GetSize(); 132 int32_t iCount = m_arrThemes.GetSize();
133 for (int32_t i = 0; i < iCount; i++) { 133 for (int32_t i = 0; i < iCount; i++) {
134 CFWL_WidgetTP* pTheme = static_cast<CFWL_WidgetTP*>(m_arrThemes[i]); 134 CFWL_WidgetTP* pTheme = static_cast<CFWL_WidgetTP*>(m_arrThemes[i]);
135 if (pTheme->IsValidWidget(pWidget)) { 135 if (pTheme->IsValidWidget(pWidget)) {
136 return pTheme; 136 return pTheme;
137 } 137 }
138 } 138 }
139 return NULL; 139 return NULL;
140 } 140 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698