Changeset 140713 in webkit
- Timestamp:
- Jan 24, 2013 1:02:11 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r140712 r140713 1 2013-01-24 Dean Jackson <dino@apple.com> 2 3 Allow some plugin snapshot UI content to come from Injected Bundle 4 https://bugs.webkit.org/show_bug.cgi?id=107852 5 6 Reviewed by Anders Carlsson. 7 8 Hook up three new methods: plugInStartLabelTitle, plugInStartLabelSubtitle and 9 plugInExtraStyleSheet to allow some custom styling and content to come 10 from the InjectedBundle. 11 12 * WebProcess/InjectedBundle/API/c/WKBundlePage.h: Callbacks added to 13 WKBundlePageUIClient structure. 14 * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp: Stub implementations 15 of the three new methods. 16 (WebKit::InjectedBundlePageUIClient::plugInStartLabelTitle): 17 (WebKit::InjectedBundlePageUIClient::plugInStartLabelSubtitle): 18 (WebKit::InjectedBundlePageUIClient::plugInExtraStyleSheet): 19 * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h: 20 (InjectedBundlePageUIClient): 21 * WebProcess/WebCoreSupport/WebChromeClient.cpp: Call into the injected bundle 22 for each of these methods. 23 (WebKit::WebChromeClient::plugInStartLabelTitle): 24 (WebKit::WebChromeClient::plugInStartLabelSubtitle): 25 (WebKit::WebChromeClient::plugInExtraStyleSheet): 26 * WebProcess/WebCoreSupport/WebChromeClient.h: 27 (WebChromeClient): Declare the virtual methods in the Chrome 28 Client so that they can accessed from WebCore eventually. 29 1 30 2013-01-24 Anders Carlsson <andersca@apple.com> 2 31 -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePage.h
r138434 r140713 250 250 typedef uint64_t (*WKBundlePageExceededDatabaseQuotaCallback)(WKBundlePageRef page, WKSecurityOriginRef origin, WKStringRef databaseName, WKStringRef databaseDisplayName, uint64_t currentQuotaBytes, uint64_t currentOriginUsageBytes, uint64_t currentDatabaseUsageBytes, uint64_t expectedUsageBytes, const void *clientInfo); 251 251 typedef WKImageRef (*WKBundlePagePlugInStartLabelImageCallback)(WKBundlePageLabelSize size, const void *clientInfo); 252 typedef WKStringRef (*WKBundlePagePlugInStartLabelTitleCallback)(const void *clientInfo); 253 typedef WKStringRef (*WKBundlePagePlugInStartLabelSubtitleCallback)(const void *clientInfo); 254 typedef WKStringRef (*WKBundlePagePlugInExtraStyleSheetCallback)(const void *clientInfo); 252 255 253 256 struct WKBundlePageUIClient { … … 275 278 WKBundlePageExceededDatabaseQuotaCallback didExceedDatabaseQuota; 276 279 WKBundlePagePlugInStartLabelImageCallback plugInStartLabelImage; 280 WKBundlePagePlugInStartLabelTitleCallback plugInStartLabelTitle; 281 WKBundlePagePlugInStartLabelSubtitleCallback plugInStartLabelSubtitle; 282 WKBundlePagePlugInExtraStyleSheetCallback plugInExtraStyleSheet; 277 283 }; 278 284 typedef struct WKBundlePageUIClient WKBundlePageUIClient; -
trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp
r137067 r140713 184 184 } 185 185 186 String InjectedBundlePageUIClient::plugInStartLabelTitle() const 187 { 188 return String(); 189 } 190 191 String InjectedBundlePageUIClient::plugInStartLabelSubtitle() const 192 { 193 return String(); 194 } 195 196 String InjectedBundlePageUIClient::plugInExtraStyleSheet() const 197 { 198 return String(); 199 } 200 186 201 } // namespace WebKit -
trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePageUIClient.h
r137067 r140713 73 73 74 74 PassRefPtr<WebImage> plugInStartLabelImage(WebCore::RenderSnapshottedPlugIn::LabelSize) const; 75 String plugInStartLabelTitle() const; 76 String plugInStartLabelSubtitle() const; 77 String plugInExtraStyleSheet() const; 78 75 79 }; 76 80 -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.cpp
r139078 r140713 806 806 } 807 807 808 String WebChromeClient::plugInStartLabelTitle() const 809 { 810 return m_page->injectedBundleUIClient().plugInStartLabelTitle(); 811 } 812 813 String WebChromeClient::plugInStartLabelSubtitle() const 814 { 815 return m_page->injectedBundleUIClient().plugInStartLabelSubtitle(); 816 } 817 818 String WebChromeClient::plugInExtraStyleSheet() const 819 { 820 return m_page->injectedBundleUIClient().plugInExtraStyleSheet(); 821 } 822 808 823 } // namespace WebKit -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.h
r139078 r140713 220 220 221 221 virtual PassRefPtr<WebCore::Image> plugInStartLabelImage(WebCore::RenderSnapshottedPlugIn::LabelSize) const OVERRIDE; 222 virtual String plugInStartLabelTitle() const; 223 virtual String plugInStartLabelSubtitle() const; 224 virtual String plugInExtraStyleSheet() const; 222 225 223 226 String m_cachedToolTip; -
trunk/Tools/ChangeLog
r140703 r140713 1 2013-01-24 Dean Jackson <dino@apple.com> 2 3 Allow some plugin snapshot UI content to come from Injected Bundle 4 https://bugs.webkit.org/show_bug.cgi?id=107852 5 6 Reviewed by Anders Carlsson. 7 8 Null implementations of plugInStartLabelTitle, plugInStartLabelSubtitle and 9 plugInExtraStyleSheet. 10 11 * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp: 12 (WTR::InjectedBundlePage::InjectedBundlePage): 13 1 14 2013-01-24 Erik Arvidsson <arv@chromium.org> 2 15 -
trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp
r140268 r140713 378 378 didExceedDatabaseQuota, 379 379 0, /*plugInStartLabelImage*/ 380 0, /*plugInStartLabelTitle*/ 381 0, /*plugInStartLabelSubtitle*/ 382 0, /*plugInExtraStyleSheet*/ 380 383 }; 381 384 WKBundlePageSetUIClient(m_page, &uiClient);
Note: See TracChangeset
for help on using the changeset viewer.