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-2023, 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
25void GuiHandler::PlatformTitleChange(CefRefPtr<CefBrowser> browser, const CefString &title)
26{
27 NSView *view = (NSView *)browser->GetHost()->GetWindowHandle();
28 NSWindow *window = [view window];
29 std::string titleStr(title);
30 NSString *str = [NSString stringWithUTF8String:titleStr.c_str()];
31 [window setTitle:str];
32}
33
34bool GuiHandler::PlatformResize(CefRefPtr<CefBrowser>, int, int)
35{
36 return false;
37}
static bool PlatformResize(CefRefPtr< CefBrowser > browser, int width, int height)
void PlatformTitleChange(CefRefPtr< CefBrowser > browser, const CefString &title)
static bool PlatformInit()