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

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

Issue 8775029: Makes gtk show the 'mobile' bookmark folder where appropriate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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) 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/ui/gtk/browser_toolbar_gtk.h" 5 #include "chrome/browser/ui/gtk/browser_toolbar_gtk.h"
6 6
7 #include <X11/XF86keysym.h> 7 #include <X11/XF86keysym.h>
8 #include <gdk/gdkkeysyms.h> 8 #include <gdk/gdkkeysyms.h>
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
11 #include "base/base_paths.h" 11 #include "base/base_paths.h"
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/i18n/rtl.h" 13 #include "base/i18n/rtl.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/memory/singleton.h" 15 #include "base/memory/singleton.h"
16 #include "base/path_service.h" 16 #include "base/path_service.h"
17 #include "chrome/app/chrome_command_ids.h" 17 #include "chrome/app/chrome_command_ids.h"
18 #include "chrome/browser/net/url_fixer_upper.h" 18 #include "chrome/browser/net/url_fixer_upper.h"
19 #include "chrome/browser/prefs/pref_service.h" 19 #include "chrome/browser/prefs/pref_service.h"
20 #include "chrome/browser/profiles/profile.h" 20 #include "chrome/browser/profiles/profile.h"
21 #include "chrome/browser/themes/theme_service.h" 21 #include "chrome/browser/themes/theme_service.h"
22 #include "chrome/browser/ui/browser.h" 22 #include "chrome/browser/ui/browser.h"
23 #include "chrome/browser/ui/global_error_service.h" 23 #include "chrome/browser/ui/global_error_service.h"
24 #include "chrome/browser/ui/global_error_service_factory.h" 24 #include "chrome/browser/ui/global_error_service_factory.h"
25 #include "chrome/browser/ui/gtk/accelerators_gtk.h" 25 #include "chrome/browser/ui/gtk/accelerators_gtk.h"
26 #include "chrome/browser/ui/gtk/back_forward_button_gtk.h" 26 #include "chrome/browser/ui/gtk/back_forward_button_gtk.h"
27 #include "chrome/browser/ui/gtk/bookmark_sub_menu_model_gtk.h" 27 #include "chrome/browser/ui/gtk/bookmarks/bookmark_sub_menu_model_gtk.h"
28 #include "chrome/browser/ui/gtk/browser_actions_toolbar_gtk.h" 28 #include "chrome/browser/ui/gtk/browser_actions_toolbar_gtk.h"
29 #include "chrome/browser/ui/gtk/browser_window_gtk.h" 29 #include "chrome/browser/ui/gtk/browser_window_gtk.h"
30 #include "chrome/browser/ui/gtk/cairo_cached_surface.h" 30 #include "chrome/browser/ui/gtk/cairo_cached_surface.h"
31 #include "chrome/browser/ui/gtk/custom_button.h" 31 #include "chrome/browser/ui/gtk/custom_button.h"
32 #include "chrome/browser/ui/gtk/gtk_chrome_button.h" 32 #include "chrome/browser/ui/gtk/gtk_chrome_button.h"
33 #include "chrome/browser/ui/gtk/gtk_theme_service.h" 33 #include "chrome/browser/ui/gtk/gtk_theme_service.h"
34 #include "chrome/browser/ui/gtk/gtk_util.h" 34 #include "chrome/browser/ui/gtk/gtk_util.h"
35 #include "chrome/browser/ui/gtk/location_bar_view_gtk.h" 35 #include "chrome/browser/ui/gtk/location_bar_view_gtk.h"
36 #include "chrome/browser/ui/gtk/reload_button_gtk.h" 36 #include "chrome/browser/ui/gtk/reload_button_gtk.h"
37 #include "chrome/browser/ui/gtk/rounded_window.h" 37 #include "chrome/browser/ui/gtk/rounded_window.h"
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 const SkBitmap* badge = theme_service_->GetBitmapNamed(resource_id); 669 const SkBitmap* badge = theme_service_->GetBitmapNamed(resource_id);
670 gfx::CanvasSkiaPaint canvas(expose, false); 670 gfx::CanvasSkiaPaint canvas(expose, false);
671 int x_offset = base::i18n::IsRTL() ? 0 : allocation.width - badge->width(); 671 int x_offset = base::i18n::IsRTL() ? 0 : allocation.width - badge->width();
672 int y_offset = 0; 672 int y_offset = 0;
673 canvas.DrawBitmapInt(*badge, 673 canvas.DrawBitmapInt(*badge,
674 allocation.x + x_offset, 674 allocation.x + x_offset,
675 allocation.y + y_offset); 675 allocation.y + y_offset);
676 676
677 return FALSE; 677 return FALSE;
678 } 678 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/bookmarks/bookmark_sub_menu_model_gtk.cc ('k') | chrome/browser/ui/toolbar/bookmark_sub_menu_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698