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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 | 237 |
238 void DisplayCrashedFavicon(); | 238 void DisplayCrashedFavicon(); |
239 void ResetCrashedFavicon(); | 239 void ResetCrashedFavicon(); |
240 | 240 |
241 void StartCrashAnimation(); | 241 void StartCrashAnimation(); |
242 void StopCrashAnimation(); | 242 void StopCrashAnimation(); |
243 | 243 |
244 void StartRecordingAnimation(); | 244 void StartRecordingAnimation(); |
245 void StopRecordingAnimation(); | 245 void StopRecordingAnimation(); |
246 | 246 |
247 void StartAudioPlayingAnimation(); | |
248 void StopAudioPlayingAnimation(); | |
249 | |
250 // Returns true if the crash animation is currently running. | 247 // Returns true if the crash animation is currently running. |
251 bool IsPerformingCrashAnimation() const; | 248 bool IsPerformingCrashAnimation() const; |
252 | 249 |
253 // Schedules repaint task for icon. | 250 // Schedules repaint task for icon. |
254 void ScheduleIconPaint(); | 251 void ScheduleIconPaint(); |
255 | 252 |
256 // Performs a one-time initialization of static resources such as tab images. | 253 // Performs a one-time initialization of static resources such as tab images. |
257 static void InitTabResources(); | 254 static void InitTabResources(); |
258 | 255 |
259 // Returns the minimum possible size of a single unselected Tab, not | 256 // Returns the minimum possible size of a single unselected Tab, not |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 static int font_height_; | 347 static int font_height_; |
351 | 348 |
352 // As the majority of the tabs are inactive, and painting tabs is slowish, | 349 // As the majority of the tabs are inactive, and painting tabs is slowish, |
353 // we cache a handful of the inactive tab backgrounds here. | 350 // we cache a handful of the inactive tab backgrounds here. |
354 static ImageCache* image_cache_; | 351 static ImageCache* image_cache_; |
355 | 352 |
356 DISALLOW_COPY_AND_ASSIGN(Tab); | 353 DISALLOW_COPY_AND_ASSIGN(Tab); |
357 }; | 354 }; |
358 | 355 |
359 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ | 356 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ |
OLD | NEW |