Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
gui_handler_mac.mm
Go to the documentation of this file.
1// Author: Sergey Linev <S.Linev@gsi.de>
2// Date: 2017-06-29
3// Warning: This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
4
5/*************************************************************************
6 * Copyright (C) 1995-2017, Rene Brun and Fons Rademakers. *
7 * All rights reserved. *
8 * *
9 * For the licensing terms see $ROOTSYS/LICENSE. *
10 * For the list of contributors see $ROOTSYS/README/CREDITS. *
11 *************************************************************************/
12
13#include "gui_handler.h"
14
15#import <Cocoa/Cocoa.h>
16
17#include "include/cef_browser.h"
18
19
21{
22 return false; // MAC not yet support ozone and headless mode
23}
24
25
26void GuiHandler::PlatformTitleChange(CefRefPtr<CefBrowser> browser, const CefString &title)
27{
28 NSView *view = (NSView *)browser->GetHost()->GetWindowHandle();
29 NSWindow *window = [view window];
30 std::string titleStr(title);
31 NSString *str = [NSString stringWithUTF8String:titleStr.c_str()];
32 [window setTitle:str];
33}
void PlatformTitleChange(CefRefPtr< CefBrowser > browser, const CefString &title)
static bool PlatformInit()