mobile/android/modules/geckoview/GeckoViewSelectionAction.jsm
author Gurzau Raul <rgurzau@mozilla.com>
Sun, 15 Apr 2018 09:19:04 +0300
changeset 413427 e96685584bf7d3c1d7a4c1861716da89fd650c51
parent 413395 b03e9dc6ecd7751d56be0d68ac3b338dcee2cc2c
child 413435 2627c8b0416336f330d6ac1f35f7973e0f4f57aa
permissions -rw-r--r--
Backed out 5 changesets (bug 1452200) for mochitest-chrome failures on Android on a CLOSED TREE Backed out changeset ed07fb947b5e (bug 1452200) Backed out changeset b03e9dc6ecd7 (bug 1452200) Backed out changeset e4cdad2cd3d2 (bug 1452200) Backed out changeset 8ac249bdc772 (bug 1452200) Backed out changeset 225bb7ed5f71 (bug 1452200)

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */

"use strict";

var EXPORTED_SYMBOLS = ["GeckoViewSelectionAction"];

ChromeUtils.import("resource://gre/modules/GeckoViewModule.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");

XPCOMUtils.defineLazyGetter(this, "dump", () =>
    ChromeUtils.import("resource://gre/modules/AndroidLog.jsm",
                       {}).AndroidLog.d.bind(null, "ViewSelectionAction"));

function debug(aMsg) {
  // dump(aMsg);
}

// Handles inter-op between accessible carets and GeckoSession.
class GeckoViewSelectionAction extends GeckoViewModule {
  onEnable() {
    debug("onEnable");
    this.registerContent("chrome://geckoview/content/GeckoViewSelectionActionContent.js");
  }
}