blob: 2dcb84c569bb9e3c251560182156aac83b2db83f [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview A helper object used from the Chrome printing section to
* interact with the browser. Used on operating system that is not Chrome OS.
*/
// clang-format off
import {addSingletonGetter} from 'chrome://resources/js/cr.m.js';
// clang-format on
/** @interface */
class PrintingBrowserProxy {
/**
* Open the native print system dialog.
*/
openSystemPrintDialog() {}
}
/**
* @implements {PrintingBrowserProxy}
*/
export class PrintingBrowserProxyImpl {
/** @override */
openSystemPrintDialog() {
chrome.send('openSystemPrintDialog');
}
}
addSingletonGetter(PrintingBrowserProxyImpl);