Skip to content
Snippets Groups Projects
Commit 7e01ddd8 authored by Sergey Linev's avatar Sergey Linev Committed by Bertrand Bellenot
Browse files

webgui: reformat not-yet-used mac source

parent c6f14efe
No related merge requests found
......@@ -8,11 +8,11 @@
#include "include/cef_browser.h"
void SimpleHandler::PlatformTitleChange(CefRefPtr<CefBrowser> browser,
const CefString& title) {
NSView* view = (NSView*)browser->GetHost()->GetWindowHandle();
NSWindow* window = [view window];
std::string titleStr(title);
NSString* str = [NSString stringWithUTF8String:titleStr.c_str()];
[window setTitle:str];
void SimpleHandler::PlatformTitleChange(CefRefPtr<CefBrowser> browser, const CefString &title)
{
NSView *view = (NSView *)browser->GetHost()->GetWindowHandle();
NSWindow *window = [view window];
std::string titleStr(title);
NSString *str = [NSString stringWithUTF8String:titleStr.c_str()];
[window setTitle:str];
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment