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

Side by Side Diff: fpdfsdk/src/pdfwindow/PWL_ListBox.cpp

Issue 1171733003: Remove typdefs for pointer types in fx_system.h (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Manual fixes. 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 unified diff | Download patch
« no previous file with comments | « fpdfsdk/src/pdfwindow/PWL_Label.cpp ('k') | fpdfsdk/src/pdfwindow/PWL_Note.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 "../../include/pdfwindow/PDFWindow.h" 7 #include "../../include/pdfwindow/PDFWindow.h"
8 #include "../../include/pdfwindow/PWL_Wnd.h" 8 #include "../../include/pdfwindow/PWL_Wnd.h"
9 #include "../../include/pdfwindow/PWL_ListBox.h" 9 #include "../../include/pdfwindow/PWL_ListBox.h"
10 #include "../../include/pdfwindow/PWL_Utils.h" 10 #include "../../include/pdfwindow/PWL_Utils.h"
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 if (m_pList && m_pList->IsMultipleSel()) 455 if (m_pList && m_pList->IsMultipleSel())
456 { 456 {
457 CPDF_Rect rcCaret = m_pList->GetItemRect(m_pList->GetCaret()); 457 CPDF_Rect rcCaret = m_pList->GetItemRect(m_pList->GetCaret());
458 rcCaret.Intersect(GetClientRect()); 458 rcCaret.Intersect(GetClientRect());
459 return rcCaret; 459 return rcCaret;
460 } 460 }
461 461
462 return CPWL_Wnd::GetFocusRect(); 462 return CPWL_Wnd::GetFocusRect();
463 } 463 }
464 464
465 void CPWL_ListBox::AddString(FX_LPCWSTR string) 465 void CPWL_ListBox::AddString(const FX_WCHAR* string)
466 { 466 {
467 if (m_pList) 467 if (m_pList)
468 { 468 {
469 m_pList->AddString(string); 469 m_pList->AddString(string);
470 } 470 }
471 } 471 }
472 472
473 void CPWL_ListBox::SetText(FX_LPCWSTR csText,FX_BOOL bRefresh) 473 void CPWL_ListBox::SetText(const FX_WCHAR* csText,FX_BOOL bRefresh)
474 { 474 {
475 //return CPDF_List::SetText(csText,bRefresh); 475 //return CPDF_List::SetText(csText,bRefresh);
476 } 476 }
477 477
478 CFX_WideString CPWL_ListBox::GetText() const 478 CFX_WideString CPWL_ListBox::GetText() const
479 { 479 {
480 if (m_pList) 480 if (m_pList)
481 return m_pList->GetText(); 481 return m_pList->GetText();
482 482
483 return L""; 483 return L"";
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 else 623 else
624 { 624 {
625 m_pList->OnVK_UP(IsSHIFTpressed(nFlag),IsCTRLpressed(nFlag)); 625 m_pList->OnVK_UP(IsSHIFTpressed(nFlag),IsCTRLpressed(nFlag));
626 } 626 }
627 627
628 FX_BOOL bExit = FALSE; 628 FX_BOOL bExit = FALSE;
629 OnNotifySelChanged(FALSE,bExit, nFlag); 629 OnNotifySelChanged(FALSE,bExit, nFlag);
630 return TRUE; 630 return TRUE;
631 } 631 }
632 632
OLDNEW
« no previous file with comments | « fpdfsdk/src/pdfwindow/PWL_Label.cpp ('k') | fpdfsdk/src/pdfwindow/PWL_Note.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698