| 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. |
| 109 - (int)iconOnlyWidthInScreenCoordinates; |
| 110 |
| 108 @end // @interface PanelTitlebarView | 111 @end // @interface PanelTitlebarView |
| 109 | 112 |
| 110 // Methods which are either only for testing, or only public for testing. | 113 // Methods which are either only for testing, or only public for testing. |
| 111 @interface PanelTitlebarViewCocoa(TestingAPI) | 114 @interface PanelTitlebarViewCocoa(TestingAPI) |
| 112 | 115 |
| 113 - (PanelWindowControllerCocoa*)controller; | 116 - (PanelWindowControllerCocoa*)controller; |
| 114 | 117 |
| 115 - (NSTextField*)title; | 118 - (NSTextField*)title; |
| 116 | 119 |
| 117 // Simulates click on a close button. Used to test panel closing. | 120 // Simulates click on a close button. Used to test panel closing. |
| 118 - (void)simulateCloseButtonClick; | 121 - (void)simulateCloseButtonClick; |
| 119 | 122 |
| 120 // NativePanelTesting support. | 123 // NativePanelTesting support. |
| 121 - (void)pressLeftMouseButtonTitlebar; | 124 - (void)pressLeftMouseButtonTitlebar; |
| 122 - (void)releaseLeftMouseButtonTitlebar; | 125 - (void)releaseLeftMouseButtonTitlebar; |
| 123 - (void)dragTitlebarDeltaX:(double)delta_x | 126 - (void)dragTitlebarDeltaX:(double)delta_x |
| 124 deltaY:(double)delta_y; | 127 deltaY:(double)delta_y; |
| 125 - (void)cancelDragTitlebar; | 128 - (void)cancelDragTitlebar; |
| 126 - (void)finishDragTitlebar; | 129 - (void)finishDragTitlebar; |
| 127 | 130 |
| 128 @end // @interface PanelTitlebarViewCocoa(TestingAPI) | 131 @end // @interface PanelTitlebarViewCocoa(TestingAPI) |
| 129 | 132 |
| 130 #endif // CHROME_BROWSER_UI_PANELS_PANEL_TITLEBAR_VIEW_COCOA_H_ | 133 #endif // CHROME_BROWSER_UI_PANELS_PANEL_TITLEBAR_VIEW_COCOA_H_ |
| OLD | NEW |