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

Side by Side Diff: chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc

Issue 10696148: Move TabStripModelDelegate off Browser into its own class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 | Annotate | Revision Log
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 #include "chrome/browser/ui/gtk/tabs/tab_strip_gtk.h" 5 #include "chrome/browser/ui/gtk/tabs/tab_strip_gtk.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <string> 10 #include <string>
(...skipping 13 matching lines...) Expand all
24 #include "chrome/browser/ui/browser_navigator.h" 24 #include "chrome/browser/ui/browser_navigator.h"
25 #include "chrome/browser/ui/browser_tabstrip.h" 25 #include "chrome/browser/ui/browser_tabstrip.h"
26 #include "chrome/browser/ui/gtk/browser_window_gtk.h" 26 #include "chrome/browser/ui/gtk/browser_window_gtk.h"
27 #include "chrome/browser/ui/gtk/custom_button.h" 27 #include "chrome/browser/ui/gtk/custom_button.h"
28 #include "chrome/browser/ui/gtk/gtk_theme_service.h" 28 #include "chrome/browser/ui/gtk/gtk_theme_service.h"
29 #include "chrome/browser/ui/gtk/gtk_util.h" 29 #include "chrome/browser/ui/gtk/gtk_util.h"
30 #include "chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.h" 30 #include "chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.h"
31 #include "chrome/browser/ui/gtk/tabs/tab_strip_menu_controller.h" 31 #include "chrome/browser/ui/gtk/tabs/tab_strip_menu_controller.h"
32 #include "chrome/browser/ui/tab_contents/tab_contents.h" 32 #include "chrome/browser/ui/tab_contents/tab_contents.h"
33 #include "chrome/browser/ui/tabs/tab_strip_model.h" 33 #include "chrome/browser/ui/tabs/tab_strip_model.h"
34 #include "chrome/browser/ui/tabs/tab_strip_model_delegate.h"
34 #include "chrome/common/chrome_notification_types.h" 35 #include "chrome/common/chrome_notification_types.h"
35 #include "content/public/browser/notification_source.h" 36 #include "content/public/browser/notification_source.h"
36 #include "content/public/browser/user_metrics.h" 37 #include "content/public/browser/user_metrics.h"
37 #include "content/public/browser/web_contents.h" 38 #include "content/public/browser/web_contents.h"
38 #include "grit/generated_resources.h" 39 #include "grit/generated_resources.h"
39 #include "grit/theme_resources.h" 40 #include "grit/theme_resources.h"
40 #include "grit/theme_resources_standard.h" 41 #include "grit/theme_resources_standard.h"
41 #include "grit/ui_resources.h" 42 #include "grit/ui_resources.h"
42 #include "ui/base/animation/animation_delegate.h" 43 #include "ui/base/animation/animation_delegate.h"
43 #include "ui/base/animation/slide_animation.h" 44 #include "ui/base/animation/slide_animation.h"
(...skipping 2221 matching lines...) Expand 10 before | Expand all | Expand 10 after
2265 } 2266 }
2266 2267
2267 void TabStripGtk::SetNewTabButtonBackground() { 2268 void TabStripGtk::SetNewTabButtonBackground() {
2268 SkColor color = theme_service_->GetColor( 2269 SkColor color = theme_service_->GetColor(
2269 ThemeService::COLOR_BUTTON_BACKGROUND); 2270 ThemeService::COLOR_BUTTON_BACKGROUND);
2270 SkBitmap* background = theme_service_->GetBitmapNamed( 2271 SkBitmap* background = theme_service_->GetBitmapNamed(
2271 IDR_THEME_WINDOW_CONTROL_BACKGROUND); 2272 IDR_THEME_WINDOW_CONTROL_BACKGROUND);
2272 SkBitmap* mask = theme_service_->GetBitmapNamed(IDR_NEWTAB_BUTTON_MASK); 2273 SkBitmap* mask = theme_service_->GetBitmapNamed(IDR_NEWTAB_BUTTON_MASK);
2273 newtab_button_->SetBackground(color, background, mask); 2274 newtab_button_->SetBackground(color, background, mask);
2274 } 2275 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.cc ('k') | chrome/browser/ui/startup/startup_browser_creator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698