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_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_ |
6 #define CHROME_BROWSER_UI_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_ |
7 | 7 |
8 // A class acting as the Objective-C controller for the Panel window | 8 // A class acting as the Objective-C controller for the Panel window |
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 titlebar and is managed/owned by Panel. | 10 // code. Each window has a single titlebar and is managed/owned by Panel. |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 | 87 |
88 // Used by PanelTitlebarViewCocoa when user rearranges the Panels by dragging. | 88 // Used by PanelTitlebarViewCocoa when user rearranges the Panels by dragging. |
89 - (void)startDrag; | 89 - (void)startDrag; |
90 - (void)endDrag:(BOOL)cancelled; | 90 - (void)endDrag:(BOOL)cancelled; |
91 - (void)dragWithDeltaX:(int)deltaX; | 91 - (void)dragWithDeltaX:(int)deltaX; |
92 | 92 |
93 // Accessor for titlebar view. | 93 // Accessor for titlebar view. |
94 - (PanelTitlebarViewCocoa*)titlebarView; | 94 - (PanelTitlebarViewCocoa*)titlebarView; |
95 // Returns the height of titlebar, used to show the titlebar in | 95 // Returns the height of titlebar, used to show the titlebar in |
96 // "Draw Attention" state. | 96 // "Draw Attention" state. |
97 - (int)titlebarHeightInScreeenCoordinates; | 97 - (int)titlebarHeightInScreenCoordinates; |
98 | 98 |
99 // Invoked when user clicks on the titlebar. Flips Minimized/Restored states. | 99 // Invoked when user clicks on the titlebar. Flips Minimized/Restored states. |
100 - (void)flipExpansionState; | 100 - (void)flipExpansionState; |
101 | 101 |
102 // Executes the command in the context of the current browser. | 102 // Executes the command in the context of the current browser. |
103 // |command| is an integer value containing one of the constants defined in the | 103 // |command| is an integer value containing one of the constants defined in the |
104 // "chrome/app/chrome_command_ids.h" file. | 104 // "chrome/app/chrome_command_ids.h" file. |
105 - (void)executeCommand:(int)command; | 105 - (void)executeCommand:(int)command; |
106 | 106 |
107 // Invokes the settings menu when the settings button is pressed. | 107 // Invokes the settings menu when the settings button is pressed. |
108 - (void)runSettingsMenu:(NSView*)button; | 108 - (void)runSettingsMenu:(NSView*)button; |
109 | 109 |
110 // NSAnimationDelegate method, invoked when bounds animation is finished. | 110 // NSAnimationDelegate method, invoked when bounds animation is finished. |
111 - (void)animationDidEnd:(NSAnimation*)animation; | 111 - (void)animationDidEnd:(NSAnimation*)animation; |
112 // Terminates current bounds animation, if any. | 112 // Terminates current bounds animation, if any. |
113 - (void)terminateBoundsAnimation; | 113 - (void)terminateBoundsAnimation; |
114 | 114 |
115 @end // @interface PanelWindowController | 115 @end // @interface PanelWindowController |
116 | 116 |
117 // Methods which are either only for testing, or only public for testing. | 117 // Methods which are either only for testing, or only public for testing. |
118 @interface PanelWindowControllerCocoa(TestingAPI) | 118 @interface PanelWindowControllerCocoa(TestingAPI) |
119 | 119 |
120 + (void)enableBoundsAnimationNotifications; | 120 + (void)enableBoundsAnimationNotifications; |
121 | 121 |
122 @end // @interface PanelWindowControllerCocoa(TestingAPI) | 122 @end // @interface PanelWindowControllerCocoa(TestingAPI) |
123 | 123 |
124 #endif // CHROME_BROWSER_UI_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_ | 124 #endif // CHROME_BROWSER_UI_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_ |
OLD | NEW |