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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 - (void)updateIconAndTitleLayout; | 84 - (void)updateIconAndTitleLayout; |
85 | 85 |
86 // Various events that we'll need to redraw our titlebar for. | 86 // Various events that we'll need to redraw our titlebar for. |
87 - (void)didChangeFrame:(NSNotification*)notification; | 87 - (void)didChangeFrame:(NSNotification*)notification; |
88 - (void)didChangeTheme:(NSNotification*)notification; | 88 - (void)didChangeTheme:(NSNotification*)notification; |
89 - (void)didChangeMainWindow:(NSNotification*)notification; | 89 - (void)didChangeMainWindow:(NSNotification*)notification; |
90 | 90 |
91 // Helpers to control title drag operation, called from more then one place. | 91 // Helpers to control title drag operation, called from more then one place. |
92 - (void)startDrag; | 92 - (void)startDrag; |
93 - (void)endDrag:(BOOL)cancelled; | 93 - (void)endDrag:(BOOL)cancelled; |
94 - (void)dragWithDeltaX:(int)deltaX; | 94 - (void)dragWithDeltaX:(int)deltaX |
| 95 deltaY:(int)deltaY; |
95 | 96 |
96 // Update the visibility of settings button. | 97 // Update the visibility of settings button. |
97 - (void)updateSettingsButtonVisibility:(BOOL)mouseOverWindow; | 98 - (void)updateSettingsButtonVisibility:(BOOL)mouseOverWindow; |
98 - (void)checkMouseAndUpdateSettingsButtonVisibility; | 99 - (void)checkMouseAndUpdateSettingsButtonVisibility; |
99 | 100 |
100 // Draw Attention methods - change appearance of titlebar to attract user. | 101 // Draw Attention methods - change appearance of titlebar to attract user. |
101 - (void)drawAttention; | 102 - (void)drawAttention; |
102 - (void)stopDrawingAttention; | 103 - (void)stopDrawingAttention; |
103 - (BOOL)isDrawingAttention; | 104 - (BOOL)isDrawingAttention; |
104 - (void)startGlintAnimation; | 105 - (void)startGlintAnimation; |
(...skipping 19 matching lines...) Expand all Loading... |
124 - (void)pressLeftMouseButtonTitlebar; | 125 - (void)pressLeftMouseButtonTitlebar; |
125 - (void)releaseLeftMouseButtonTitlebar; | 126 - (void)releaseLeftMouseButtonTitlebar; |
126 - (void)dragTitlebarDeltaX:(double)delta_x | 127 - (void)dragTitlebarDeltaX:(double)delta_x |
127 deltaY:(double)delta_y; | 128 deltaY:(double)delta_y; |
128 - (void)cancelDragTitlebar; | 129 - (void)cancelDragTitlebar; |
129 - (void)finishDragTitlebar; | 130 - (void)finishDragTitlebar; |
130 | 131 |
131 @end // @interface PanelTitlebarViewCocoa(TestingAPI) | 132 @end // @interface PanelTitlebarViewCocoa(TestingAPI) |
132 | 133 |
133 #endif // CHROME_BROWSER_UI_PANELS_PANEL_TITLEBAR_VIEW_COCOA_H_ | 134 #endif // CHROME_BROWSER_UI_PANELS_PANEL_TITLEBAR_VIEW_COCOA_H_ |
OLD | NEW |