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 3// that can be found in the LICENSE file. 4 5#import <Cocoa/Cocoa.h> 6 7#include "tests/ceftests/os_rendering_unittest_mac.h" 8 9namespace osr_unittests { 10 11CefWindowHandle GetFakeView() { 12 NSScreen* mainScreen = [NSScreen mainScreen]; 13 NSRect screenRect = [mainScreen visibleFrame]; 14 NSView* fakeView = [[NSView alloc] initWithFrame:screenRect]; 15 return CAST_NSVIEW_TO_CEF_WINDOW_HANDLE(fakeView); 16} 17 18} // namespace osr_unittests 19