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/gtk/tabs/tab_strip_gtk.cc

Issue 3173043: Move theme files in chrome/browser/ into a themes/ subdir. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 4 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
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/gtk/tabs/tab_strip_gtk.h" 5 #include "chrome/browser/gtk/tabs/tab_strip_gtk.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "app/gtk_dnd_util.h" 9 #include "app/gtk_dnd_util.h"
10 #include "app/resource_bundle.h" 10 #include "app/resource_bundle.h"
11 #include "app/slide_animation.h" 11 #include "app/slide_animation.h"
12 #include "base/i18n/rtl.h" 12 #include "base/i18n/rtl.h"
13 #include "base/string_util.h" 13 #include "base/string_util.h"
14 #include "chrome/browser/autocomplete/autocomplete.h" 14 #include "chrome/browser/autocomplete/autocomplete.h"
15 #include "chrome/browser/browser_theme_provider.h"
16 #include "chrome/browser/gtk/browser_window_gtk.h" 15 #include "chrome/browser/gtk/browser_window_gtk.h"
17 #include "chrome/browser/gtk/custom_button.h" 16 #include "chrome/browser/gtk/custom_button.h"
18 #include "chrome/browser/gtk/gtk_theme_provider.h" 17 #include "chrome/browser/gtk/gtk_theme_provider.h"
19 #include "chrome/browser/gtk/gtk_util.h" 18 #include "chrome/browser/gtk/gtk_util.h"
20 #include "chrome/browser/gtk/tabs/dragged_tab_controller_gtk.h" 19 #include "chrome/browser/gtk/tabs/dragged_tab_controller_gtk.h"
21 #include "chrome/browser/profile.h" 20 #include "chrome/browser/profile.h"
22 #include "chrome/browser/tab_contents/tab_contents.h" 21 #include "chrome/browser/tab_contents/tab_contents.h"
22 #include "chrome/browser/themes/browser_theme_provider.h"
23 #include "chrome/common/notification_service.h" 23 #include "chrome/common/notification_service.h"
24 #include "chrome/common/notification_type.h" 24 #include "chrome/common/notification_type.h"
25 #include "gfx/gtk_util.h" 25 #include "gfx/gtk_util.h"
26 #include "gfx/point.h" 26 #include "gfx/point.h"
27 #include "grit/app_resources.h" 27 #include "grit/app_resources.h"
28 #include "grit/theme_resources.h" 28 #include "grit/theme_resources.h"
29 29
30 namespace { 30 namespace {
31 31
32 const int kDefaultAnimationDurationMs = 100; 32 const int kDefaultAnimationDurationMs = 100;
(...skipping 2000 matching lines...) Expand 10 before | Expand all | Expand 10 after
2033 2033
2034 // Let the middle mouse button initiate clicks as well. 2034 // Let the middle mouse button initiate clicks as well.
2035 gtk_util::SetButtonTriggersNavigation(button->widget()); 2035 gtk_util::SetButtonTriggersNavigation(button->widget());
2036 g_signal_connect(button->widget(), "clicked", 2036 g_signal_connect(button->widget(), "clicked",
2037 G_CALLBACK(OnNewTabClickedThunk), this); 2037 G_CALLBACK(OnNewTabClickedThunk), this);
2038 GTK_WIDGET_UNSET_FLAGS(button->widget(), GTK_CAN_FOCUS); 2038 GTK_WIDGET_UNSET_FLAGS(button->widget(), GTK_CAN_FOCUS);
2039 gtk_fixed_put(GTK_FIXED(tabstrip_.get()), button->widget(), 0, 0); 2039 gtk_fixed_put(GTK_FIXED(tabstrip_.get()), button->widget(), 0, 0);
2040 2040
2041 return button; 2041 return button;
2042 } 2042 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698