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.
		
			
				
	
	
		
			39 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			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_MAC_H_
 | |
| #define CEF_TESTS_CEFCLIENT_BROWSER_TEMP_WINDOW_MAC_H_
 | |
| #pragma once
 | |
| 
 | |
| #include "tests/cefclient/browser/client_types.h"
 | |
| 
 | |
| namespace client {
 | |
| 
 | |
| class TempWindowMacImpl;
 | |
| 
 | |
| // Represents a singleton hidden window that acts as a temporary parent for
 | |
| // popup browsers. Only accessed on the UI thread.
 | |
| class TempWindowMac {
 | |
|  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<TempWindowMac>;
 | |
| 
 | |
|   TempWindowMac();
 | |
|   ~TempWindowMac();
 | |
| 
 | |
|   std::unique_ptr<TempWindowMacImpl> impl_;
 | |
| 
 | |
|   DISALLOW_COPY_AND_ASSIGN(TempWindowMac);
 | |
| };
 | |
| 
 | |
| }  // namespace client
 | |
| 
 | |
| #endif  // CEF_TESTS_CEFCLIENT_BROWSER_TEMP_WINDOW_MAC_H_
 |