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

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

Issue 155588: GTK Themes: Tint throbbers like we tint all other buttons in the interface. (Closed)
Patch Set: Changes for tony Created 11 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
« no previous file with comments | « chrome/browser/gtk/tabs/tab_gtk.h ('k') | chrome/browser/gtk/tabs/tab_renderer_gtk.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_gtk.h" 5 #include "chrome/browser/gtk/tabs/tab_gtk.h"
6 6
7 #include "app/gfx/path.h" 7 #include "app/gfx/path.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 "chrome/browser/gtk/gtk_dnd_util.h" 10 #include "chrome/browser/gtk/gtk_dnd_util.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // is canceled. 101 // is canceled.
102 TabGtk* tab_; 102 TabGtk* tab_;
103 103
104 DISALLOW_COPY_AND_ASSIGN(ContextMenuController); 104 DISALLOW_COPY_AND_ASSIGN(ContextMenuController);
105 }; 105 };
106 106
107 /////////////////////////////////////////////////////////////////////////////// 107 ///////////////////////////////////////////////////////////////////////////////
108 // TabGtk, public: 108 // TabGtk, public:
109 109
110 TabGtk::TabGtk(TabDelegate* delegate) 110 TabGtk::TabGtk(TabDelegate* delegate)
111 : TabRendererGtk(), 111 : TabRendererGtk(delegate->GetThemeProvider()),
112 delegate_(delegate), 112 delegate_(delegate),
113 closing_(false), 113 closing_(false),
114 dragging_(false) { 114 dragging_(false) {
115 event_box_ = gtk_event_box_new(); 115 event_box_ = gtk_event_box_new();
116 g_object_ref(event_box_); 116 g_object_ref(event_box_);
117 gtk_event_box_set_visible_window(GTK_EVENT_BOX(event_box_), FALSE); 117 gtk_event_box_set_visible_window(GTK_EVENT_BOX(event_box_), FALSE);
118 gtk_drag_source_set(event_box_, GDK_BUTTON1_MASK, 118 gtk_drag_source_set(event_box_, GDK_BUTTON1_MASK,
119 NULL, 0, GDK_ACTION_MOVE); 119 NULL, 0, GDK_ACTION_MOVE);
120 GtkDndUtil::SetSourceTargetListFromCodeMask(event_box_, 120 GtkDndUtil::SetSourceTargetListFromCodeMask(event_box_,
121 GtkDndUtil::X_CHROME_TAB); 121 GtkDndUtil::X_CHROME_TAB);
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 if (!menu_controller_.get()) 295 if (!menu_controller_.get())
296 menu_controller_.reset(new ContextMenuController(this)); 296 menu_controller_.reset(new ContextMenuController(this));
297 297
298 menu_controller_->RunMenu(); 298 menu_controller_->RunMenu();
299 } 299 }
300 300
301 void TabGtk::ContextMenuClosed() { 301 void TabGtk::ContextMenuClosed() {
302 delegate()->StopAllHighlighting(); 302 delegate()->StopAllHighlighting();
303 menu_controller_.reset(); 303 menu_controller_.reset();
304 } 304 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/tabs/tab_gtk.h ('k') | chrome/browser/gtk/tabs/tab_renderer_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698