Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: chrome/browser/ui/views/tabs/tab.h

Issue 12319104: Fix crasher in tab icon indicator (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/views/tabs/tab.cc » ('j') | chrome/browser/ui/views/tabs/tab.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/tabs/tab.cc » ('j') | chrome/browser/ui/views/tabs/tab.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698