Changeset 85206 in webkit
- Timestamp:
- Apr 28, 2011 10:40:10 AM (13 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r85204 r85206 1 2011-04-28 Yael Aharon <yael.aharon@nokia.com> 2 3 Reviewed by Andreas Kling. 4 5 Remove flag ENABLE_SYMBIAN_DIALOG_PROVIDER 6 https://bugs.webkit.org/show_bug.cgi?id=59704 7 8 No new tests, just code cleanup. 9 10 * WebCore.pri: 11 1 12 2011-04-28 Pavel Podivilov <podivilov@chromium.org> 2 13 -
trunk/Source/WebCore/WebCore.pri
r84364 r85206 277 277 } 278 278 279 contains(DEFINES, ENABLE_SYMBIAN_DIALOG_PROVIDERS) {280 # this feature requires the S60 platform private BrowserDialogsProvider.h header file281 # and is therefore not enabled by default but only meant for platform builds.282 symbian {283 LIBS += -lbrowserdialogsprovider284 }285 }286 287 279 !CONFIG(webkit-debug):CONFIG(QTDIR_build) { 288 280 # Remove the following 2 lines if you want debug information in WebCore -
trunk/Source/WebKit/qt/ChangeLog
r85062 r85206 1 2011-04-28 Yael Aharon <yael.aharon@nokia.com> 2 3 Reviewed by Andreas Kling. 4 5 Remove flag ENABLE_SYMBIAN_DIALOG_PROVIDER 6 https://bugs.webkit.org/show_bug.cgi?id=59704 7 8 * WebCoreSupport/QtFallbackWebPopup.cpp: 9 (WebCore::QtFallbackWebPopup::show): 10 * WebCoreSupport/QtFallbackWebPopup.h: 11 1 12 2011-04-27 Yi Shen <yi.4.shen@nokia.com> 2 13 -
trunk/Source/WebKit/qt/WebCoreSupport/QtFallbackWebPopup.cpp
r82075 r85206 36 36 #include <QStandardItemModel> 37 37 38 #if ENABLE(SYMBIAN_DIALOG_PROVIDERS)39 #include <BrCtlDialogsProvider.h>40 #include <BrowserDialogsProvider.h> // S60 platform private header file41 #include <e32base.h>42 #endif43 44 38 namespace WebCore { 45 39 … … 114 108 return; 115 109 116 #if ENABLE(SYMBIAN_DIALOG_PROVIDERS)117 TRAP_IGNORE(showS60BrowserDialog());118 #else119 120 110 destroyPopup(); 121 111 m_combo = new QtFallbackWebPopupCombo(*this); … … 151 141 Qt::LeftButton, Qt::NoModifier); 152 142 QCoreApplication::sendEvent(m_combo, &event); 153 #endif 154 } 155 156 #if ENABLE(SYMBIAN_DIALOG_PROVIDERS) 157 158 static void ResetAndDestroy(TAny* aPtr) 159 { 160 RPointerArray<HBufC>* items = reinterpret_cast<RPointerArray<HBufC>* >(aPtr); 161 items->ResetAndDestroy(); 162 } 163 164 void QtFallbackWebPopup::showS60BrowserDialog() 165 { 166 static MBrCtlDialogsProvider* dialogs = CBrowserDialogsProvider::NewL(0); 167 if (!dialogs) 168 return; 169 170 int size = itemCount(); 171 CArrayFix<TBrCtlSelectOptionData>* options = new CArrayFixFlat<TBrCtlSelectOptionData>(qMax(1, size)); 172 RPointerArray<HBufC> items(qMax(1, size)); 173 CleanupStack::PushL(TCleanupItem(&ResetAndDestroy, &items)); 174 175 for (int i = 0; i < size; i++) { 176 if (itemType(i) == Separator) { 177 TBrCtlSelectOptionData data(_L("----------"), false, false, false); 178 options->AppendL(data); 179 } else { 180 HBufC16* itemStr = HBufC16::NewL(itemText(i).length()); 181 itemStr->Des().Copy((const TUint16*)itemText(i).utf16(), itemText(i).length()); 182 CleanupStack::PushL(itemStr); 183 TBrCtlSelectOptionData data(*itemStr, i == currentIndex(), false, itemIsEnabled(i)); 184 options->AppendL(data); 185 items.AppendL(itemStr); 186 CleanupStack::Pop(); 187 } 188 } 189 190 dialogs->DialogSelectOptionL(KNullDesC(), (TBrCtlSelectOptionType)(ESelectTypeSingle | ESelectTypeWithFindPane), *options); 191 192 CleanupStack::PopAndDestroy(&items); 193 194 int newIndex; 195 for (newIndex = 0; newIndex < options->Count() && !options->At(newIndex).IsSelected(); newIndex++) {} 196 if (newIndex == options->Count()) 197 newIndex = currentIndex(); 198 199 m_popupVisible = false; 200 popupDidHide(); 201 202 if (currentIndex() != newIndex && newIndex >= 0) 203 valueChanged(newIndex); 204 205 delete options; 206 } 207 #endif 143 } 208 144 209 145 void QtFallbackWebPopup::hide() -
trunk/Source/WebKit/qt/WebCoreSupport/QtFallbackWebPopup.h
r64829 r85206 70 70 71 71 void populate(const QWebSelectData&); 72 #if ENABLE(SYMBIAN_DIALOG_PROVIDERS)73 void showS60BrowserDialog();74 #endif75 72 }; 76 73
Note: See TracChangeset
for help on using the changeset viewer.