<commit_before>// 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() {
}<commit_msg>Mac: Fix display of Flash plugins (issue #741).<commit_after>// 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 "base/command_line.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
#include "ui/base/ui_base_switches.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);
  
  // Core Animation mode for plugins is not supported.
  CommandLine::ForCurrentProcess()->AppendSwitch(
      switches::kDisableCoreAnimationPlugins);
}

void CefProcessUIThread::PlatformCleanUp() {
}
{'fraction_non_alphanumeric': 0.10328185328185328, 'fraction_numerical': 0.00916988416988417, 'mean_word_length': 5.206586826347305, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5280939', 'n_tokens_mistral': 680, 'n_tokens_neox': 640, 'n_words': 175}