OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_EXTENSIONS_SHELL_WINDOW_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_ |
6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #import "base/mac/cocoa_protocols.h" | |
11 #include "base/memory/scoped_nsobject.h" | 10 #include "base/memory/scoped_nsobject.h" |
12 #include "chrome/browser/ui/extensions/shell_window.h" | 11 #include "chrome/browser/ui/extensions/shell_window.h" |
13 #include "ui/gfx/rect.h" | 12 #include "ui/gfx/rect.h" |
14 | 13 |
15 class Profile; | 14 class Profile; |
16 class ShellWindowCocoa; | 15 class ShellWindowCocoa; |
17 | 16 |
18 // A window controller for a minimal window to host a web app view. Passes | 17 // A window controller for a minimal window to host a web app view. Passes |
19 // Objective-C notifications to the C++ bridge. | 18 // Objective-C notifications to the C++ bridge. |
20 @interface ShellWindowController : NSWindowController<NSWindowDelegate> { | 19 @interface ShellWindowController : NSWindowController<NSWindowDelegate> { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 bool is_fullscreen_; | 76 bool is_fullscreen_; |
78 NSRect restored_bounds_; | 77 NSRect restored_bounds_; |
79 | 78 |
80 scoped_nsobject<ShellWindowController> window_controller_; | 79 scoped_nsobject<ShellWindowController> window_controller_; |
81 NSInteger attention_request_id_; // identifier from requestUserAttention | 80 NSInteger attention_request_id_; // identifier from requestUserAttention |
82 | 81 |
83 DISALLOW_COPY_AND_ASSIGN(ShellWindowCocoa); | 82 DISALLOW_COPY_AND_ASSIGN(ShellWindowCocoa); |
84 }; | 83 }; |
85 | 84 |
86 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_ | 85 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_ |
OLD | NEW |