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

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

Issue 155263: Initialize dragged tab backing store to null.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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
(...skipping 21 matching lines...) Expand all
32 const SkColor kDraggedTabBorderColor = SkColorSetRGB(103, 129, 162); 32 const SkColor kDraggedTabBorderColor = SkColorSetRGB(103, 129, 162);
33 33
34 } // namespace 34 } // namespace
35 35
36 //////////////////////////////////////////////////////////////////////////////// 36 ////////////////////////////////////////////////////////////////////////////////
37 // DraggedTabGtk, public: 37 // DraggedTabGtk, public:
38 38
39 DraggedTabGtk::DraggedTabGtk(TabContents* datasource, 39 DraggedTabGtk::DraggedTabGtk(TabContents* datasource,
40 const gfx::Point& mouse_tab_offset, 40 const gfx::Point& mouse_tab_offset,
41 const gfx::Size& contents_size) 41 const gfx::Size& contents_size)
42 : renderer_(new TabRendererGtk), 42 : backing_store_(NULL),
43 renderer_(new TabRendererGtk),
43 attached_(false), 44 attached_(false),
44 mouse_tab_offset_(mouse_tab_offset), 45 mouse_tab_offset_(mouse_tab_offset),
45 attached_tab_size_(TabRendererGtk::GetMinimumSelectedSize()), 46 attached_tab_size_(TabRendererGtk::GetMinimumSelectedSize()),
46 contents_size_(contents_size), 47 contents_size_(contents_size),
47 close_animation_(this) { 48 close_animation_(this) {
48 renderer_->UpdateData(datasource, false); 49 renderer_->UpdateData(datasource, false);
49 50
50 container_ = gtk_window_new(GTK_WINDOW_POPUP); 51 container_ = gtk_window_new(GTK_WINDOW_POPUP);
51 SetContainerColorMap(); 52 SetContainerColorMap();
52 gtk_widget_set_app_paintable(container_, TRUE); 53 gtk_widget_set_app_paintable(container_, TRUE);
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 } else { 315 } else {
315 dragged_tab->SetContainerShapeMask(bmp); 316 dragged_tab->SetContainerShapeMask(bmp);
316 } 317 }
317 318
318 gfx::CanvasPaint canvas(event, false); 319 gfx::CanvasPaint canvas(event, false);
319 canvas.DrawBitmapInt(bmp, 0, 0); 320 canvas.DrawBitmapInt(bmp, 0, 0);
320 321
321 // We've already drawn the tab, so don't propagate the expose-event signal. 322 // We've already drawn the tab, so don't propagate the expose-event signal.
322 return TRUE; 323 return TRUE;
323 } 324 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698