mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-12 09:37:37 +01:00
19 lines
541 B
Plaintext
19 lines
541 B
Plaintext
// 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 fakeView;
|
|
}
|
|
|
|
} // namespace osr_unittests
|