Changeset 133667 in webkit
- Timestamp:
- Nov 6, 2012 2:00:23 PM (11 years ago)
- Location:
- trunk/Source/WebKit/blackberry
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/blackberry/Api/WebPageClient.h
r133629 r133667 263 263 virtual void closePopupWebView() = 0; 264 264 265 virtual void addSearchProvider(const Platform::String&) = 0; 266 virtual int isSearchProviderInstalled(const Platform::String&) = 0; 267 265 268 // Match with ChromeClient::CustomHandlersState. 266 269 enum ProtocolHandlersState { -
trunk/Source/WebKit/blackberry/ChangeLog
r133634 r133667 1 2012-11-06 Otto Derek Cheung <otcheung@rim.com> 2 3 [BlackBerry] Pushing window.external.* events to webplatform 4 https://bugs.webkit.org/show_bug.cgi?id=101386 5 6 Reviewed by Rob Buis. 7 8 Adding calls to trigger window.external events so we can handle them on the 9 browser side. 10 11 PR 170059 12 13 * Api/WebPageClient.h: 14 * WebCoreSupport/ChromeClientBlackBerry.cpp: 15 (WebCore::ChromeClientBlackBerry::addSearchProvider): 16 (WebCore::ChromeClientBlackBerry::isSearchProviderInstalled): 17 1 18 2012-11-06 Otto Derek Cheung <otcheung@rim.com> 2 19 -
trunk/Source/WebKit/blackberry/WebCoreSupport/ChromeClientBlackBerry.cpp
r133094 r133667 839 839 void ChromeClientBlackBerry::addSearchProvider(const BlackBerry::Platform::String& originURL, const BlackBerry::Platform::String& newURL) 840 840 { 841 notImplemented(); 841 // See if the input URL host matches of the origin host. 842 KURL originHost = KURL(KURL(), originURL); 843 KURL url = KURL(KURL(), newURL); 844 if (url.isValid() && originHost.host() == url.host()) 845 m_webPagePrivate->client()->addSearchProvider(newURL); 842 846 } 843 847 … … 848 852 // 1 - One or more installed search engines match url, but none are the user's default search engine. 849 853 // 2 - The user's default search engine matches url. 854 855 // See if the input URL host matches of the origin host. 856 KURL originHost = KURL(KURL(), originURL); 857 KURL url = KURL(KURL(), newURL); 858 if (url.isValid() && originHost.host() == url.host()) 859 return m_webPagePrivate->client()->isSearchProviderInstalled(newURL); 850 860 return 0; 851 861 }
Note: See TracChangeset
for help on using the changeset viewer.