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

Side by Side Diff: chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc

Issue 5046002: Cleanup: Include browser.h -> ui/browser.h [Part 2]. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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 | « chrome/browser/ui/views/tabs/base_tab.cc ('k') | chrome/browser/ui/views/tabs/tab_strip.cc » ('j') | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/views/tabs/browser_tab_strip_controller.h" 5 #include "chrome/browser/views/tabs/browser_tab_strip_controller.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "chrome/browser/browser.h"
10 #include "chrome/browser/profile.h" 9 #include "chrome/browser/profile.h"
11 #include "chrome/browser/metrics/user_metrics.h" 10 #include "chrome/browser/metrics/user_metrics.h"
12 #include "chrome/browser/renderer_host/render_view_host.h" 11 #include "chrome/browser/renderer_host/render_view_host.h"
13 #include "chrome/browser/tab_contents/tab_contents.h" 12 #include "chrome/browser/tab_contents/tab_contents.h"
14 #include "chrome/browser/tab_menu_model.h" 13 #include "chrome/browser/tab_menu_model.h"
15 #include "chrome/browser/tabs/tab_strip_model.h" 14 #include "chrome/browser/tabs/tab_strip_model.h"
15 #include "chrome/browser/ui/browser.h"
16 #include "chrome/browser/views/tabs/base_tab_strip.h" 16 #include "chrome/browser/views/tabs/base_tab_strip.h"
17 #include "chrome/browser/views/tabs/tab_renderer_data.h" 17 #include "chrome/browser/views/tabs/tab_renderer_data.h"
18 #include "chrome/common/chrome_switches.h" 18 #include "chrome/common/chrome_switches.h"
19 #include "chrome/common/notification_service.h" 19 #include "chrome/common/notification_service.h"
20 #include "chrome/common/url_constants.h" 20 #include "chrome/common/url_constants.h"
21 #include "views/controls/menu/menu_2.h" 21 #include "views/controls/menu/menu_2.h"
22 #include "views/widget/widget.h" 22 #include "views/widget/widget.h"
23 23
24 static TabRendererData::NetworkState TabContentsNetworkState( 24 static TabRendererData::NetworkState TabContentsNetworkState(
25 TabContents* contents) { 25 TabContents* contents) {
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 DCHECK(type.value == NotificationType::TAB_CLOSEABLE_STATE_CHANGED); 419 DCHECK(type.value == NotificationType::TAB_CLOSEABLE_STATE_CHANGED);
420 // Note that this notification may be fired during a model mutation and 420 // Note that this notification may be fired during a model mutation and
421 // possibly before the tabstrip has processed the change. 421 // possibly before the tabstrip has processed the change.
422 // Here, we just re-layout each existing tab to reflect the change in its 422 // Here, we just re-layout each existing tab to reflect the change in its
423 // closeable state, and then schedule paint for entire tabstrip. 423 // closeable state, and then schedule paint for entire tabstrip.
424 for (int i = 0; i < tabstrip_->tab_count(); ++i) { 424 for (int i = 0; i < tabstrip_->tab_count(); ++i) {
425 tabstrip_->base_tab_at_tab_index(i)->Layout(); 425 tabstrip_->base_tab_at_tab_index(i)->Layout();
426 } 426 }
427 tabstrip_->SchedulePaint(); 427 tabstrip_->SchedulePaint();
428 } 428 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/base_tab.cc ('k') | chrome/browser/ui/views/tabs/tab_strip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698