Пример #1
0
 public TextToSpeechWrapper(View view, Context context) {
   mView = view;
   mTextToSpeech = new TextToSpeech(context, null, null);
   mSelfBrailleClient =
       new SelfBrailleClient(
           context,
           CommandLine.getInstance().hasSwitch(CommandLine.ACCESSIBILITY_DEBUG_BRAILLE_SERVICE));
 }
Пример #2
0
  /**
   * Creates an instance of the IceCreamSandwichAccessibilityInjector.
   *
   * @param view The ContentViewCore that this AccessibilityInjector manages.
   */
  protected AccessibilityInjector(ContentViewCore view) {
    super(view);
    mContentViewCore = view;

    mAccessibilityScreenReaderUrl =
        CommandLine.getInstance()
            .getSwitchValue(
                CommandLine.ACCESSIBILITY_JAVASCRIPT_URL, DEFAULT_ACCESSIBILITY_SCREEN_READER_URL);
  }