| 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_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 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 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/fullscreen_exit_bubble_controller.h" | 22 #import "chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.h" |
| 23 #import "chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.h" | 23 #import "chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.h" |
| 24 #import "chrome/browser/ui/cocoa/tabs/tab_strip_controller.h" | 24 #import "chrome/browser/ui/cocoa/tabs/tab_strip_controller.h" |
| 25 #import "chrome/browser/ui/cocoa/tabs/tab_window_controller.h" | 25 #import "chrome/browser/ui/cocoa/tabs/tab_window_controller.h" |
| 26 #import "chrome/browser/ui/cocoa/themed_window.h" | 26 #import "chrome/browser/ui/cocoa/themed_window.h" |
| 27 #import "chrome/browser/ui/cocoa/url_drop_target.h" | 27 #import "chrome/browser/ui/cocoa/url_drop_target.h" |
| 28 #import "chrome/browser/ui/cocoa/view_resizer.h" | 28 #import "chrome/browser/ui/cocoa/view_resizer.h" |
| 29 #include "ui/gfx/rect.h" | 29 #include "ui/gfx/rect.h" |
| 30 | 30 |
| 31 @class AvatarButton; | 31 @class AvatarButtonController; |
| 32 class Browser; | 32 class Browser; |
| 33 class BrowserWindow; | 33 class BrowserWindow; |
| 34 class BrowserWindowCocoa; | 34 class BrowserWindowCocoa; |
| 35 class ConstrainedWindowMac; | 35 class ConstrainedWindowMac; |
| 36 @class DevToolsController; | 36 @class DevToolsController; |
| 37 @class DownloadShelfController; | 37 @class DownloadShelfController; |
| 38 @class FindBarCocoaController; | 38 @class FindBarCocoaController; |
| 39 @class FullscreenWindow; | 39 @class FullscreenWindow; |
| 40 @class GTMWindowSheetController; | 40 @class GTMWindowSheetController; |
| 41 @class InfoBarContainerController; | 41 @class InfoBarContainerController; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // with two-finger gestures enabled in the Trackpad preferences. This will | 103 // with two-finger gestures enabled in the Trackpad preferences. This will |
| 104 // contain the NSTouch objects from |-beginGestureWithEvent:| keyed by the | 104 // contain the NSTouch objects from |-beginGestureWithEvent:| keyed by the |
| 105 // touch's |identity|. | 105 // touch's |identity|. |
| 106 scoped_nsobject<NSMutableDictionary> twoFingerGestureTouches_; | 106 scoped_nsobject<NSMutableDictionary> twoFingerGestureTouches_; |
| 107 | 107 |
| 108 // The raw accumulated zoom value and the actual zoom increments made for an | 108 // The raw accumulated zoom value and the actual zoom increments made for an |
| 109 // an in-progress pinch gesture. | 109 // an in-progress pinch gesture. |
| 110 CGFloat totalMagnifyGestureAmount_; | 110 CGFloat totalMagnifyGestureAmount_; |
| 111 NSInteger currentZoomStepDelta_; | 111 NSInteger currentZoomStepDelta_; |
| 112 | 112 |
| 113 // The view that shows the incognito badge or the multi-profile avatar icon. | 113 // The view controller that manages the incognito badge or the multi-profile |
| 114 // Nil if neither is present. Needed to access the view to move it to/from the | 114 // avatar icon. The view is always in the view hierarchy, but will be hidden |
| 115 // fullscreen window. | 115 // unless it's appropriate to show it. |
| 116 scoped_nsobject<AvatarButton> avatarButton_; | 116 scoped_nsobject<AvatarButtonController> avatarButtonController_; |
| 117 | 117 |
| 118 // The view that shows the presentation mode toggle when in Lion fullscreen | 118 // The view that shows the presentation mode toggle when in Lion fullscreen |
| 119 // mode. Nil if not in fullscreen mode or not on Lion. | 119 // mode. Nil if not in fullscreen mode or not on Lion. |
| 120 scoped_nsobject<NSButton> presentationModeToggleButton_; | 120 scoped_nsobject<NSButton> presentationModeToggleButton_; |
| 121 | 121 |
| 122 // Lazily created view which draws the background for the floating set of bars | 122 // Lazily created view which draws the background for the floating set of bars |
| 123 // in presentation mode (for window types having a floating bar; it remains | 123 // in presentation mode (for window types having a floating bar; it remains |
| 124 // nil for those which don't). | 124 // nil for those which don't). |
| 125 scoped_nsobject<NSView> floatingBarBackingView_; | 125 scoped_nsobject<NSView> floatingBarBackingView_; |
| 126 | 126 |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 - (void)resetWindowGrowthState; | 445 - (void)resetWindowGrowthState; |
| 446 | 446 |
| 447 // Computes by how far in each direction, horizontal and vertical, the | 447 // Computes by how far in each direction, horizontal and vertical, the |
| 448 // |source| rect doesn't fit into |target|. | 448 // |source| rect doesn't fit into |target|. |
| 449 - (NSSize)overflowFrom:(NSRect)source | 449 - (NSSize)overflowFrom:(NSRect)source |
| 450 to:(NSRect)target; | 450 to:(NSRect)target; |
| 451 @end // @interface BrowserWindowController (TestingAPI) | 451 @end // @interface BrowserWindowController (TestingAPI) |
| 452 | 452 |
| 453 | 453 |
| 454 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 454 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |