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

Side by Side Diff: chrome/browser/gtk/tabs/dragged_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/browser_theme_provider.cc ('k') | chrome/browser/gtk/tabs/tab_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) 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/dragged_tab_gtk.h" 5 #include "chrome/browser/gtk/tabs/dragged_tab_gtk.h"
6 6
7 #include <gdk/gdk.h> 7 #include <gdk/gdk.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
11 #include "app/gfx/canvas_paint.h" 11 #include "app/gfx/canvas_paint.h"
12 #include "base/gfx/gtk_util.h" 12 #include "base/gfx/gtk_util.h"
13 #include "chrome/browser/profile.h"
13 #include "chrome/browser/tab_contents/tab_contents.h" 14 #include "chrome/browser/tab_contents/tab_contents.h"
14 #include "chrome/browser/tabs/tab_strip_model.h" 15 #include "chrome/browser/tabs/tab_strip_model.h"
15 #include "chrome/browser/gtk/tabs/tab_renderer_gtk.h" 16 #include "chrome/browser/gtk/tabs/tab_renderer_gtk.h"
16 #include "chrome/common/gtk_util.h" 17 #include "chrome/common/gtk_util.h"
17 #include "chrome/common/x11_util.h" 18 #include "chrome/common/x11_util.h"
18 #include "third_party/skia/include/core/SkShader.h" 19 #include "third_party/skia/include/core/SkShader.h"
19 20
20 namespace { 21 namespace {
21 22
22 // The size of the dragged window frame. 23 // The size of the dragged window frame.
(...skipping 13 matching lines...) Expand all
36 37
37 } // namespace 38 } // namespace
38 39
39 //////////////////////////////////////////////////////////////////////////////// 40 ////////////////////////////////////////////////////////////////////////////////
40 // DraggedTabGtk, public: 41 // DraggedTabGtk, public:
41 42
42 DraggedTabGtk::DraggedTabGtk(TabContents* datasource, 43 DraggedTabGtk::DraggedTabGtk(TabContents* datasource,
43 const gfx::Point& mouse_tab_offset, 44 const gfx::Point& mouse_tab_offset,
44 const gfx::Size& contents_size) 45 const gfx::Size& contents_size)
45 : backing_store_(NULL), 46 : backing_store_(NULL),
46 renderer_(new TabRendererGtk), 47 renderer_(new TabRendererGtk(datasource->profile()->GetThemeProvider())),
47 attached_(false), 48 attached_(false),
48 mouse_tab_offset_(mouse_tab_offset), 49 mouse_tab_offset_(mouse_tab_offset),
49 attached_tab_size_(TabRendererGtk::GetMinimumSelectedSize()), 50 attached_tab_size_(TabRendererGtk::GetMinimumSelectedSize()),
50 contents_size_(contents_size), 51 contents_size_(contents_size),
51 close_animation_(this), 52 close_animation_(this),
52 tab_width_(0) { 53 tab_width_(0) {
53 renderer_->UpdateData(datasource, false); 54 renderer_->UpdateData(datasource, false);
54 55
55 container_ = gtk_window_new(GTK_WINDOW_POPUP); 56 container_ = gtk_window_new(GTK_WINDOW_POPUP);
56 SetContainerColorMap(); 57 SetContainerColorMap();
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 gdk_cairo_set_source_pixbuf(cr, pixbuf, 0, 0); 334 gdk_cairo_set_source_pixbuf(cr, pixbuf, 0, 0);
334 cairo_paint(cr); 335 cairo_paint(cr);
335 336
336 cairo_destroy(cr); 337 cairo_destroy(cr);
337 338
338 g_object_unref(pixbuf); 339 g_object_unref(pixbuf);
339 340
340 // We've already drawn the tab, so don't propagate the expose-event signal. 341 // We've already drawn the tab, so don't propagate the expose-event signal.
341 return TRUE; 342 return TRUE;
342 } 343 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_theme_provider.cc ('k') | chrome/browser/gtk/tabs/tab_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698