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

Side by Side Diff: chrome/browser/ui/gtk/bookmark_bar_gtk.cc

Issue 6328002: Update references part 1: subdirectories of chrome/browser/ui/gtk/:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/ui/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/resource_bundle.h" 10 #include "app/resource_bundle.h"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "chrome/browser/bookmarks/bookmark_node_data.h" 12 #include "chrome/browser/bookmarks/bookmark_node_data.h"
13 #include "chrome/browser/bookmarks/bookmark_model.h" 13 #include "chrome/browser/bookmarks/bookmark_model.h"
14 #include "chrome/browser/bookmarks/bookmark_utils.h" 14 #include "chrome/browser/bookmarks/bookmark_utils.h"
15 #include "chrome/browser/browser_shutdown.h" 15 #include "chrome/browser/browser_shutdown.h"
16 #include "chrome/browser/gtk/bookmark_menu_controller_gtk.h"
17 #include "chrome/browser/gtk/bookmark_tree_model.h"
18 #include "chrome/browser/gtk/bookmark_utils_gtk.h"
19 #include "chrome/browser/gtk/browser_window_gtk.h"
20 #include "chrome/browser/gtk/cairo_cached_surface.h"
21 #include "chrome/browser/gtk/custom_button.h"
22 #include "chrome/browser/gtk/gtk_chrome_button.h"
23 #include "chrome/browser/gtk/gtk_theme_provider.h"
24 #include "chrome/browser/gtk/gtk_util.h"
25 #include "chrome/browser/gtk/hover_controller_gtk.h"
26 #include "chrome/browser/gtk/import_dialog_gtk.h"
27 #include "chrome/browser/gtk/menu_gtk.h"
28 #include "chrome/browser/gtk/rounded_window.h"
29 #include "chrome/browser/gtk/tabstrip_origin_provider.h"
30 #include "chrome/browser/gtk/tabs/tab_strip_gtk.h"
31 #include "chrome/browser/gtk/view_id_util.h"
32 #include "chrome/browser/importer/importer_data_types.h" 16 #include "chrome/browser/importer/importer_data_types.h"
33 #include "chrome/browser/metrics/user_metrics.h" 17 #include "chrome/browser/metrics/user_metrics.h"
34 #include "chrome/browser/ntp_background_util.h" 18 #include "chrome/browser/ntp_background_util.h"
35 #include "chrome/browser/prefs/pref_service.h" 19 #include "chrome/browser/prefs/pref_service.h"
36 #include "chrome/browser/profiles/profile.h" 20 #include "chrome/browser/profiles/profile.h"
37 #include "chrome/browser/sync/sync_ui_util.h" 21 #include "chrome/browser/sync/sync_ui_util.h"
38 #include "chrome/browser/tab_contents/tab_contents.h" 22 #include "chrome/browser/tab_contents/tab_contents.h"
39 #include "chrome/browser/tab_contents/tab_contents_view.h" 23 #include "chrome/browser/tab_contents/tab_contents_view.h"
40 #include "chrome/browser/ui/browser.h" 24 #include "chrome/browser/ui/browser.h"
25 #include "chrome/browser/ui/gtk/bookmark_menu_controller_gtk.h"
26 #include "chrome/browser/ui/gtk/bookmark_tree_model.h"
27 #include "chrome/browser/ui/gtk/bookmark_utils_gtk.h"
28 #include "chrome/browser/ui/gtk/browser_window_gtk.h"
29 #include "chrome/browser/ui/gtk/cairo_cached_surface.h"
30 #include "chrome/browser/ui/gtk/custom_button.h"
31 #include "chrome/browser/ui/gtk/gtk_chrome_button.h"
32 #include "chrome/browser/ui/gtk/gtk_theme_provider.h"
33 #include "chrome/browser/ui/gtk/gtk_util.h"
34 #include "chrome/browser/ui/gtk/hover_controller_gtk.h"
35 #include "chrome/browser/ui/gtk/import_dialog_gtk.h"
36 #include "chrome/browser/ui/gtk/menu_gtk.h"
37 #include "chrome/browser/ui/gtk/rounded_window.h"
38 #include "chrome/browser/ui/gtk/tabs/tab_strip_gtk.h"
39 #include "chrome/browser/ui/gtk/tabstrip_origin_provider.h"
40 #include "chrome/browser/ui/gtk/view_id_util.h"
41 #include "chrome/common/notification_service.h" 41 #include "chrome/common/notification_service.h"
42 #include "chrome/common/pref_names.h" 42 #include "chrome/common/pref_names.h"
43 #include "gfx/canvas_skia_paint.h" 43 #include "gfx/canvas_skia_paint.h"
44 #include "gfx/gtk_util.h" 44 #include "gfx/gtk_util.h"
45 #include "grit/app_resources.h" 45 #include "grit/app_resources.h"
46 #include "grit/generated_resources.h" 46 #include "grit/generated_resources.h"
47 #include "grit/theme_resources.h" 47 #include "grit/theme_resources.h"
48 #include "ui/base/animation/slide_animation.h" 48 #include "ui/base/animation/slide_animation.h"
49 49
50 namespace { 50 namespace {
(...skipping 1358 matching lines...) Expand 10 before | Expand all | Expand 10 after
1409 1409
1410 // Find the GtkWidget* for the actual target button. 1410 // Find the GtkWidget* for the actual target button.
1411 int shift = dir == GTK_MENU_DIR_PARENT ? -1 : 1; 1411 int shift = dir == GTK_MENU_DIR_PARENT ? -1 : 1;
1412 button_idx = (button_idx + shift + folder_list.size()) % folder_list.size(); 1412 button_idx = (button_idx + shift + folder_list.size()) % folder_list.size();
1413 PopupForButton(folder_list[button_idx]); 1413 PopupForButton(folder_list[button_idx]);
1414 } 1414 }
1415 1415
1416 void BookmarkBarGtk::CloseMenu() { 1416 void BookmarkBarGtk::CloseMenu() {
1417 current_context_menu_->Cancel(); 1417 current_context_menu_->Cancel();
1418 } 1418 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698