| 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_VIEWS_TABS_TAB_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 // mini tab title change and pulsing. | 231 // mini tab title change and pulsing. |
| 232 double GetThrobValue(); | 232 double GetThrobValue(); |
| 233 | 233 |
| 234 // Set the temporary offset for the favicon. This is used during the crash | 234 // Set the temporary offset for the favicon. This is used during the crash |
| 235 // animation. | 235 // animation. |
| 236 void SetFaviconHidingOffset(int offset); | 236 void SetFaviconHidingOffset(int offset); |
| 237 | 237 |
| 238 void DisplayCrashedFavicon(); | 238 void DisplayCrashedFavicon(); |
| 239 void ResetCrashedFavicon(); | 239 void ResetCrashedFavicon(); |
| 240 | 240 |
| 241 void StopIconAnimation(); |
| 241 void StartCrashAnimation(); | 242 void StartCrashAnimation(); |
| 242 void StopCrashAnimation(); | |
| 243 | |
| 244 void StartRecordingAnimation(); | 243 void StartRecordingAnimation(); |
| 245 void StopRecordingAnimation(); | |
| 246 | |
| 247 void StartAudioPlayingAnimation(); | 244 void StartAudioPlayingAnimation(); |
| 248 void StopAudioPlayingAnimation(); | |
| 249 | 245 |
| 250 // Returns true if the crash animation is currently running. | 246 // Returns true if the crash animation is currently running. |
| 251 bool IsPerformingCrashAnimation() const; | 247 bool IsPerformingCrashAnimation() const; |
| 252 | 248 |
| 253 // Schedules repaint task for icon. | 249 // Schedules repaint task for icon. |
| 254 void ScheduleIconPaint(); | 250 void ScheduleIconPaint(); |
| 255 | 251 |
| 256 // Performs a one-time initialization of static resources such as tab images. | 252 // Performs a one-time initialization of static resources such as tab images. |
| 257 static void InitTabResources(); | 253 static void InitTabResources(); |
| 258 | 254 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 static int font_height_; | 346 static int font_height_; |
| 351 | 347 |
| 352 // As the majority of the tabs are inactive, and painting tabs is slowish, | 348 // As the majority of the tabs are inactive, and painting tabs is slowish, |
| 353 // we cache a handful of the inactive tab backgrounds here. | 349 // we cache a handful of the inactive tab backgrounds here. |
| 354 static ImageCache* image_cache_; | 350 static ImageCache* image_cache_; |
| 355 | 351 |
| 356 DISALLOW_COPY_AND_ASSIGN(Tab); | 352 DISALLOW_COPY_AND_ASSIGN(Tab); |
| 357 }; | 353 }; |
| 358 | 354 |
| 359 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ | 355 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ |
| OLD | NEW |