| OLD | NEW |
| 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_bar_gtk.h" | 5 #include "chrome/browser/gtk/bookmark_bar_gtk.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 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 13 matching lines...) Expand all Loading... |
| 24 #include "chrome/browser/gtk/gtk_chrome_button.h" | 24 #include "chrome/browser/gtk/gtk_chrome_button.h" |
| 25 #include "chrome/browser/gtk/gtk_theme_provider.h" | 25 #include "chrome/browser/gtk/gtk_theme_provider.h" |
| 26 #include "chrome/browser/gtk/gtk_util.h" | 26 #include "chrome/browser/gtk/gtk_util.h" |
| 27 #include "chrome/browser/gtk/hover_controller_gtk.h" | 27 #include "chrome/browser/gtk/hover_controller_gtk.h" |
| 28 #include "chrome/browser/gtk/import_dialog_gtk.h" | 28 #include "chrome/browser/gtk/import_dialog_gtk.h" |
| 29 #include "chrome/browser/gtk/menu_gtk.h" | 29 #include "chrome/browser/gtk/menu_gtk.h" |
| 30 #include "chrome/browser/gtk/rounded_window.h" | 30 #include "chrome/browser/gtk/rounded_window.h" |
| 31 #include "chrome/browser/gtk/tabstrip_origin_provider.h" | 31 #include "chrome/browser/gtk/tabstrip_origin_provider.h" |
| 32 #include "chrome/browser/gtk/tabs/tab_strip_gtk.h" | 32 #include "chrome/browser/gtk/tabs/tab_strip_gtk.h" |
| 33 #include "chrome/browser/gtk/view_id_util.h" | 33 #include "chrome/browser/gtk/view_id_util.h" |
| 34 #include "chrome/browser/importer/importer_data_types.h" | 34 #include "chrome/common/importer_data_types.h" |
| 35 #include "chrome/browser/metrics/user_metrics.h" | 35 #include "chrome/browser/metrics/user_metrics.h" |
| 36 #include "chrome/browser/ntp_background_util.h" | 36 #include "chrome/browser/ntp_background_util.h" |
| 37 #include "chrome/browser/pref_service.h" | 37 #include "chrome/browser/pref_service.h" |
| 38 #include "chrome/browser/profile.h" | 38 #include "chrome/browser/profile.h" |
| 39 #include "chrome/browser/sync/sync_ui_util.h" | 39 #include "chrome/browser/sync/sync_ui_util.h" |
| 40 #include "chrome/browser/tab_contents/tab_contents.h" | 40 #include "chrome/browser/tab_contents/tab_contents.h" |
| 41 #include "chrome/browser/tab_contents/tab_contents_view.h" | 41 #include "chrome/browser/tab_contents/tab_contents_view.h" |
| 42 #include "chrome/common/notification_service.h" | 42 #include "chrome/common/notification_service.h" |
| 43 #include "chrome/common/pref_names.h" | 43 #include "chrome/common/pref_names.h" |
| 44 #include "gfx/canvas_paint.h" | 44 #include "gfx/canvas_paint.h" |
| (...skipping 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1352 | 1352 |
| 1353 // Find the GtkWidget* for the actual target button. | 1353 // Find the GtkWidget* for the actual target button. |
| 1354 int shift = dir == GTK_MENU_DIR_PARENT ? -1 : 1; | 1354 int shift = dir == GTK_MENU_DIR_PARENT ? -1 : 1; |
| 1355 button_idx = (button_idx + shift + folder_list.size()) % folder_list.size(); | 1355 button_idx = (button_idx + shift + folder_list.size()) % folder_list.size(); |
| 1356 PopupForButton(folder_list[button_idx]); | 1356 PopupForButton(folder_list[button_idx]); |
| 1357 } | 1357 } |
| 1358 | 1358 |
| 1359 void BookmarkBarGtk::CloseMenu() { | 1359 void BookmarkBarGtk::CloseMenu() { |
| 1360 current_context_menu_->Cancel(); | 1360 current_context_menu_->Cancel(); |
| 1361 } | 1361 } |
| OLD | NEW |