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

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: comment 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 75bcdf4044fa78b9b671f1321795cabdb3eed2f4..6f485f08257f5f4f1f3ee4ffaa412378a05f5ff8 100644
--- a/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.h
+++ b/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.h
@@ -8,17 +8,24 @@
#import <Cocoa/Cocoa.h>
#include "base/memory/scoped_nsobject.h"
+#include "chrome/browser/ui/cocoa/constrained_window_mac.h"
#include "chrome/browser/ui/extensions/shell_window.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.
Robert Sesek 2012/08/06 22:18:34 nit: two spaces btwn ; and //
sail 2012/08/09 00:25:54 Done.
+ // Manages per-tab sheets.
jeremya 2012/08/05 22:32:47 nit: there are no tabs in shell windows :) perhaps
sail 2012/08/09 00:25:54 Done.
+ scoped_nsobject<GTMWindowSheetController> sheetController_;
}
@property(assign, nonatomic) ShellWindowCocoa* shellWindow;

Powered by Google App Engine
This is Rietveld 408576698