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

Side by Side Diff: chrome/common/gtk_util.cc

Issue 65012: Move skia to DEPS, and put it in third_party. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 | « chrome/browser/webdata/web_database_unittest.cc ('k') | chrome/common/render_messages.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/common/gtk_util.h" 5 #include "chrome/common/gtk_util.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include "base/linux_util.h" 9 #include "base/linux_util.h"
10 #include "skia/include/SkBitmap.h" 10 #include "third_party/skia/include/core/SkBitmap.h"
11 11
12 namespace { 12 namespace {
13 13
14 // Callback used in RemoveAllChildren. 14 // Callback used in RemoveAllChildren.
15 void RemoveWidget(GtkWidget* widget, gpointer container) { 15 void RemoveWidget(GtkWidget* widget, gpointer container) {
16 gtk_container_remove(GTK_CONTAINER(container), widget); 16 gtk_container_remove(GTK_CONTAINER(container), widget);
17 } 17 }
18 18
19 void FreePixels(guchar* pixels, gpointer data) { 19 void FreePixels(guchar* pixels, gpointer data) {
20 free(data); 20 free(data);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 gtk_container_add(GTK_CONTAINER(alignment), child); 72 gtk_container_add(GTK_CONTAINER(alignment), child);
73 gtk_container_add(GTK_CONTAINER(ebox), alignment); 73 gtk_container_add(GTK_CONTAINER(ebox), alignment);
74 return ebox; 74 return ebox;
75 } 75 }
76 76
77 void RemoveAllChildren(GtkWidget* container) { 77 void RemoveAllChildren(GtkWidget* container) {
78 gtk_container_foreach(GTK_CONTAINER(container), RemoveWidget, container); 78 gtk_container_foreach(GTK_CONTAINER(container), RemoveWidget, container);
79 } 79 }
80 80
81 } // namespace gfx 81 } // namespace gfx
OLDNEW
« no previous file with comments | « chrome/browser/webdata/web_database_unittest.cc ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698