#include "content/public/browser/render_view_host.h"
#include "content/public/browser/render_widget_host_view.h"
#include "native_mate/dictionary.h"
-#import "ui/base/cocoa/command_dispatcher.h"
#include "ui/gfx/skia_util.h"
namespace {
@end
-@interface AtomNSWindow : NSWindow<CommandDispatchingWindow> {
+@interface AtomNSWindow : NSWindow {
@private
atom::NativeWindowMac* shell_;
bool enable_larger_than_screen_;
- base::scoped_nsobject<CommandDispatcher> commandDispatcher_;
}
@property BOOL acceptsFirstMouse;
@property BOOL disableAutoHideCursor;
- (void)setShell:(atom::NativeWindowMac*)shell {
shell_ = shell;
- commandDispatcher_.reset([[CommandDispatcher alloc] initWithOwner:self]);
}
- (void)setEnableLargerThanScreen:(bool)enable {
return !self.disableKeyOrMainWindow;
}
-// CommandDispatchingWindow implementation.
-
-- (void)setCommandHandler:(id<UserInterfaceItemCommandHandler>)commandHandler {
-}
-
-- (BOOL)redispatchKeyEvent:(NSEvent*)event {
- return [commandDispatcher_ redispatchKeyEvent:event];
-}
-
-- (BOOL)defaultPerformKeyEquivalent:(NSEvent*)event {
- return [super performKeyEquivalent:event];
-}
-
-- (void)commandDispatch:(id)sender {
-}
-
-- (void)commandDispatchUsingKeyModifiers:(id)sender {
-}
-
@end
@interface ControlRegionView : NSView