Chromium Code Reviews

Side by Side Diff: chrome/browser/gtk/bookmark_bubble_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.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « chrome/browser/gtk/bookmark_bar_gtk.cc ('k') | chrome/browser/gtk/bookmark_editor_gtk.cc » ('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) 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_bubble_gtk.h" 5 #include "chrome/browser/gtk/bookmark_bubble_gtk.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/i18n/rtl.h" 11 #include "base/i18n/rtl.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/message_loop.h" 13 #include "base/message_loop.h"
14 #include "base/string16.h" 14 #include "base/string16.h"
15 #include "base/utf_string_conversions.h" 15 #include "base/utf_string_conversions.h"
16 #include "chrome/browser/bookmarks/bookmark_editor.h" 16 #include "chrome/browser/bookmarks/bookmark_editor.h"
17 #include "chrome/browser/bookmarks/bookmark_model.h" 17 #include "chrome/browser/bookmarks/bookmark_model.h"
18 #include "chrome/browser/bookmarks/bookmark_utils.h" 18 #include "chrome/browser/bookmarks/bookmark_utils.h"
19 #include "chrome/browser/bookmarks/recently_used_folders_combo_model.h" 19 #include "chrome/browser/bookmarks/recently_used_folders_combo_model.h"
20 #include "chrome/browser/gtk/gtk_chrome_link_button.h" 20 #include "chrome/browser/gtk/gtk_chrome_link_button.h"
21 #include "chrome/browser/gtk/gtk_theme_provider.h" 21 #include "chrome/browser/gtk/gtk_theme_provider.h"
22 #include "chrome/browser/gtk/gtk_util.h" 22 #include "chrome/browser/gtk/gtk_util.h"
23 #include "chrome/browser/gtk/info_bubble_gtk.h" 23 #include "chrome/browser/gtk/info_bubble_gtk.h"
24 #include "chrome/browser/metrics/user_metrics.h" 24 #include "chrome/browser/metrics/user_metrics.h"
25 #include "chrome/browser/profile.h" 25 #include "chrome/browser/profiles/profile.h"
26 #include "chrome/common/notification_service.h" 26 #include "chrome/common/notification_service.h"
27 #include "grit/generated_resources.h" 27 #include "grit/generated_resources.h"
28 28
29 namespace { 29 namespace {
30 30
31 // We basically have a singleton, since a bubble is sort of app-modal. This 31 // We basically have a singleton, since a bubble is sort of app-modal. This
32 // keeps track of the currently open bubble, or NULL if none is open. 32 // keeps track of the currently open bubble, or NULL if none is open.
33 BookmarkBubbleGtk* g_bubble = NULL; 33 BookmarkBubbleGtk* g_bubble = NULL;
34 34
35 // Padding between content and edge of info bubble. 35 // Padding between content and edge of info bubble.
(...skipping 301 matching lines...)
337 // We always have nodes + 1 entries in the combo. The last entry will be 337 // We always have nodes + 1 entries in the combo. The last entry will be
338 // the 'Select another folder...' entry that opens the bookmark editor. 338 // the 'Select another folder...' entry that opens the bookmark editor.
339 for (int i = 0; i < folder_combo_model_->GetItemCount(); ++i) { 339 for (int i = 0; i < folder_combo_model_->GetItemCount(); ++i) {
340 gtk_combo_box_append_text(GTK_COMBO_BOX(folder_combo_), 340 gtk_combo_box_append_text(GTK_COMBO_BOX(folder_combo_),
341 UTF16ToUTF8(folder_combo_model_->GetItemAt(i)).c_str()); 341 UTF16ToUTF8(folder_combo_model_->GetItemAt(i)).c_str());
342 } 342 }
343 343
344 gtk_combo_box_set_active(GTK_COMBO_BOX(folder_combo_), 344 gtk_combo_box_set_active(GTK_COMBO_BOX(folder_combo_),
345 folder_combo_model_->node_parent_index()); 345 folder_combo_model_->node_parent_index());
346 } 346 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/bookmark_bar_gtk.cc ('k') | chrome/browser/gtk/bookmark_editor_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine