mirror of
				https://bitbucket.org/chromiumembedded/cef
				synced 2025-06-05 21:39:12 +02:00 
			
		
		
		
	- Convert scoped_ptr to std::unique_ptr from <memory> - Convert arraysize to base::size from include/base/cef_cxx17_backports.h - Convert NULL to nullptr - Include include/base/cef_callback.h instead of include/base/cef_bind.h - Implicit conversion of CefRefPtr<T> or scoped_refptr<T> to T* is gone; use .get() instead See the issue for additional details.
		
			
				
	
	
		
			37 lines
		
	
	
		
			1007 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			1007 B
		
	
	
	
		
			C++
		
	
	
	
	
	
// Copyright (c) 2015 The Chromium Embedded Framework Authors. All rights
 | 
						|
// reserved. Use of this source code is governed by a BSD-style license that
 | 
						|
// can be found in the LICENSE file.
 | 
						|
 | 
						|
#ifndef CEF_TESTS_CEFCLIENT_BROWSER_TEMP_WINDOW_WIN_H_
 | 
						|
#define CEF_TESTS_CEFCLIENT_BROWSER_TEMP_WINDOW_WIN_H_
 | 
						|
#pragma once
 | 
						|
 | 
						|
#include "include/cef_base.h"
 | 
						|
 | 
						|
namespace client {
 | 
						|
 | 
						|
// Represents a singleton hidden window that acts as a temporary parent for
 | 
						|
// popup browsers. Only accessed on the UI thread.
 | 
						|
class TempWindowWin {
 | 
						|
 public:
 | 
						|
  // Returns the singleton window handle.
 | 
						|
  static CefWindowHandle GetWindowHandle();
 | 
						|
 | 
						|
 private:
 | 
						|
  // A single instance will be created/owned by RootWindowManager.
 | 
						|
  friend class RootWindowManager;
 | 
						|
  // Allow deletion via std::unique_ptr only.
 | 
						|
  friend std::default_delete<TempWindowWin>;
 | 
						|
 | 
						|
  TempWindowWin();
 | 
						|
  ~TempWindowWin();
 | 
						|
 | 
						|
  CefWindowHandle hwnd_;
 | 
						|
 | 
						|
  DISALLOW_COPY_AND_ASSIGN(TempWindowWin);
 | 
						|
};
 | 
						|
 | 
						|
}  // namespace client
 | 
						|
 | 
						|
#endif  // CEF_TESTS_CEFCLIENT_BROWSER_TEMP_WINDOW_WIN_H_
 |