| OLD | NEW |
| 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_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 6 #define CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| 7 | 7 |
| 8 // A class acting as the Objective-C controller for the Browser | 8 // A class acting as the Objective-C controller for the Browser |
| 9 // object. Handles interactions between Cocoa and the cross-platform | 9 // object. Handles interactions between Cocoa and the cross-platform |
| 10 // code. Each window has a single toolbar and, by virtue of being a | 10 // code. Each window has a single toolbar and, by virtue of being a |
| 11 // TabWindowController, a tab strip along the top. | 11 // TabWindowController, a tab strip along the top. |
| 12 | 12 |
| 13 #import <Cocoa/Cocoa.h> | 13 #import <Cocoa/Cocoa.h> |
| 14 | 14 |
| 15 #include "base/scoped_nsobject.h" | 15 #include "base/scoped_nsobject.h" |
| 16 #include "base/scoped_ptr.h" | 16 #include "base/scoped_ptr.h" |
| 17 #import "chrome/browser/cocoa/tab_window_controller.h" | 17 #import "chrome/browser/cocoa/tab_window_controller.h" |
| 18 #import "chrome/browser/cocoa/bookmark_bar_controller.h" | 18 #import "chrome/browser/cocoa/bookmark_bar_controller.h" |
| 19 #import "chrome/browser/cocoa/bookmark_bubble_controller.h" | 19 #import "chrome/browser/cocoa/bookmark_bubble_controller.h" |
| 20 #import "chrome/browser/cocoa/browser_command_executor.h" | 20 #import "chrome/browser/cocoa/browser_command_executor.h" |
| 21 #import "chrome/browser/cocoa/view_resizer.h" | 21 #import "chrome/browser/cocoa/view_resizer.h" |
| 22 #include "chrome/browser/sync/sync_status_ui_helper.h" |
| 22 #import "third_party/GTM/AppKit/GTMTheme.h" | 23 #import "third_party/GTM/AppKit/GTMTheme.h" |
| 23 | 24 |
| 24 class Browser; | 25 class Browser; |
| 25 class BrowserWindow; | 26 class BrowserWindow; |
| 26 class BrowserWindowCocoa; | 27 class BrowserWindowCocoa; |
| 27 @class ChromeBrowserWindow; | 28 @class ChromeBrowserWindow; |
| 28 class ConstrainedWindowMac; | 29 class ConstrainedWindowMac; |
| 29 @class DownloadShelfController; | 30 @class DownloadShelfController; |
| 30 @class ExtensionShelfController; | 31 @class ExtensionShelfController; |
| 31 @class FindBarCocoaController; | 32 @class FindBarCocoaController; |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 | 178 |
| 178 // Allows us to initWithBrowser withOUT taking ownership of the browser. | 179 // Allows us to initWithBrowser withOUT taking ownership of the browser. |
| 179 - (id)initWithBrowser:(Browser*)browser takeOwnership:(BOOL)ownIt; | 180 - (id)initWithBrowser:(Browser*)browser takeOwnership:(BOOL)ownIt; |
| 180 | 181 |
| 181 // Return an autoreleased NSWindow suitable for fullscreen use. | 182 // Return an autoreleased NSWindow suitable for fullscreen use. |
| 182 - (NSWindow*)fullscreenWindow; | 183 - (NSWindow*)fullscreenWindow; |
| 183 | 184 |
| 184 // Return a point suitable for the topLeft for a bookmark bubble. | 185 // Return a point suitable for the topLeft for a bookmark bubble. |
| 185 - (NSPoint)topLeftForBubble; | 186 - (NSPoint)topLeftForBubble; |
| 186 | 187 |
| 188 // Updates a bookmark sync UI item (expected to be a menu item). This is |
| 189 // called every time the menu containing the sync UI item is displayed. |
| 190 - (void)updateSyncItem:(id)syncItem |
| 191 syncEnabled:(BOOL)syncEnabled |
| 192 status:(SyncStatusUIHelper::MessageType)status; |
| 193 |
| 187 @end // BrowserWindowController(TestingAPI) | 194 @end // BrowserWindowController(TestingAPI) |
| 188 | 195 |
| 189 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 196 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |