mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Rename CEF1 files from /trunk to /trunk/cef1 (issue #564).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@570 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
24
cef1/libcef/cef_process_ui_thread_mac.mm
Normal file
24
cef1/libcef/cef_process_ui_thread_mac.mm
Normal file
@@ -0,0 +1,24 @@
|
||||
// Copyright (c) 2010 The Chromium Embedded Framework Authors.
|
||||
// Portions copyright (c) 2010 The Chromium 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 <AppKit/AppKit.h>
|
||||
|
||||
#import "include/cef_application_mac.h"
|
||||
#include "libcef/cef_process_ui_thread.h"
|
||||
#include "libcef/browser_webkit_glue.h"
|
||||
#include "libcef/cef_context.h"
|
||||
#include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
|
||||
|
||||
void CefProcessUIThread::PlatformInit() {
|
||||
// The NSApplication instance must implement the CefAppProtocol protocol.
|
||||
DCHECK([[NSApplication sharedApplication]
|
||||
conformsToProtocol:@protocol(CefAppProtocol)]);
|
||||
|
||||
// On Mac, the select popup menus are rendered by the browser.
|
||||
WebKit::WebView::setUseExternalPopupMenus(true);
|
||||
}
|
||||
|
||||
void CefProcessUIThread::PlatformCleanUp() {
|
||||
}
|
Reference in New Issue
Block a user