mac: Add BrowserWindow.getRepresentedFilename API, fixes #460.

This commit is contained in:
Haojian Wu 2014-07-18 21:42:26 +08:00
parent 301706b7d6
commit acb8b7771e
7 changed files with 20 additions and 0 deletions

View file

@ -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];
}