blob: 6e24dc93d69a71ea45f9acd3982c3c99c5ad203f [file] [log] [blame]
// Copyright (c) 2013 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.
#import <Cocoa/Cocoa.h>
#include "tests/ceftests/os_rendering_unittest_mac.h"
namespace osr_unittests {
CefWindowHandle GetFakeView() {
NSScreen* mainScreen = [NSScreen mainScreen];
NSRect screenRect = [mainScreen visibleFrame];
NSView* fakeView = [[NSView alloc] initWithFrame:screenRect];
return CAST_NSVIEW_TO_CEF_WINDOW_HANDLE(fakeView);
}
} // namespace osr_unittests