mac: Don't show title text in transparent window

This commit is contained in:
Cheng Zhao 2014-12-23 11:48:20 -08:00
parent 45c41fe880
commit 8506725b54

View file

@ -545,6 +545,10 @@ gfx::Point NativeWindowMac::GetPosition() {
} }
void NativeWindowMac::SetTitle(const std::string& title) { void NativeWindowMac::SetTitle(const std::string& title) {
// We don't want the title to show in transparent window.
if (transparent_)
return;
[window_ setTitle:base::SysUTF8ToNSString(title)]; [window_ setTitle:base::SysUTF8ToNSString(title)];
} }