mac: Add APIs on setting icon in titlebar.

This commit is contained in:
Cheng Zhao 2014-05-27 14:15:34 +08:00
parent 2f5dfb1dc7
commit a7b730654c
7 changed files with 44 additions and 0 deletions

View file

@ -432,6 +432,14 @@ bool NativeWindowMac::IsKiosk() {
return is_kiosk_;
}
void NativeWindowMac::SetRepresentedFilename(const std::string& filename) {
[window_ setRepresentedFilename:base::SysUTF8ToNSString(filename)];
}
void NativeWindowMac::SetDocumentEdited(bool edited) {
[window_ setDocumentEdited:edited];
}
bool NativeWindowMac::HasModalDialog() {
return [window_ attachedSheet] != nil;
}