| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_COCOA_DOCK_ICON_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_DOCK_ICON_H_ |
| 7 |
| 5 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 6 | 9 |
| 7 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| 8 | 11 |
| 9 // A class representing the dock icon of the Chromium app. It's its own class | 12 // A class representing the dock icon of the Chromium app. It's its own class |
| 10 // since several parts of the app want to manipulate the display of the dock | 13 // since several parts of the app want to manipulate the display of the dock |
| 11 // icon. | 14 // icon. |
| 12 // | 15 // |
| 13 // Like all UI, it must only be messaged from the UI thread. | 16 // Like all UI, it must only be messaged from the UI thread. |
| 14 @interface DockIcon : NSObject { | 17 @interface DockIcon : NSObject { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 32 - (void)setDownloads:(int)downloads; | 35 - (void)setDownloads:(int)downloads; |
| 33 | 36 |
| 34 // Indicates whether the progress indicator should be in an indeterminate state | 37 // Indicates whether the progress indicator should be in an indeterminate state |
| 35 // or not. | 38 // or not. |
| 36 - (void)setIndeterminate:(BOOL)indeterminate; | 39 - (void)setIndeterminate:(BOOL)indeterminate; |
| 37 | 40 |
| 38 // Indicates the amount of progress made of the download. Ranges from [0..1]. | 41 // Indicates the amount of progress made of the download. Ranges from [0..1]. |
| 39 - (void)setProgress:(float)progress; | 42 - (void)setProgress:(float)progress; |
| 40 | 43 |
| 41 @end | 44 @end |
| 45 |
| 46 #endif // CHROME_BROWSER_UI_COCOA_DOCK_ICON_H_ |
| OLD | NEW |