2010-11-15 16:39:56 +01:00
|
|
|
// 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.
|
|
|
|
|
2011-08-02 18:50:06 +02:00
|
|
|
#import <AppKit/AppKit.h>
|
|
|
|
|
|
|
|
#import "include/cef_application_mac.h"
|
2012-01-10 00:46:23 +01:00
|
|
|
#include "libcef/cef_process_ui_thread.h"
|
|
|
|
#include "libcef/browser_webkit_glue.h"
|
|
|
|
#include "libcef/cef_context.h"
|
2011-04-09 18:54:59 +02:00
|
|
|
#include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
|
2010-11-15 16:39:56 +01:00
|
|
|
|
|
|
|
void CefProcessUIThread::PlatformInit() {
|
2011-08-02 18:50:06 +02:00
|
|
|
// The NSApplication instance must implement the CefAppProtocol protocol.
|
|
|
|
DCHECK([[NSApplication sharedApplication]
|
|
|
|
conformsToProtocol:@protocol(CefAppProtocol)]);
|
2010-11-15 16:39:56 +01:00
|
|
|
|
2011-04-09 18:54:59 +02:00
|
|
|
// On Mac, the select popup menus are rendered by the browser.
|
|
|
|
WebKit::WebView::setUseExternalPopupMenus(true);
|
2010-11-15 16:39:56 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void CefProcessUIThread::PlatformCleanUp() {
|
|
|
|
}
|