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

Side by Side Diff: chrome/browser/views/tabs/tab_renderer.cc

Issue 5005: Reorganize the declarations to have some grouping and logical ordering in tab... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #include <limits> 5 #include <limits>
6 6
7 #include "chrome/browser/views/tabs/tab_renderer.h" 7 #include "chrome/browser/views/tabs/tab_renderer.h"
8 8
9 #include "base/gfx/image_operations.h" 9 #include "base/gfx/image_operations.h"
10 #include "chrome/app/theme/theme_resources.h" 10 #include "chrome/app/theme/theme_resources.h"
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 } 263 }
264 264
265 void TabRenderer::UpdateData(TabContents* contents) { 265 void TabRenderer::UpdateData(TabContents* contents) {
266 DCHECK(contents); 266 DCHECK(contents);
267 data_.favicon = contents->GetFavIcon(); 267 data_.favicon = contents->GetFavIcon();
268 data_.title = contents->GetTitle(); 268 data_.title = contents->GetTitle();
269 data_.loading = contents->is_loading(); 269 data_.loading = contents->is_loading();
270 data_.off_the_record = contents->profile()->IsOffTheRecord(); 270 data_.off_the_record = contents->profile()->IsOffTheRecord();
271 data_.show_icon = contents->ShouldDisplayFavIcon(); 271 data_.show_icon = contents->ShouldDisplayFavIcon();
272 data_.show_download_icon = contents->IsDownloadShelfVisible(); 272 data_.show_download_icon = contents->IsDownloadShelfVisible();
273 data_.crashed = contents->IsCrashed(); 273 data_.crashed = contents->is_crashed();
274 } 274 }
275 275
276 void TabRenderer::UpdateFromModel() { 276 void TabRenderer::UpdateFromModel() {
277 // Force a layout, since the tab may have grown a favicon. 277 // Force a layout, since the tab may have grown a favicon.
278 Layout(); 278 Layout();
279 SchedulePaint(); 279 SchedulePaint();
280 280
281 if (data_.crashed) { 281 if (data_.crashed) {
282 if (!should_display_crashed_favicon_ && !IsPerformingCrashAnimation()) 282 if (!should_display_crashed_favicon_ && !IsPerformingCrashAnimation())
283 StartCrashAnimation(); 283 StartCrashAnimation();
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 } 682 }
683 683
684 void TabRenderer::DisplayCrashedFavIcon() { 684 void TabRenderer::DisplayCrashedFavIcon() {
685 should_display_crashed_favicon_ = true; 685 should_display_crashed_favicon_ = true;
686 } 686 }
687 687
688 void TabRenderer::ResetCrashedFavIcon() { 688 void TabRenderer::ResetCrashedFavIcon() {
689 should_display_crashed_favicon_ = false; 689 should_display_crashed_favicon_ = false;
690 } 690 }
691 691
OLDNEW
« no previous file with comments | « chrome/browser/views/tabs/dragged_tab_controller.cc ('k') | chrome/browser/views/tabs/tab_strip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698