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

Side by Side Diff: xfa/fwl/theme/cfwl_monthcalendartp.h

Issue 2524173002: Merge IFWL and CFWL classes. (Closed)
Patch Set: make chrome build happy Created 4 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 #ifndef XFA_FWL_THEME_CFWL_MONTHCALENDARTP_H_ 7 #ifndef XFA_FWL_THEME_CFWL_MONTHCALENDARTP_H_
8 #define XFA_FWL_THEME_CFWL_MONTHCALENDARTP_H_ 8 #define XFA_FWL_THEME_CFWL_MONTHCALENDARTP_H_
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "xfa/fwl/theme/cfwl_widgettp.h" 12 #include "xfa/fwl/theme/cfwl_widgettp.h"
13 13
14 class CFWL_MonthCalendarTP : public CFWL_WidgetTP { 14 class CFWL_MonthCalendarTP : public CFWL_WidgetTP {
15 public: 15 public:
16 CFWL_MonthCalendarTP(); 16 CFWL_MonthCalendarTP();
17 ~CFWL_MonthCalendarTP() override; 17 ~CFWL_MonthCalendarTP() override;
18 18
19 // CFWL_WidgetTP 19 // CFWL_WidgetTP
20 void Initialize() override; 20 void Initialize() override;
21 void Finalize() override; 21 void Finalize() override;
22 bool IsValidWidget(IFWL_Widget* pWidget) override; 22 bool IsValidWidget(CFWL_Widget* pWidget) override;
23 void DrawBackground(CFWL_ThemeBackground* pParams) override; 23 void DrawBackground(CFWL_ThemeBackground* pParams) override;
24 void DrawText(CFWL_ThemeText* pParams) override; 24 void DrawText(CFWL_ThemeText* pParams) override;
25 void* GetCapacity(CFWL_ThemePart* pThemePart, 25 void* GetCapacity(CFWL_ThemePart* pThemePart,
26 CFWL_WidgetCapacity dwCapacity) override; 26 CFWL_WidgetCapacity dwCapacity) override;
27 27
28 protected: 28 protected:
29 struct MCThemeData { 29 struct MCThemeData {
30 FX_ARGB clrCaption; 30 FX_ARGB clrCaption;
31 FX_ARGB clrSeperator; 31 FX_ARGB clrSeperator;
32 FX_ARGB clrDatesHoverBK; 32 FX_ARGB clrDatesHoverBK;
(...skipping 15 matching lines...) Expand all
48 FWLTHEME_STATE GetState(uint32_t dwFWLStates); 48 FWLTHEME_STATE GetState(uint32_t dwFWLStates);
49 49
50 std::unique_ptr<MCThemeData> m_pThemeData; 50 std::unique_ptr<MCThemeData> m_pThemeData;
51 CFX_WideString wsResource; 51 CFX_WideString wsResource;
52 52
53 private: 53 private:
54 void SetThemeData(); 54 void SetThemeData();
55 }; 55 };
56 56
57 #endif // XFA_FWL_THEME_CFWL_MONTHCALENDARTP_H_ 57 #endif // XFA_FWL_THEME_CFWL_MONTHCALENDARTP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698