Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6094)

Unified Diff: chrome/browser/ui/cocoa/extensions/shell_window_cocoa.h

Issue 10823176: Cocoa: Support constrained windows for platform apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix print preview test Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/extensions/shell_window_cocoa.h
diff --git a/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.h b/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.h
index 8ee75655926b8e13df6345b81e30ff9bed63529e..5823651f9a8ab31853e5ed329ed0b7c5a5c5534b 100644
--- a/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.h
+++ b/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.h
@@ -9,18 +9,25 @@
#include <vector>
#include "base/memory/scoped_nsobject.h"
+#include "chrome/browser/ui/cocoa/constrained_window_mac.h"
#include "chrome/browser/ui/extensions/shell_window.h"
#include "chrome/common/extensions/draggable_region.h"
#include "ui/gfx/rect.h"
+#import "third_party/GTM/AppKit/GTMWindowSheetController.h"
class Profile;
class ShellWindowCocoa;
// A window controller for a minimal window to host a web app view. Passes
// Objective-C notifications to the C++ bridge.
-@interface ShellWindowController : NSWindowController<NSWindowDelegate> {
+@interface ShellWindowController : NSWindowController
+ <NSWindowDelegate,
+ GTMWindowSheetControllerDelegate,
+ ConstrainedWindowSupport> {
@private
- ShellWindowCocoa* shellWindow_; // Weak; owns self.
+ ShellWindowCocoa* shellWindow_; // Weak; owns self.
+ // Manages per-window sheets.
+ scoped_nsobject<GTMWindowSheetController> sheetController_;
}
@property(assign, nonatomic) ShellWindowCocoa* shellWindow;
« no previous file with comments | « chrome/browser/ui/cocoa/constrained_window_mac.mm ('k') | chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698