• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2013 The Chromium Embedded Framework Authors. All rights
2 // reserved. Use of this source code is governed by a BSD-style license that
3 // can be found in the LICENSE file.
4 
5 #include "tests/cefsimple/simple_handler.h"
6 
7 #include <windows.h>
8 #include <string>
9 
10 #include "include/cef_browser.h"
11 
PlatformTitleChange(CefRefPtr<CefBrowser> browser,const CefString & title)12 void SimpleHandler::PlatformTitleChange(CefRefPtr<CefBrowser> browser,
13                                         const CefString& title) {
14   CefWindowHandle hwnd = browser->GetHost()->GetWindowHandle();
15   if (hwnd)
16     SetWindowText(hwnd, std::wstring(title).c_str());
17 }
18