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

Side by Side Diff: chrome/browser/cocoa/throbber_view.mm

Issue 2906009: Remove fields that are unused and reference classes that do not exist. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Update comment Created 10 years, 5 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
« no previous file with comments | « chrome/browser/cocoa/throbber_view.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #import "chrome/browser/cocoa/throbber_view.h" 5 #import "chrome/browser/cocoa/throbber_view.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 10
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 [self maintainTimer]; 346 [self maintainTimer];
347 [super viewDidHide]; 347 [super viewDidHide];
348 } 348 }
349 349
350 // A visible ThrobberView may need to start animating. 350 // A visible ThrobberView may need to start animating.
351 - (void)viewDidUnhide { 351 - (void)viewDidUnhide {
352 [self maintainTimer]; 352 [self maintainTimer];
353 [super viewDidUnhide]; 353 [super viewDidUnhide];
354 } 354 }
355 355
356 // Called when the ThrobberTimerTarget gets tickled by our timer. Advance the 356 // Called when the timer fires. Advance the frame, dirty the display, and remove
357 // frame, dirty the display, and kill the timer when it's no longer needed. 357 // the throbber if it's no longer needed.
358 - (void)animate { 358 - (void)animate {
359 [dataDelegate_ advanceFrame]; 359 [dataDelegate_ advanceFrame];
360 [self setNeedsDisplay:YES]; 360 [self setNeedsDisplay:YES];
361 361
362 if ([dataDelegate_ animationIsComplete]) { 362 if ([dataDelegate_ animationIsComplete]) {
363 [[ThrobberTimer sharedThrobberTimer] removeThrobber:self]; 363 [[ThrobberTimer sharedThrobberTimer] removeThrobber:self];
364 } 364 }
365 } 365 }
366 366
367 // Overridden to draw the appropriate frame in the image strip. 367 // Overridden to draw the appropriate frame in the image strip.
368 - (void)drawRect:(NSRect)rect { 368 - (void)drawRect:(NSRect)rect {
369 [dataDelegate_ drawFrameInRect:[self bounds]]; 369 [dataDelegate_ drawFrameInRect:[self bounds]];
370 } 370 }
371 371
372 @end 372 @end
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/throbber_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698