OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ |
6 #define CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "apps/shell_window.h" | 11 #include "apps/shell_window.h" |
12 #include "apps/ui/native_app_window.h" | 12 #include "apps/ui/native_app_window.h" |
13 #include "base/mac/scoped_nsobject.h" | 13 #include "base/mac/scoped_nsobject.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #import "chrome/browser/ui/cocoa/browser_command_executor.h" | 15 #import "chrome/browser/ui/cocoa/browser_command_executor.h" |
16 #include "content/public/browser/web_contents_observer.h" | 16 #include "content/public/browser/web_contents_observer.h" |
17 #include "extensions/common/draggable_region.h" | 17 #include "extensions/common/draggable_region.h" |
18 #include "ui/gfx/rect.h" | 18 #include "ui/gfx/rect.h" |
19 | 19 |
20 class ExtensionKeybindingRegistryCocoa; | 20 class ExtensionKeybindingRegistryCocoa; |
21 class Profile; | |
22 class NativeAppWindowCocoa; | 21 class NativeAppWindowCocoa; |
23 @class ShellNSWindow; | 22 @class ShellNSWindow; |
24 class SkRegion; | 23 class SkRegion; |
25 | 24 |
26 // A window controller for a minimal window to host a web app view. Passes | 25 // A window controller for a minimal window to host a web app view. Passes |
27 // Objective-C notifications to the C++ bridge. | 26 // Objective-C notifications to the C++ bridge. |
28 @interface NativeAppWindowController : NSWindowController | 27 @interface NativeAppWindowController : NSWindowController |
29 <NSWindowDelegate, | 28 <NSWindowDelegate, |
30 BrowserCommandExecutor> { | 29 BrowserCommandExecutor> { |
31 @private | 30 @private |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 NSPoint last_mouse_location_; | 220 NSPoint last_mouse_location_; |
222 | 221 |
223 // The Extension Command Registry used to determine which keyboard events to | 222 // The Extension Command Registry used to determine which keyboard events to |
224 // handle. | 223 // handle. |
225 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; | 224 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; |
226 | 225 |
227 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); | 226 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); |
228 }; | 227 }; |
229 | 228 |
230 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ | 229 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ |
OLD | NEW |