Add GetTitle for window API.

This commit is contained in:
Cheng Zhao 2013-04-18 14:30:05 +08:00
parent df50cc08d6
commit 257e439efb
5 changed files with 17 additions and 0 deletions

View file

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