Add GetTitle for window API.
This commit is contained in:
parent
df50cc08d6
commit
257e439efb
5 changed files with 17 additions and 0 deletions
|
@ -265,6 +265,10 @@ void NativeWindowMac::SetTitle(const std::string& title) {
|
|||
[window() setTitle:base::SysUTF8ToNSString(title)];
|
||||
}
|
||||
|
||||
std::string NativeWindowMac::GetTitle() {
|
||||
return base::SysNSStringToUTF8([window() title]);
|
||||
}
|
||||
|
||||
void NativeWindowMac::FlashFrame(bool flash) {
|
||||
if (flash) {
|
||||
attention_request_id_ = [NSApp requestUserAttention:NSInformationalRequest];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue