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

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

Issue 2853024: Remove the bookmark menu. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 | « chrome/browser/gtk/bookmark_menu_controller_gtk.h ('k') | chrome/browser/gtk/view_id_util.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_menu_controller_gtk.h" 5 #include "chrome/browser/gtk/bookmark_menu_controller_gtk.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include "app/gtk_dnd_util.h" 9 #include "app/gtk_dnd_util.h"
10 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 g_object_unref(grab_menu); 61 g_object_unref(grab_menu);
62 } 62 }
63 63
64 } // namespace 64 } // namespace
65 65
66 BookmarkMenuController::BookmarkMenuController(Browser* browser, 66 BookmarkMenuController::BookmarkMenuController(Browser* browser,
67 Profile* profile, 67 Profile* profile,
68 PageNavigator* navigator, 68 PageNavigator* navigator,
69 GtkWindow* window, 69 GtkWindow* window,
70 const BookmarkNode* node, 70 const BookmarkNode* node,
71 int start_child_index, 71 int start_child_index)
72 bool show_other_folder)
73 : browser_(browser), 72 : browser_(browser),
74 profile_(profile), 73 profile_(profile),
75 page_navigator_(navigator), 74 page_navigator_(navigator),
76 parent_window_(window), 75 parent_window_(window),
77 model_(profile->GetBookmarkModel()), 76 model_(profile->GetBookmarkModel()),
78 node_(node), 77 node_(node),
79 drag_icon_(NULL), 78 drag_icon_(NULL),
80 ignore_button_release_(false), 79 ignore_button_release_(false),
81 triggering_widget_(NULL) { 80 triggering_widget_(NULL) {
82 menu_ = gtk_menu_new(); 81 menu_ = gtk_menu_new();
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 } 340 }
342 341
343 void BookmarkMenuController::OnMenuItemDragGet( 342 void BookmarkMenuController::OnMenuItemDragGet(
344 GtkWidget* widget, GdkDragContext* context, 343 GtkWidget* widget, GdkDragContext* context,
345 GtkSelectionData* selection_data, 344 GtkSelectionData* selection_data,
346 guint target_type, guint time) { 345 guint target_type, guint time) {
347 const BookmarkNode* node = bookmark_utils::BookmarkNodeForWidget(widget); 346 const BookmarkNode* node = bookmark_utils::BookmarkNodeForWidget(widget);
348 bookmark_utils::WriteBookmarkToSelection(node, selection_data, target_type, 347 bookmark_utils::WriteBookmarkToSelection(node, selection_data, target_type,
349 profile_); 348 profile_);
350 } 349 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/bookmark_menu_controller_gtk.h ('k') | chrome/browser/gtk/view_id_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698