author Martin Stransky <stransky@redhat.com>
Thu, 01 Feb 2018 13:56:15 +0100
changeset 750088 c8b0466bc1d0f3c2ed42a71ce127c36c9185477f
parent 679345 396ff2a152d77a0c28f09fefc8b0a96659f2d4ba
permissions -rw-r--r--
Bug 1434565 - Put some meanigful timestamp to nsRemoteService::HandleCommandLine(), r?jhorak We need to put a timestamp to nsRemoteService::HandleCommandLine() to allow Gtk+ focus opened Firefox window. Unfortunately we don't have much choice how to get the timestamp at DBUS remote service so ask for gtk_get_current_event_time() and when GDK_CURRENT_TIME is returned (it means we don't have the timestamp) use g_get_monotonic_time() as well as at nsWindow::GetEventTimeStamp(). MozReview-Commit-ID: 9ilVZ0kPe3x

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* 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/. */

#include "nsISupports.idl"
#include "nsIPrintSettings.idl"

interface nsIStringEnumerator;

[scriptable, uuid(5e738fff-404c-4c94-9189-e8f2cce93e94)]

interface nsIPrinterEnumerator : nsISupports
   * The name of the system default printer. This name should also be
   * present in printerNameList below. This is not necessarily gecko's
   * default printer; see nsIPrintSettingsService.defaultPrinterName
   * for that.
  readonly attribute AString defaultPrinterName;

   * Initializes certain settings from the native printer into the PrintSettings
   * These settings include, but are not limited to:
   *   Page Orientation
   *   Page Size
   *   Number of Copies
  void initPrintSettingsFromPrinter(in AString aPrinterName,
                                    in nsIPrintSettings aPrintSettings);

   * The list of printer names
  readonly attribute nsIStringEnumerator printerNameList;