mac: Add BrowserWindow.getRepresentedFilename API, fixes #460.
This commit is contained in:
parent
301706b7d6
commit
acb8b7771e
7 changed files with 20 additions and 0 deletions
|
@ -452,6 +452,10 @@ void NativeWindowMac::SetRepresentedFilename(const std::string& filename) {
|
|||
[window_ setRepresentedFilename:base::SysUTF8ToNSString(filename)];
|
||||
}
|
||||
|
||||
std::string NativeWindowMac::GetRepresentedFilename() {
|
||||
return base::SysNSStringToUTF8([window_ representedFilename]);
|
||||
}
|
||||
|
||||
void NativeWindowMac::SetDocumentEdited(bool edited) {
|
||||
[window_ setDocumentEdited:edited];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue