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

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

Issue 2469813004: Rename CPDFXFA_Document to CPDFXFA_Context (Closed)
Patch Set: Merge to master Created 4 years, 1 month 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 | « fpdfsdk/javascript/app.cpp ('k') | xfa/fxfa/app/xfa_ffapp.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_checkbox.h" 7 #include "xfa/fwl/core/ifwl_checkbox.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
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_message.h" 13 #include "xfa/fwl/core/cfwl_message.h"
14 #include "xfa/fwl/core/cfwl_themebackground.h" 14 #include "xfa/fwl/core/cfwl_themebackground.h"
15 #include "xfa/fwl/core/cfwl_themetext.h" 15 #include "xfa/fwl/core/cfwl_themetext.h"
16 #include "xfa/fwl/core/cfwl_widgetmgr.h" 16 #include "xfa/fwl/core/cfwl_widgetmgr.h"
17 #include "xfa/fwl/core/fwl_noteimp.h"
17 #include "xfa/fwl/core/ifwl_app.h" 18 #include "xfa/fwl/core/ifwl_app.h"
18 #include "xfa/fwl/core/fwl_noteimp.h"
19 #include "xfa/fwl/core/ifwl_checkbox.h" 19 #include "xfa/fwl/core/ifwl_checkbox.h"
20 #include "xfa/fwl/core/ifwl_themeprovider.h" 20 #include "xfa/fwl/core/ifwl_themeprovider.h"
21 21
22 namespace { 22 namespace {
23 23
24 const int kCaptionMargin = 5; 24 const int kCaptionMargin = 5;
25 25
26 } // namespace 26 } // namespace
27 27
28 IFWL_CheckBox::IFWL_CheckBox(const IFWL_App* app, 28 IFWL_CheckBox::IFWL_CheckBox(const IFWL_App* app,
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 void CFWL_CheckBoxImpDelegate::OnKeyDown(CFWL_MsgKey* pMsg) { 544 void CFWL_CheckBoxImpDelegate::OnKeyDown(CFWL_MsgKey* pMsg) {
545 if (pMsg->m_dwKeyCode == FWL_VKEY_Tab) { 545 if (pMsg->m_dwKeyCode == FWL_VKEY_Tab) {
546 m_pOwner->DispatchKeyEvent(pMsg); 546 m_pOwner->DispatchKeyEvent(pMsg);
547 return; 547 return;
548 } 548 }
549 if (pMsg->m_dwKeyCode == FWL_VKEY_Return || 549 if (pMsg->m_dwKeyCode == FWL_VKEY_Return ||
550 pMsg->m_dwKeyCode == FWL_VKEY_Space) { 550 pMsg->m_dwKeyCode == FWL_VKEY_Space) {
551 m_pOwner->NextStates(); 551 m_pOwner->NextStates();
552 } 552 }
553 } 553 }
OLDNEW
« no previous file with comments | « fpdfsdk/javascript/app.cpp ('k') | xfa/fxfa/app/xfa_ffapp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698