| 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 "chrome/browser/ui/cocoa/tracking_area.h" | 10 #import "chrome/browser/ui/cocoa/tracking_area.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 // Should be called when size of the titlebar changes. | 68 // Should be called when size of the titlebar changes. |
| 69 - (void)updateCloseButtonLayout; | 69 - (void)updateCloseButtonLayout; |
| 70 - (void)updateIconAndTitleLayout; | 70 - (void)updateIconAndTitleLayout; |
| 71 | 71 |
| 72 // Various events that we'll need to redraw our titlebar for. | 72 // Various events that we'll need to redraw our titlebar for. |
| 73 - (void)didChangeFrame:(NSNotification*)notification; | 73 - (void)didChangeFrame:(NSNotification*)notification; |
| 74 - (void)didChangeTheme:(NSNotification*)notification; | 74 - (void)didChangeTheme:(NSNotification*)notification; |
| 75 - (void)didChangeMainWindow:(NSNotification*)notification; | 75 - (void)didChangeMainWindow:(NSNotification*)notification; |
| 76 | 76 |
| 77 // Helpers to control title drag operation, called from more then one place. | 77 // Helpers to control title drag operation, called from more then one place. |
| 78 // TODO(dimich): replace BOOL parameter that we have to explicitly specify at | |
| 79 // callsites with an enum defined in PanelManager. | |
| 80 - (void)startDrag; | 78 - (void)startDrag; |
| 81 - (void)endDrag:(BOOL)cancelled; | 79 - (void)endDrag:(BOOL)cancelled; |
| 82 - (void)dragWithDeltaX:(int)deltaX; | 80 - (void)dragWithDeltaX:(int)deltaX; |
| 83 | 81 |
| 84 // Update the visibility of settings button. | 82 // Update the visibility of settings button. |
| 85 - (void)updateSettingsButtonVisibility:(BOOL)mouseOverWindow; | 83 - (void)updateSettingsButtonVisibility:(BOOL)mouseOverWindow; |
| 86 - (void)checkMouseAndUpdateSettingsButtonVisibility; | 84 - (void)checkMouseAndUpdateSettingsButtonVisibility; |
| 87 | 85 |
| 88 // Draw Attention methods - change appearance of titlebar to attract user. | 86 // Draw Attention methods - change appearance of titlebar to attract user. |
| 89 - (void)drawAttention; | 87 - (void)drawAttention; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 105 - (void)pressLeftMouseButtonTitlebar; | 103 - (void)pressLeftMouseButtonTitlebar; |
| 106 - (void)releaseLeftMouseButtonTitlebar; | 104 - (void)releaseLeftMouseButtonTitlebar; |
| 107 - (void)dragTitlebarDeltaX:(double)delta_x | 105 - (void)dragTitlebarDeltaX:(double)delta_x |
| 108 deltaY:(double)delta_y; | 106 deltaY:(double)delta_y; |
| 109 - (void)cancelDragTitlebar; | 107 - (void)cancelDragTitlebar; |
| 110 - (void)finishDragTitlebar; | 108 - (void)finishDragTitlebar; |
| 111 | 109 |
| 112 @end // @interface PanelTitlebarViewCocoa(TestingAPI) | 110 @end // @interface PanelTitlebarViewCocoa(TestingAPI) |
| 113 | 111 |
| 114 #endif // CHROME_BROWSER_UI_PANELS_PANEL_TITLEBAR_VIEW_COCOA_H_ | 112 #endif // CHROME_BROWSER_UI_PANELS_PANEL_TITLEBAR_VIEW_COCOA_H_ |
| OLD | NEW |