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_TITLEBAR_VIEW_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_TITLEBAR_VIEW_COCOA_H_ |
6 #define CHROME_BROWSER_UI_PANELS_PANEL_TITLEBAR_VIEW_COCOA_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_TITLEBAR_VIEW_COCOA_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #import "base/mac/cocoa_protocols.h" | 10 #import "base/mac/cocoa_protocols.h" |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
98 - (void)checkMouseAndUpdateSettingsButtonVisibility; | 98 - (void)checkMouseAndUpdateSettingsButtonVisibility; |
99 | 99 |
100 // Draw Attention methods - change appearance of titlebar to attract user. | 100 // Draw Attention methods - change appearance of titlebar to attract user. |
101 - (void)drawAttention; | 101 - (void)drawAttention; |
102 - (void)stopDrawingAttention; | 102 - (void)stopDrawingAttention; |
103 - (BOOL)isDrawingAttention; | 103 - (BOOL)isDrawingAttention; |
104 - (void)startGlintAnimation; | 104 - (void)startGlintAnimation; |
105 - (void)restartGlintAnimation:(NSTimer*)timer; | 105 - (void)restartGlintAnimation:(NSTimer*)timer; |
106 - (void)stopGlintAnimation; | 106 - (void)stopGlintAnimation; |
107 | 107 |
108 // Returns width of titlebar when shown in "icon only" mode for a panel in | |
109 // "IN_OVERFLOW" state. | |
jennb
2012/02/07 00:15:31
Should take actual state name out of comment as we
Dmitry Titov
2012/02/07 00:28:26
Done.
| |
110 - (int)iconOnlyWidthInScreenCoordinates; | |
111 | |
108 @end // @interface PanelTitlebarView | 112 @end // @interface PanelTitlebarView |
109 | 113 |
110 // Methods which are either only for testing, or only public for testing. | 114 // Methods which are either only for testing, or only public for testing. |
111 @interface PanelTitlebarViewCocoa(TestingAPI) | 115 @interface PanelTitlebarViewCocoa(TestingAPI) |
112 | 116 |
113 - (PanelWindowControllerCocoa*)controller; | 117 - (PanelWindowControllerCocoa*)controller; |
114 | 118 |
115 - (NSTextField*)title; | 119 - (NSTextField*)title; |
116 | 120 |
117 // Simulates click on a close button. Used to test panel closing. | 121 // Simulates click on a close button. Used to test panel closing. |
118 - (void)simulateCloseButtonClick; | 122 - (void)simulateCloseButtonClick; |
119 | 123 |
120 // NativePanelTesting support. | 124 // NativePanelTesting support. |
121 - (void)pressLeftMouseButtonTitlebar; | 125 - (void)pressLeftMouseButtonTitlebar; |
122 - (void)releaseLeftMouseButtonTitlebar; | 126 - (void)releaseLeftMouseButtonTitlebar; |
123 - (void)dragTitlebarDeltaX:(double)delta_x | 127 - (void)dragTitlebarDeltaX:(double)delta_x |
124 deltaY:(double)delta_y; | 128 deltaY:(double)delta_y; |
125 - (void)cancelDragTitlebar; | 129 - (void)cancelDragTitlebar; |
126 - (void)finishDragTitlebar; | 130 - (void)finishDragTitlebar; |
127 | 131 |
128 @end // @interface PanelTitlebarViewCocoa(TestingAPI) | 132 @end // @interface PanelTitlebarViewCocoa(TestingAPI) |
129 | 133 |
130 #endif // CHROME_BROWSER_UI_PANELS_PANEL_TITLEBAR_VIEW_COCOA_H_ | 134 #endif // CHROME_BROWSER_UI_PANELS_PANEL_TITLEBAR_VIEW_COCOA_H_ |
OLD | NEW |