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

Side by Side Diff: chrome/browser/cocoa/browser_window_cocoa.h

Issue 159780: Add support for constrained windows on os x, based on Avi's GTMWindowSheetController. (Closed)
Patch Set: Merge with ToT Created 11 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_COCOA_BROWSER_WINDOW_COCOA_H_ 5 #ifndef CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_
6 #define CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_ 6 #define CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_
7 7
8 #include "chrome/browser/browser_window.h" 8 #include "chrome/browser/browser_window.h"
9 #include "chrome/browser/bookmarks/bookmark_model.h" 9 #include "chrome/browser/bookmarks/bookmark_model.h"
10 #include "chrome/common/notification_registrar.h" 10 #include "chrome/common/notification_registrar.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 bool show_history); 83 bool show_history);
84 84
85 // Overridden from NotificationObserver 85 // Overridden from NotificationObserver
86 virtual void Observe(NotificationType type, 86 virtual void Observe(NotificationType type,
87 const NotificationSource& source, 87 const NotificationSource& source,
88 const NotificationDetails& details); 88 const NotificationDetails& details);
89 89
90 // Adds the given FindBar cocoa controller to this browser window. 90 // Adds the given FindBar cocoa controller to this browser window.
91 void AddFindBar(FindBarCocoaController* find_bar_cocoa_controller); 91 void AddFindBar(FindBarCocoaController* find_bar_cocoa_controller);
92 92
93 // Returns the cocoa-world BrowserWindowController
94 BrowserWindowController* cocoa_controller() { return controller_; }
95
93 protected: 96 protected:
94 virtual void DestroyBrowser(); 97 virtual void DestroyBrowser();
95 98
96 private: 99 private:
97 NotificationRegistrar registrar_; 100 NotificationRegistrar registrar_;
98 NSWindow* window_; // weak, owned by controller 101 NSWindow* window_; // weak, owned by controller
99 Browser* browser_; // weak, owned by controller 102 Browser* browser_; // weak, owned by controller
100 BrowserWindowController* controller_; // weak, owns us 103 BrowserWindowController* controller_; // weak, owns us
101 }; 104 };
102 105
103 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_ 106 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698