| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_WINDOW_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/scoped_nsobject.h" | 9 #include "base/scoped_nsobject.h" |
| 10 #include "base/task.h" | 10 #include "base/task.h" |
| 11 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 11 #include "chrome/browser/browser_window.h" | 12 #include "chrome/browser/browser_window.h" |
| 12 #include "chrome/browser/bookmarks/bookmark_model.h" | 13 #include "content/common/notification_registrar.h" |
| 13 #include "chrome/common/notification_registrar.h" | |
| 14 | 14 |
| 15 class Browser; | 15 class Browser; |
| 16 @class BrowserWindowController; | 16 @class BrowserWindowController; |
| 17 @class FindBarCocoaController; | 17 @class FindBarCocoaController; |
| 18 @class NSEvent; | 18 @class NSEvent; |
| 19 @class NSMenu; | 19 @class NSMenu; |
| 20 @class NSWindow; | 20 @class NSWindow; |
| 21 | 21 |
| 22 // An implementation of BrowserWindow for Cocoa. Bridges between C++ and | 22 // An implementation of BrowserWindow for Cocoa. Bridges between C++ and |
| 23 // the Cocoa NSWindow. Cross-platform code will interact with this object when | 23 // the Cocoa NSWindow. Cross-platform code will interact with this object when |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 void UpdateSidebarForContents(TabContents* tab_contents); | 136 void UpdateSidebarForContents(TabContents* tab_contents); |
| 137 | 137 |
| 138 NotificationRegistrar registrar_; | 138 NotificationRegistrar registrar_; |
| 139 Browser* browser_; // weak, owned by controller | 139 Browser* browser_; // weak, owned by controller |
| 140 BrowserWindowController* controller_; // weak, owns us | 140 BrowserWindowController* controller_; // weak, owns us |
| 141 ScopedRunnableMethodFactory<Browser> confirm_close_factory_; | 141 ScopedRunnableMethodFactory<Browser> confirm_close_factory_; |
| 142 scoped_nsobject<NSString> pending_window_title_; | 142 scoped_nsobject<NSString> pending_window_title_; |
| 143 }; | 143 }; |
| 144 | 144 |
| 145 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ | 145 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ |
| OLD | NEW |