Title: [90457] trunk/Source/WebKit2
- Revision
- 90457
- Author
- [email protected]
- Date
- 2011-07-06 07:24:08 -0700 (Wed, 06 Jul 2011)
Log Message
Add WKPageCopyStandardUserAgentWithApplicationName
https://bugs.webkit.org/show_bug.cgi?id=63953
Reviewed by Adam Roben.
* UIProcess/API/C/WKPage.cpp:
(WKPageCopyStandardUserAgentWithApplicationName): Added.
* UIProcess/API/C/WKPagePrivate.h: Added WKPageCopyStandardUserAgentWithApplicationName().
* UIProcess/WebPageProxy.h: Make standardUserAgent() public.
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (90456 => 90457)
--- trunk/Source/WebKit2/ChangeLog 2011-07-06 13:45:35 UTC (rev 90456)
+++ trunk/Source/WebKit2/ChangeLog 2011-07-06 14:24:08 UTC (rev 90457)
@@ -1,3 +1,16 @@
+2011-07-05 Jeff Miller <[email protected]>
+
+ Add WKPageCopyStandardUserAgentWithApplicationName
+ https://bugs.webkit.org/show_bug.cgi?id=63953
+
+ Reviewed by Adam Roben.
+
+ * UIProcess/API/C/WKPage.cpp:
+ (WKPageCopyStandardUserAgentWithApplicationName): Added.
+ * UIProcess/API/C/WKPagePrivate.h: Added WKPageCopyStandardUserAgentWithApplicationName().
+
+ * UIProcess/WebPageProxy.h: Make standardUserAgent() public.
+
2011-07-05 Vsevolod Vlasov <[email protected]>
Web Inspector: Show content for plugin requests in network panel.
Modified: trunk/Source/WebKit2/UIProcess/API/C/WKPage.cpp (90456 => 90457)
--- trunk/Source/WebKit2/UIProcess/API/C/WKPage.cpp 2011-07-06 13:45:35 UTC (rev 90456)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKPage.cpp 2011-07-06 14:24:08 UTC (rev 90457)
@@ -502,6 +502,11 @@
return WebPageProxy::debugPaintFlags();
}
+WKStringRef WKPageCopyStandardUserAgentWithApplicationName(WKStringRef applicationName)
+{
+ return toCopiedAPI(WebPageProxy::standardUserAgent(toImpl(applicationName)->string()));
+}
+
void WKPageValidateCommand(WKPageRef pageRef, WKStringRef command, void* context, WKPageValidateCommandCallback callback)
{
toImpl(pageRef)->validateCommand(toImpl(command)->string(), ValidateCommandCallback::create(context, callback));
Modified: trunk/Source/WebKit2/UIProcess/API/C/WKPagePrivate.h (90456 => 90457)
--- trunk/Source/WebKit2/UIProcess/API/C/WKPagePrivate.h 2011-07-06 13:45:35 UTC (rev 90456)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKPagePrivate.h 2011-07-06 14:24:08 UTC (rev 90457)
@@ -50,6 +50,8 @@
WK_EXPORT void WKPageSetDebugPaintFlags(WKPageDebugPaintFlags flags);
WK_EXPORT WKPageDebugPaintFlags WKPageGetDebugPaintFlags(void);
+WK_EXPORT WKStringRef WKPageCopyStandardUserAgentWithApplicationName(WKStringRef);
+
struct WKPrintInfo {
float pageSetupScaleFactor;
float availablePaperWidth;
Modified: trunk/Source/WebKit2/UIProcess/WebPageProxy.h (90456 => 90457)
--- trunk/Source/WebKit2/UIProcess/WebPageProxy.h 2011-07-06 13:45:35 UTC (rev 90456)
+++ trunk/Source/WebKit2/UIProcess/WebPageProxy.h 2011-07-06 14:24:08 UTC (rev 90457)
@@ -346,6 +346,7 @@
const String& applicationNameForUserAgent() const { return m_applicationNameForUserAgent; }
void setCustomUserAgent(const String&);
const String& customUserAgent() const { return m_customUserAgent; }
+ static String standardUserAgent(const String& applicationName = String());
bool supportsTextEncoding() const;
void setCustomTextEncodingName(const String&);
@@ -743,8 +744,6 @@
void setComplexTextInputEnabled(uint64_t pluginComplexTextInputIdentifier, bool complexTextInputEnabled);
#endif
- static String standardUserAgent(const String& applicationName = String());
-
void clearPendingAPIRequestURL() { m_pendingAPIRequestURL = String(); }
void setPendingAPIRequestURL(const String& pendingAPIRequestURL) { m_pendingAPIRequestURL = pendingAPIRequestURL; }
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes