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

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

Issue 5582002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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/gtk/tabs/tab_gtk.cc ('k') | chrome/browser/gtk/view_id_util.h » ('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/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/animation_delegate.h" 9 #include "app/animation_delegate.h"
10 #include "app/gtk_dnd_util.h" 10 #include "app/gtk_dnd_util.h"
11 #include "app/resource_bundle.h" 11 #include "app/resource_bundle.h"
12 #include "app/slide_animation.h" 12 #include "app/slide_animation.h"
13 #include "base/i18n/rtl.h" 13 #include "base/i18n/rtl.h"
14 #include "base/string_util.h" 14 #include "base/string_util.h"
15 #include "chrome/browser/autocomplete/autocomplete.h" 15 #include "chrome/browser/autocomplete/autocomplete.h"
16 #include "chrome/browser/gtk/browser_window_gtk.h" 16 #include "chrome/browser/gtk/browser_window_gtk.h"
17 #include "chrome/browser/gtk/custom_button.h" 17 #include "chrome/browser/gtk/custom_button.h"
18 #include "chrome/browser/gtk/gtk_theme_provider.h" 18 #include "chrome/browser/gtk/gtk_theme_provider.h"
19 #include "chrome/browser/gtk/gtk_util.h" 19 #include "chrome/browser/gtk/gtk_util.h"
20 #include "chrome/browser/gtk/tabs/dragged_tab_controller_gtk.h" 20 #include "chrome/browser/gtk/tabs/dragged_tab_controller_gtk.h"
21 #include "chrome/browser/profile.h" 21 #include "chrome/browser/profile.h"
22 #include "chrome/browser/tab_contents/tab_contents.h" 22 #include "chrome/browser/tab_contents/tab_contents.h"
23 #include "chrome/browser/tab_contents_wrapper.h"
24 #include "chrome/browser/tabs/tab_strip_model_delegate.h" 23 #include "chrome/browser/tabs/tab_strip_model_delegate.h"
25 #include "chrome/browser/themes/browser_theme_provider.h" 24 #include "chrome/browser/themes/browser_theme_provider.h"
26 #include "chrome/browser/ui/browser.h" 25 #include "chrome/browser/ui/browser.h"
27 #include "chrome/browser/ui/browser_navigator.h" 26 #include "chrome/browser/ui/browser_navigator.h"
27 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
28 #include "chrome/common/notification_service.h" 28 #include "chrome/common/notification_service.h"
29 #include "chrome/common/notification_type.h" 29 #include "chrome/common/notification_type.h"
30 #include "gfx/gtk_util.h" 30 #include "gfx/gtk_util.h"
31 #include "gfx/point.h" 31 #include "gfx/point.h"
32 #include "grit/app_resources.h" 32 #include "grit/app_resources.h"
33 #include "grit/theme_resources.h" 33 #include "grit/theme_resources.h"
34 34
35 namespace { 35 namespace {
36 36
37 const int kDefaultAnimationDurationMs = 100; 37 const int kDefaultAnimationDurationMs = 100;
(...skipping 1992 matching lines...) Expand 10 before | Expand all | Expand 10 after
2030 2030
2031 // Let the middle mouse button initiate clicks as well. 2031 // Let the middle mouse button initiate clicks as well.
2032 gtk_util::SetButtonTriggersNavigation(button->widget()); 2032 gtk_util::SetButtonTriggersNavigation(button->widget());
2033 g_signal_connect(button->widget(), "clicked", 2033 g_signal_connect(button->widget(), "clicked",
2034 G_CALLBACK(OnNewTabClickedThunk), this); 2034 G_CALLBACK(OnNewTabClickedThunk), this);
2035 GTK_WIDGET_UNSET_FLAGS(button->widget(), GTK_CAN_FOCUS); 2035 GTK_WIDGET_UNSET_FLAGS(button->widget(), GTK_CAN_FOCUS);
2036 gtk_fixed_put(GTK_FIXED(tabstrip_.get()), button->widget(), 0, 0); 2036 gtk_fixed_put(GTK_FIXED(tabstrip_.get()), button->widget(), 0, 0);
2037 2037
2038 return button; 2038 return button;
2039 } 2039 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/tabs/tab_gtk.cc ('k') | chrome/browser/gtk/view_id_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698