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

Side by Side Diff: chrome/browser/gtk/bookmark_utils_gtk.cc

Issue 5606002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/gtk_dnd_util.h" 7 #include "app/gtk_dnd_util.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 "base/pickle.h" 10 #include "base/pickle.h"
11 #include "base/string16.h" 11 #include "base/string16.h"
12 #include "base/string_util.h" 12 #include "base/string_util.h"
13 #include "base/utf_string_conversions.h" 13 #include "base/utf_string_conversions.h"
14 #include "chrome/browser/bookmarks/bookmark_node_data.h" 14 #include "chrome/browser/bookmarks/bookmark_node_data.h"
15 #include "chrome/browser/bookmarks/bookmark_model.h" 15 #include "chrome/browser/bookmarks/bookmark_model.h"
16 #include "chrome/browser/bookmarks/bookmark_utils.h" 16 #include "chrome/browser/bookmarks/bookmark_utils.h"
17 #include "chrome/browser/gtk/gtk_chrome_button.h" 17 #include "chrome/browser/gtk/gtk_chrome_button.h"
18 #include "chrome/browser/gtk/gtk_theme_provider.h" 18 #include "chrome/browser/gtk/gtk_theme_provider.h"
19 #include "chrome/browser/gtk/gtk_util.h" 19 #include "chrome/browser/gtk/gtk_util.h"
20 #include "chrome/browser/profile.h" 20 #include "chrome/browser/profiles/profile.h"
21 #include "gfx/canvas_skia_paint.h" 21 #include "gfx/canvas_skia_paint.h"
22 #include "gfx/font.h" 22 #include "gfx/font.h"
23 #include "gfx/gtk_util.h" 23 #include "gfx/gtk_util.h"
24 24
25 namespace { 25 namespace {
26 26
27 // Spacing between the favicon and the text. 27 // Spacing between the favicon and the text.
28 const int kBarButtonPadding = 4; 28 const int kBarButtonPadding = 4;
29 29
30 // Used in gtk_selection_data_set(). (I assume from this parameter that gtk has 30 // Used in gtk_selection_data_set(). (I assume from this parameter that gtk has
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 GURL url; 432 GURL url;
433 string16 title; 433 string16 title;
434 if (!gtk_dnd_util::ExtractNetscapeURL(selection_data, &url, &title)) 434 if (!gtk_dnd_util::ExtractNetscapeURL(selection_data, &url, &title))
435 return false; 435 return false;
436 436
437 model->AddURL(parent, idx, title, url); 437 model->AddURL(parent, idx, title, url);
438 return true; 438 return true;
439 } 439 }
440 440
441 } // namespace bookmark_utils 441 } // namespace bookmark_utils
OLDNEW
« no previous file with comments | « chrome/browser/gtk/bookmark_menu_controller_gtk.cc ('k') | chrome/browser/gtk/browser_actions_toolbar_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698