mac: Add APIs on setting icon in titlebar.
This commit is contained in:
parent
2f5dfb1dc7
commit
a7b730654c
7 changed files with 44 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue