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

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

Issue 125109: Refactor the PlatformContext layer to have only one class. (Closed)
Patch Set: Created 11 years, 6 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "app/gfx/canvas.h" 7 #include "app/gfx/canvas_paint.h"
8 #include "app/l10n_util.h" 8 #include "app/l10n_util.h"
9 #include "app/resource_bundle.h" 9 #include "app/resource_bundle.h"
10 #include "app/slide_animation.h" 10 #include "app/slide_animation.h"
11 #include "base/gfx/gtk_util.h" 11 #include "base/gfx/gtk_util.h"
12 #include "base/gfx/point.h" 12 #include "base/gfx/point.h"
13 #include "chrome/browser/browser.h" 13 #include "chrome/browser/browser.h"
14 #include "chrome/browser/browser_theme_provider.h" 14 #include "chrome/browser/browser_theme_provider.h"
15 #include "chrome/browser/gtk/custom_button.h" 15 #include "chrome/browser/gtk/custom_button.h"
16 #include "chrome/browser/gtk/dnd_registry.h" 16 #include "chrome/browser/gtk/dnd_registry.h"
17 #include "chrome/browser/gtk/tabs/dragged_tab_controller_gtk.h" 17 #include "chrome/browser/gtk/tabs/dragged_tab_controller_gtk.h"
(...skipping 1527 matching lines...) Expand 10 before | Expand all | Expand 10 after
1545 CustomDrawButton* button = new CustomDrawButton(IDR_NEWTAB_BUTTON, 1545 CustomDrawButton* button = new CustomDrawButton(IDR_NEWTAB_BUTTON,
1546 IDR_NEWTAB_BUTTON_P, IDR_NEWTAB_BUTTON_H, 0); 1546 IDR_NEWTAB_BUTTON_P, IDR_NEWTAB_BUTTON_H, 0);
1547 1547
1548 g_signal_connect(G_OBJECT(button->widget()), "clicked", 1548 g_signal_connect(G_OBJECT(button->widget()), "clicked",
1549 G_CALLBACK(OnNewTabClicked), this); 1549 G_CALLBACK(OnNewTabClicked), this);
1550 GTK_WIDGET_UNSET_FLAGS(button->widget(), GTK_CAN_FOCUS); 1550 GTK_WIDGET_UNSET_FLAGS(button->widget(), GTK_CAN_FOCUS);
1551 gtk_fixed_put(GTK_FIXED(tabstrip_.get()), button->widget(), 0, 0); 1551 gtk_fixed_put(GTK_FIXED(tabstrip_.get()), button->widget(), 0, 0);
1552 1552
1553 return button; 1553 return button;
1554 } 1554 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/tabs/tab_renderer_gtk.cc ('k') | chrome/browser/printing/printed_document.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698