Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(878)

Side by Side Diff: chrome/android/java/AndroidManifest.xml

Issue 2776243007: Enable WebVR presentation from Chrome Custom Tab (Closed)
Patch Set: Add bug Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2015 The Chromium Authors. All rights reserved. 2 <!-- Copyright 2015 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be 3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. --> 4 found in the LICENSE file. -->
5 5
6 <!-- 6 <!--
7 Note: This is a jinja2 template, processed at build time into the final manifest . 7 Note: This is a jinja2 template, processed at build time into the final manifest .
8 8
9 Blocks denoted with { % block some_name % }foo{ % endblock % } can be overridden 9 Blocks denoted with { % block some_name % }foo{ % endblock % } can be overridden
10 by a child template that "extends" this file. 10 by a child template that "extends" this file.
(...skipping 30 matching lines...) Expand all
41 <uses-permission android:name="android.permission.GET_ACCOUNTS"/> 41 <uses-permission android:name="android.permission.GET_ACCOUNTS"/>
42 <uses-permission android:name="android.permission.INTERNET"/> 42 <uses-permission android:name="android.permission.INTERNET"/>
43 <uses-permission android:name="android.permission.MANAGE_ACCOUNTS"/> 43 <uses-permission android:name="android.permission.MANAGE_ACCOUNTS"/>
44 <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/> 44 <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
45 <uses-permission android:name="android.permission.NFC"/> 45 <uses-permission android:name="android.permission.NFC"/>
46 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> 46 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
47 <uses-permission android:name="android.permission.READ_SYNC_SETTINGS"/> 47 <uses-permission android:name="android.permission.READ_SYNC_SETTINGS"/>
48 <uses-permission android:name="android.permission.READ_SYNC_STATS"/> 48 <uses-permission android:name="android.permission.READ_SYNC_STATS"/>
49 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> 49 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
50 <uses-permission android:name="android.permission.RECORD_AUDIO"/> 50 <uses-permission android:name="android.permission.RECORD_AUDIO"/>
51 <uses-permission android:name="android.permission.REORDER_TASKS"/>
Ted C 2017/03/31 18:17:18 @yusufo -- We already have task moveToFront in Act
51 <uses-permission android:name="android.permission.USE_CREDENTIALS"/> 52 <uses-permission android:name="android.permission.USE_CREDENTIALS"/>
52 <uses-permission android:name="android.permission.VIBRATE"/> 53 <uses-permission android:name="android.permission.VIBRATE"/>
53 <uses-permission android:name="android.permission.WAKE_LOCK"/> 54 <uses-permission android:name="android.permission.WAKE_LOCK"/>
54 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> 55 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
55 <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS"/> 56 <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS"/>
56 {% set enable_vr = enable_vr|default(0) %} 57 {% set enable_vr = enable_vr|default(0) %}
57 {% if enable_vr == "true" %} 58 {% if enable_vr == "true" %}
58 <!-- Indicates use of Android's VR-mode, available only on Android N+. --> 59 <!-- Indicates use of Android's VR-mode, available only on Android N+. -->
59 <uses-feature android:name="android.software.vr.mode" android:required="fals e"/> 60 <uses-feature android:name="android.software.vr.mode" android:required="fals e"/>
60 <!-- Indicates use of VR features that are available only on Daydream-ready devices. --> 61 <!-- Indicates use of VR features that are available only on Daydream-ready devices. -->
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 android:exported="false" 361 android:exported="false"
361 android:windowSoftInputMode="adjustResize" 362 android:windowSoftInputMode="adjustResize"
362 android:launchMode="singleTask" 363 android:launchMode="singleTask"
363 android:configChanges="orientation|keyboardHidden|keyboard|screenSiz e|mcc|mnc|screenLayout|smallestScreenSize" 364 android:configChanges="orientation|keyboardHidden|keyboard|screenSiz e|mcc|mnc|screenLayout|smallestScreenSize"
364 android:hardwareAccelerated="false" 365 android:hardwareAccelerated="false"
365 {# We can only use blocks once in Jinja, for future substitutions we use 366 {# We can only use blocks once in Jinja, for future substitutions we use
366 self.supports_video_persistence(). #} 367 self.supports_video_persistence(). #}
367 {% block supports_video_persistence %} 368 {% block supports_video_persistence %}
368 {% endblock %} 369 {% endblock %}
369 > 370 >
370 <!--
371 See the VRChromeTabbedActivity alias below for an explanation of t his dummy intent
372 filter. We need to add these filters here as well, or non-presenti ng webVR pages will
373 trigger a daydream incompatible app message.
374 -->
375 <intent-filter>
376 <action android:name="org.chromium.chrome.browser.dummy.action" />
377 <category android:name="com.google.intent.category.DAYDREAM" />
378 <category android:name="com.google.intent.category.CARDBOARD" />
379 </intent-filter>
380 </activity> 371 </activity>
381
382 {% if enable_vr == "true" %}
383 <!--
384 TODO(mthiesse): Temporarily skip ChromeLauncherActivity when returni ng from Daydream
385 DON flow to avoid polluting metrics.
386 -->
387 <activity-alias android:name="org.chromium.chrome.browser.VRChromeTabbed Activity"
388 android:targetActivity="org.chromium.chrome.browser.ChromeTabbedActi vity"
389 android:enableVrMode="@string/gvr_vr_mode_component">
390 <!--
391 Daydream api categorizes an activity to three categories: Cardboar d only, hybrid
392 or Daydream. It does so by testing if intents can be resolved by t he activity
393 that requests it.
394 In Chrome, CTA is the activity that uses Daydream api and we want to be in hybrid
395 category. So add an intent filter that could pass Daydream tests h ere.
396 -->
397 <intent-filter>
398 <action android:name="org.chromium.chrome.browser.dummy.action" />
399 <category android:name="com.google.intent.category.DAYDREAM" />
400 <category android:name="com.google.intent.category.CARDBOARD" />
401 </intent-filter>
402 </activity-alias>
403 {% endif %}
404
405 <activity android:name="org.chromium.chrome.browser.ChromeTabbedActivity 2" 372 <activity android:name="org.chromium.chrome.browser.ChromeTabbedActivity 2"
406 android:theme="@style/TabbedModeTheme" 373 android:theme="@style/TabbedModeTheme"
407 android:exported="false" 374 android:exported="false"
408 android:windowSoftInputMode="adjustResize" 375 android:windowSoftInputMode="adjustResize"
409 android:taskAffinity="{{ manifest_package }}.ChromeTabbedActivity2" 376 android:taskAffinity="{{ manifest_package }}.ChromeTabbedActivity2"
410 android:launchMode="singleTask" 377 android:launchMode="singleTask"
411 android:configChanges="orientation|keyboardHidden|keyboard|screenSi ze|mcc|mnc|screenLayout|smallestScreenSize" 378 android:configChanges="orientation|keyboardHidden|keyboard|screenSi ze|mcc|mnc|screenLayout|smallestScreenSize"
412 android:hardwareAccelerated="false" 379 android:hardwareAccelerated="false"
413 {{ self.supports_video_persistence() }} 380 {{ self.supports_video_persistence() }}
414 > 381 >
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 592
626 <!-- Activity for dispatching intents to Instant Apps. --> 593 <!-- Activity for dispatching intents to Instant Apps. -->
627 <activity 594 <activity
628 android:name="org.chromium.chrome.browser.instantapps.AuthenticatedP roxyActivity" 595 android:name="org.chromium.chrome.browser.instantapps.AuthenticatedP roxyActivity"
629 android:exported="false" 596 android:exported="false"
630 android:theme="@android:style/Theme.NoDisplay" 597 android:theme="@android:style/Theme.NoDisplay"
631 android:noHistory="true" 598 android:noHistory="true"
632 android:excludeFromRecents="true"> 599 android:excludeFromRecents="true">
633 </activity> 600 </activity>
634 601
602 {% if enable_vr == "true" %}
603 <!-- Activity for dispatching intents to VR-enabled ChromeActivitys. Thi s is necessary
604 because we can't return to CCT via a pendingIntent, which is how Da ydream normally
605 launches an app after the DON flow. -->
606 <activity android:name="org.chromium.chrome.browser.vr_shell.VrProxyActi vity"
607 android:exported="false"
608 android:theme="@android:style/Theme.NoDisplay"
609 android:noHistory="true"
610 android:excludeFromRecents="true"
611 android:relinquishTaskIdentity="true"
612 android:taskAffinity=""
613 android:configChanges="orientation|keyboardHidden|keyboard|screenSiz e|mcc|mnc|screenLayout|smallestScreenSize|uiMode" >
614 android:launchMode="singleInstance">
615 <intent-filter>
616 <action android:name="org.chromium.chrome.browser.dummy.action" />
617 <category android:name="com.google.intent.category.DAYDREAM" />
618 <category android:name="com.google.intent.category.CARDBOARD" />
619 </intent-filter>
620 </activity>
621 {% endif %}
622
635 <!-- Service for handling Nearby Messages --> 623 <!-- Service for handling Nearby Messages -->
636 <service android:name="org.chromium.chrome.browser.physicalweb.NearbyMes sageIntentService" 624 <service android:name="org.chromium.chrome.browser.physicalweb.NearbyMes sageIntentService"
637 android:exported="false" /> 625 android:exported="false" />
638 626
639 <!-- This activity is to expose the PhysicalWeb Share option via the gen eric Android share action. --> 627 <!-- This activity is to expose the PhysicalWeb Share option via the gen eric Android share action. -->
640 <activity 628 <activity
641 android:name="org.chromium.chrome.browser.physicalweb.PhysicalWebSha reActivity" 629 android:name="org.chromium.chrome.browser.physicalweb.PhysicalWebSha reActivity"
642 android:icon="@drawable/physical_web_notification_large" 630 android:icon="@drawable/physical_web_notification_large"
643 android:label="@string/physical_web_share_activity_title" 631 android:label="@string/physical_web_share_activity_title"
644 android:enabled="false" 632 android:enabled="false"
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
977 choose the first MediaRouteController that can play it, so the orde r of the list can be important. 965 choose the first MediaRouteController that can play it, so the orde r of the list can be important.
978 The most specific MediaRouteControllers should be listed first, fol lowed by more generic ones. 966 The most specific MediaRouteControllers should be listed first, fol lowed by more generic ones.
979 The downstream manifest replaces this block, and hence replaces the list of media route 967 The downstream manifest replaces this block, and hence replaces the list of media route
980 controllers with its own list. --> 968 controllers with its own list. -->
981 <meta-data android:name="org.chromium.content.browser.REMOTE_MEDIA_PLAYE RS" 969 <meta-data android:name="org.chromium.content.browser.REMOTE_MEDIA_PLAYE RS"
982 android:value="org.chromium.chrome.browser.media.remote.DefaultMedia RouteController"/> 970 android:value="org.chromium.chrome.browser.media.remote.DefaultMedia RouteController"/>
983 971
984 {% endblock %} 972 {% endblock %}
985 </application> 973 </application>
986 </manifest> 974 </manifest>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698