Bug 1185236 - Add AdjustPrintJobNameForIPP() wide version. r=karlt

MozReview-Commit-ID: AE3mvnrVAqn

--HG--
extra : rebase_source : de725c3dd624c86bca48ee4663ffc58369711f65
This commit is contained in:
Mantaroh Yoshinaga 2017-10-13 15:48:39 +09:00
Родитель bea6d05b62
Коммит 54a06f9d2a
2 изменённых файлов: 13 добавлений и 0 удалений

Просмотреть файл

@ -183,6 +183,17 @@ PrintTarget::AdjustPrintJobNameForIPP(const nsAString& aJobName,
} }
} }
/* static */
void
PrintTarget::AdjustPrintJobNameForIPP(const nsAString& aJobName,
nsString& aAdjustedJobName)
{
nsAutoCString jobName;
AdjustPrintJobNameForIPP(aJobName, jobName);
CopyUTF8toUTF16(jobName, aAdjustedJobName);
}
/* static */ already_AddRefed<DrawTarget> /* static */ already_AddRefed<DrawTarget>
PrintTarget::CreateWrapAndRecordDrawTarget(DrawEventRecorder* aRecorder, PrintTarget::CreateWrapAndRecordDrawTarget(DrawEventRecorder* aRecorder,
DrawTarget* aDrawTarget) DrawTarget* aDrawTarget)

Просмотреть файл

@ -138,6 +138,8 @@ public:
static void AdjustPrintJobNameForIPP(const nsAString& aJobName, static void AdjustPrintJobNameForIPP(const nsAString& aJobName,
nsCString& aAdjustedJobName); nsCString& aAdjustedJobName);
static void AdjustPrintJobNameForIPP(const nsAString& aJobName,
nsString& aAdjustedJobName);
protected: protected: