| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 // A class acting as the Objective-C controller for the Browser | 9 // A class acting as the Objective-C controller for the Browser |
| 10 // object. Handles interactions between Cocoa and the cross-platform | 10 // object. Handles interactions between Cocoa and the cross-platform |
| 11 // code. Each window has a single toolbar and, by virtue of being a | 11 // code. Each window has a single toolbar and, by virtue of being a |
| 12 // TabWindowController, a tab strip along the top. | 12 // TabWindowController, a tab strip along the top. |
| 13 | 13 |
| 14 #import <Cocoa/Cocoa.h> | 14 #import <Cocoa/Cocoa.h> |
| 15 | 15 |
| 16 #include "base/scoped_nsobject.h" | 16 #include "base/scoped_nsobject.h" |
| 17 #include "base/scoped_ptr.h" | 17 #include "base/scoped_ptr.h" |
| 18 #include "chrome/browser/sync/sync_ui_util.h" | 18 #include "chrome/browser/sync/sync_ui_util.h" |
| 19 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" | 19 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" |
| 20 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller.h" | 20 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller.h" |
| 21 #import "chrome/browser/ui/cocoa/browser_command_executor.h" | 21 #import "chrome/browser/ui/cocoa/browser_command_executor.h" |
| 22 #import "chrome/browser/ui/cocoa/tab_contents_controller.h" | 22 #import "chrome/browser/ui/cocoa/tab_contents_controller.h" |
| 23 #import "chrome/browser/ui/cocoa/tab_strip_controller.h" | 23 #import "chrome/browser/ui/cocoa/tabs/tab_strip_controller.h" |
| 24 #import "chrome/browser/ui/cocoa/tab_window_controller.h" | 24 #import "chrome/browser/ui/cocoa/tabs/tab_window_controller.h" |
| 25 #import "chrome/browser/ui/cocoa/themed_window.h" | 25 #import "chrome/browser/ui/cocoa/themed_window.h" |
| 26 #import "chrome/browser/ui/cocoa/url_drop_target.h" | 26 #import "chrome/browser/ui/cocoa/url_drop_target.h" |
| 27 #import "chrome/browser/ui/cocoa/view_resizer.h" | 27 #import "chrome/browser/ui/cocoa/view_resizer.h" |
| 28 | 28 |
| 29 | 29 |
| 30 class Browser; | 30 class Browser; |
| 31 class BrowserWindow; | 31 class BrowserWindow; |
| 32 class BrowserWindowCocoa; | 32 class BrowserWindowCocoa; |
| 33 class ConstrainedWindowMac; | 33 class ConstrainedWindowMac; |
| 34 @class DevToolsController; | 34 @class DevToolsController; |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 - (void)resetWindowGrowthState; | 388 - (void)resetWindowGrowthState; |
| 389 | 389 |
| 390 // Computes by how far in each direction, horizontal and vertical, the | 390 // Computes by how far in each direction, horizontal and vertical, the |
| 391 // |source| rect doesn't fit into |target|. | 391 // |source| rect doesn't fit into |target|. |
| 392 - (NSSize)overflowFrom:(NSRect)source | 392 - (NSSize)overflowFrom:(NSRect)source |
| 393 to:(NSRect)target; | 393 to:(NSRect)target; |
| 394 @end // @interface BrowserWindowController(TestingAPI) | 394 @end // @interface BrowserWindowController(TestingAPI) |
| 395 | 395 |
| 396 | 396 |
| 397 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 397 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |