You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ms...@apache.org on 2011/08/04 20:13:31 UTC
svn commit: r1153956 - in /myfaces/trinidad/trunk/trinidad-impl/src/main:
java/org/apache/myfaces/trinidadinternal/agent/ resources/META-INF/agent/
Author: mstarets
Date: Thu Aug 4 18:13:30 2011
New Revision: 1153956
URL: http://svn.apache.org/viewvc?rev=1153956&view=rev
Log:
TRINIDAD-2107 - TrinidadAgent Needs to Expose Browser Management History Capability
Added:
myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/agent/gecko4.xml (with props)
myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/agent/webkit533.xml (with props)
Modified:
myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/agent/TrinidadAgent.java
myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/agent/capabilities.xml
Modified: myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/agent/TrinidadAgent.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/agent/TrinidadAgent.java?rev=1153956&r1=1153955&r2=1153956&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/agent/TrinidadAgent.java (original)
+++ myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/agent/TrinidadAgent.java Thu Aug 4 18:13:30 2011
@@ -75,6 +75,13 @@ public abstract class TrinidadAgent impl
*/
static public final CapabilityKey CAP_TOUCH_SCREEN =
CapabilityKey.getCapabilityKey("touchScreen", true);
+
+ /**
+ * Session History Management (HTML5 History) Capability indicating support for
+ * APIs like history.pushState, history.replaceState, etc.
+ */
+ static public final CapabilityKey CAP_HISTORY_MANAGEMENT =
+ CapabilityKey.getCapabilityKey("historyManagement", true);
//
// XHTML Modularization
@@ -263,6 +270,14 @@ public abstract class TrinidadAgent impl
*/
static public final Object TOUCH_SCREEN_MULTIPLE =
CapabilityValue.getCapabilityValue (CAP_TOUCH_SCREEN, "multiple");
+
+ // Values for CAP_HISTORY_MANAGEMENT
+ /**
+ * Agent fully supports Session History Management (HTML5 History) APIs
+ */
+ static public final Object HISTORY_MANAGEMENT_FULL =
+ CapabilityValue.getCapabilityValue (CAP_HISTORY_MANAGEMENT, "full");
+
/**
* Application constant for Desktop devices
Modified: myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/agent/capabilities.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/agent/capabilities.xml?rev=1153956&r1=1153955&r2=1153956&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/agent/capabilities.xml (original)
+++ myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/agent/capabilities.xml Thu Aug 4 18:13:30 2011
@@ -68,6 +68,11 @@
<include refid="html" />
<include src="gecko.xml" />
</capabilities>
+
+ <capabilities id="gecko4" agents="gecko/4+">
+ <include refid="gecko" />
+ <include src="gecko4.xml" />
+ </capabilities>
<capabilities id="email" agents="email">
@@ -90,20 +95,20 @@
<include src="email.xml" />
</capabilities>
- <capabilities id="ios" agents="webkit/500+" platforms="ipad iphone ipod">
+ <capabilities id="ios" agents="webkit/533+" platforms="ipad iphone ipod">
<!-- note, version included to give it a higher score than the webkit312 below -->
<include refid="html" />
- <include src="webkit312.xml"/>
+ <include refid="webkit533"/>
<include src="ios.xml"/>
</capabilities>
- <capabilities id="android" agents="webkit/500+" platforms="android">
+ <capabilities id="android" agents="webkit/533+" platforms="android">
<!-- note, version included to give it a higher score than the webkit312 below -->
<include refid="html" />
- <include src="webkit312.xml"/>
+ <include refid="webkit533"/>
<include src="android.xml"/>
</capabilities>
-
+
<capabilities id="webkit" agents="webkit">
<include refid="html" />
<include src="webkit.xml"/>
@@ -113,6 +118,11 @@
<include refid="webkit" />
<include src="webkit312.xml"/>
</capabilities>
+
+ <capabilities id="webkit533" agents="webkit/533+">
+ <include refid="webkit312" />
+ <include src="webkit533.xml"/>
+ </capabilities>
<capabilities id="nokia_s60" agents="nokia_s60">
<include refid="webkit312"/>
Added: myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/agent/gecko4.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/agent/gecko4.xml?rev=1153956&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/agent/gecko4.xml (added)
+++ myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/agent/gecko4.xml Thu Aug 4 18:13:30 2011
@@ -0,0 +1,23 @@
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<capabilityData xmlns="http://myfaces.apache.org/trinidad/agent/capabilities">
+ <capability name="historyManagement" value="full"/>
+</capabilityData>
Propchange: myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/agent/gecko4.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/agent/webkit533.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/agent/webkit533.xml?rev=1153956&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/agent/webkit533.xml (added)
+++ myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/agent/webkit533.xml Thu Aug 4 18:13:30 2011
@@ -0,0 +1,23 @@
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<capabilityData xmlns="http://myfaces.apache.org/trinidad/agent/capabilities">
+ <capability name="historyManagement" value="full"/>
+</capabilityData>
Propchange: myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/agent/webkit533.xml
------------------------------------------------------------------------------
svn:eol-style = native