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

Side by Side Diff: xfa/fwl/core/ifwl_form.cpp

Issue 2520063002: Split fwl/core class pt II. (Closed)
Patch Set: Rebase to master 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
« no previous file with comments | « xfa/fwl/core/ifwl_form.h ('k') | xfa/fwl/core/ifwl_formproxy.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "xfa/fwl/core/ifwl_form.h" 7 #include "xfa/fwl/core/ifwl_form.h"
8 8
9 #include <utility> 9 #include <utility>
10 10
11 #include "third_party/base/ptr_util.h" 11 #include "third_party/base/ptr_util.h"
12 #include "xfa/fde/tto/fde_textout.h" 12 #include "xfa/fde/tto/fde_textout.h"
13 #include "xfa/fwl/core/cfwl_evtclose.h" 13 #include "xfa/fwl/core/cfwl_evtclose.h"
14 #include "xfa/fwl/core/cfwl_msgmouse.h" 14 #include "xfa/fwl/core/cfwl_msgmouse.h"
15 #include "xfa/fwl/core/cfwl_notedriver.h"
16 #include "xfa/fwl/core/cfwl_noteloop.h"
15 #include "xfa/fwl/core/cfwl_sysbtn.h" 17 #include "xfa/fwl/core/cfwl_sysbtn.h"
16 #include "xfa/fwl/core/cfwl_themebackground.h" 18 #include "xfa/fwl/core/cfwl_themebackground.h"
17 #include "xfa/fwl/core/cfwl_themepart.h" 19 #include "xfa/fwl/core/cfwl_themepart.h"
18 #include "xfa/fwl/core/cfwl_themetext.h" 20 #include "xfa/fwl/core/cfwl_themetext.h"
19 #include "xfa/fwl/core/cfwl_widgetmgr.h" 21 #include "xfa/fwl/core/cfwl_widgetmgr.h"
20 #include "xfa/fwl/core/fwl_noteimp.h"
21 #include "xfa/fwl/core/ifwl_app.h" 22 #include "xfa/fwl/core/ifwl_app.h"
22 #include "xfa/fwl/core/ifwl_formproxy.h" 23 #include "xfa/fwl/core/ifwl_formproxy.h"
23 #include "xfa/fwl/core/ifwl_themeprovider.h" 24 #include "xfa/fwl/core/ifwl_themeprovider.h"
24 #include "xfa/fwl/theme/cfwl_widgettp.h" 25 #include "xfa/fwl/theme/cfwl_widgettp.h"
25 26
26 namespace { 27 namespace {
27 28
28 const int kSystemButtonSize = 21; 29 const int kSystemButtonSize = 21;
29 const int kSystemButtonMargin = 5; 30 const int kSystemButtonMargin = 5;
30 const int kSystemButtonSpan = 2; 31 const int kSystemButtonSpan = 2;
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 HitTest(pMsg->m_fx, pMsg->m_fy) == FWL_WidgetHit::Titlebar) { 630 HitTest(pMsg->m_fx, pMsg->m_fy) == FWL_WidgetHit::Titlebar) {
630 if (m_bMaximized) 631 if (m_bMaximized)
631 SetWidgetRect(m_rtRestore); 632 SetWidgetRect(m_rtRestore);
632 else 633 else
633 SetWorkAreaRect(); 634 SetWorkAreaRect();
634 635
635 Update(); 636 Update();
636 m_bMaximized = !m_bMaximized; 637 m_bMaximized = !m_bMaximized;
637 } 638 }
638 } 639 }
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_form.h ('k') | xfa/fwl/core/ifwl_formproxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698