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

Unified Diff: xfa/fwl/core/cfwl_notedriver.cpp

Issue 2557103002: Cleanup FWL default values part 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa/fwl/core/cfwl_notedriver.h ('k') | xfa/fwl/core/cfwl_scrollbar.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fwl/core/cfwl_notedriver.cpp
diff --git a/xfa/fwl/core/cfwl_notedriver.cpp b/xfa/fwl/core/cfwl_notedriver.cpp
index 00a0b3e4b76cd6eae5d6bc46d1ed558270ba9fc6..8402b2b90c7f95e1963f89ad6db3553524f1c89d 100644
--- a/xfa/fwl/core/cfwl_notedriver.cpp
+++ b/xfa/fwl/core/cfwl_notedriver.cpp
@@ -84,19 +84,17 @@ CFWL_NoteLoop* CFWL_NoteDriver::PopNoteLoop() {
return p;
}
-bool CFWL_NoteDriver::SetFocus(CFWL_Widget* pFocus, bool bNotify) {
+bool CFWL_NoteDriver::SetFocus(CFWL_Widget* pFocus) {
if (m_pFocus == pFocus)
return true;
CFWL_Widget* pPrev = m_pFocus;
m_pFocus = pFocus;
if (pPrev) {
- CFWL_MsgKillFocus ms(pPrev, pPrev);
- if (bNotify)
- ms.m_dwExtend = 1;
-
- if (IFWL_WidgetDelegate* pDelegate = pPrev->GetDelegate())
+ if (IFWL_WidgetDelegate* pDelegate = pPrev->GetDelegate()) {
+ CFWL_MsgKillFocus ms(pPrev, pPrev);
pDelegate->OnProcessMessage(&ms);
+ }
}
if (pFocus) {
CFWL_Widget* pWidget =
@@ -105,11 +103,10 @@ bool CFWL_NoteDriver::SetFocus(CFWL_Widget* pFocus, bool bNotify) {
if (pForm)
pForm->SetSubFocus(pFocus);
- CFWL_MsgSetFocus ms(nullptr, pFocus);
- if (bNotify)
- ms.m_dwExtend = 1;
- if (IFWL_WidgetDelegate* pDelegate = pFocus->GetDelegate())
+ if (IFWL_WidgetDelegate* pDelegate = pFocus->GetDelegate()) {
+ CFWL_MsgSetFocus ms(nullptr, pFocus);
pDelegate->OnProcessMessage(&ms);
+ }
}
return true;
}
« no previous file with comments | « xfa/fwl/core/cfwl_notedriver.h ('k') | xfa/fwl/core/cfwl_scrollbar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698