cocoa: Don't use Chrome's UnderlayOpenGLHostingWindow.

The UnderlayOpenGLHostingWindow would add a semi-transparent layer under
the window, I'm not very sure what does this class exactly do, but
removing it seems no harm to the renderer.

Fixes atom/atom#877.
This commit is contained in:
Cheng Zhao 2013-09-25 16:18:46 +08:00
parent bc95cac3ed
commit ac68589291

View file

@ -8,12 +8,11 @@
#import <Cocoa/Cocoa.h> #import <Cocoa/Cocoa.h>
#include "base/memory/scoped_nsobject.h" #include "base/memory/scoped_nsobject.h"
#import "ui/base/cocoa/underlay_opengl_hosting_window.h"
// Override NSWindow to access unhandled keyboard events (for command // Override NSWindow to access unhandled keyboard events (for command
// processing); subclassing NSWindow is the only method to do // processing); subclassing NSWindow is the only method to do
// this. // this.
@interface AtomEventProcessingWindow : UnderlayOpenGLHostingWindow { @interface AtomEventProcessingWindow : NSWindow {
@private @private
BOOL redispatchingEvent_; BOOL redispatchingEvent_;
BOOL eventHandled_; BOOL eventHandled_;