Bug 1822519 - When qcms_profile_from_memory fails, default to sRGB for display space...
[gecko.git] / widget / nsIClipboardHelper.idl
blobed4af112f1672bca523293048868d9d6c54358c4
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include "nsISupports.idl"
8 #include "nsIClipboard.idl"
10 %{ C++
11 #include "nsString.h" // needed for AString -> nsAString, unfortunately
14 /**
15 * helper service for common uses of nsIClipboard.
18 [scriptable, uuid(438307fd-0c68-4d79-922a-f6cc9550cd02)]
19 interface nsIClipboardHelper : nsISupports
21 cenum SensitiveData : 8 {
22 NotSensitive = 0,
23 Sensitive = 1,
26 /**
27 * copy string to given clipboard
29 * @param aString, the string to copy to the clipboard
30 * @param aClipboardID, the ID of the clipboard to copy to
31 * (eg. kSelectionClipboard -- see nsIClipboard.idl)
32 * @param aSensitive, optional flag to indicate that data is sensitive, like a password.
33 * That will exclude data from Cloud Clipboard/Clipboard History on Windows.
35 void copyStringToClipboard(in AString aString, in long aClipboardID,
36 [optional, default(NotSensitive)] in nsIClipboardHelper_SensitiveData aSensitive);
38 /**
39 * copy string to (default) clipboard
41 * @param aString, the string to copy to the clipboard
43 void copyString(in AString aString,
44 [optional, default(NotSensitive)] in nsIClipboardHelper_SensitiveData aSensitive);