Logo ROOT  
Reference Guide
gui_handler_win.cc
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// Copyright (c) 2013 The Chromium Embedded Framework Authors. All rights
6// reserved. Use of this source code is governed by a BSD-style license that
7// can be found in the LICENSE file.
8
9/*************************************************************************
10 * Copyright (C) 1995-2019, Rene Brun and Fons Rademakers. *
11 * All rights reserved. *
12 * *
13 * For the licensing terms see $ROOTSYS/LICENSE. *
14 * For the list of contributors see $ROOTSYS/README/CREDITS. *
15 *************************************************************************/
16
17#include "gui_handler.h"
18
19#include <windows.h>
20#include <string>
21
22#include "include/cef_browser.h"
23#include "include/cef_config.h"
24
26{
27#ifdef CEF_X11
28 return false; // compiled without ozone support
29#else
30 return true; // compiled with ozone support
31#endif
32}
33
34void GuiHandler::PlatformTitleChange(CefRefPtr<CefBrowser> browser, const CefString &title)
35{
36 CefWindowHandle hwnd = browser->GetHost()->GetWindowHandle();
37 SetWindowText(hwnd, std::string(title).c_str());
38}
void PlatformTitleChange(CefRefPtr< CefBrowser > browser, const CefString &title)
static bool PlatformInit()