OLD | NEW |
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/bookmark_utils_gtk.h" | 5 #include "chrome/browser/gtk/bookmark_utils_gtk.h" |
6 | 6 |
7 #include "app/resource_bundle.h" | 7 #include "app/resource_bundle.h" |
8 #include "base/gfx/gtk_util.h" | 8 #include "base/gfx/gtk_util.h" |
9 #include "base/pickle.h" | 9 #include "base/pickle.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 void* AsVoid(const BookmarkNode* node) { | 40 void* AsVoid(const BookmarkNode* node) { |
41 return const_cast<BookmarkNode*>(node); | 41 return const_cast<BookmarkNode*>(node); |
42 } | 42 } |
43 | 43 |
44 } // namespace | 44 } // namespace |
45 | 45 |
46 namespace bookmark_utils { | 46 namespace bookmark_utils { |
47 | 47 |
48 const char kBookmarkNode[] = "bookmark-node"; | 48 const char kBookmarkNode[] = "bookmark-node"; |
49 | 49 |
50 const int kBarButtonPadding = 2; | 50 const int kBarButtonPadding = 4; |
51 | 51 |
52 GdkPixbuf* GetFolderIcon() { | 52 GdkPixbuf* GetFolderIcon() { |
53 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); | 53 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); |
54 static GdkPixbuf* default_folder_icon = rb.GetPixbufNamed( | 54 static GdkPixbuf* default_folder_icon = rb.GetPixbufNamed( |
55 IDR_BOOKMARK_BAR_FOLDER); | 55 IDR_BOOKMARK_BAR_FOLDER); |
56 return default_folder_icon; | 56 return default_folder_icon; |
57 } | 57 } |
58 | 58 |
59 GdkPixbuf* GetDefaultFavicon() { | 59 GdkPixbuf* GetDefaultFavicon() { |
60 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); | 60 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 default: { | 210 default: { |
211 DLOG(ERROR) << "Unsupported drag received type: " << target_type; | 211 DLOG(ERROR) << "Unsupported drag received type: " << target_type; |
212 } | 212 } |
213 } | 213 } |
214 } | 214 } |
215 | 215 |
216 return std::vector<const BookmarkNode*>(); | 216 return std::vector<const BookmarkNode*>(); |
217 } | 217 } |
218 | 218 |
219 } // namespace bookmark_utils | 219 } // namespace bookmark_utils |
OLD | NEW |