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

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

Issue 10756018: Merge grd files in ui/resources and chrome/app/theme (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, *_standard.rc Created 8 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/ui/gtk/browser_titlebar.cc ('k') | chrome/browser/ui/gtk/browser_window_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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <gdk/gdkkeysyms.h> 7 #include <gdk/gdkkeysyms.h>
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #include <X11/XF86keysym.h> 9 #include <X11/XF86keysym.h>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 #include "chrome/common/pref_names.h" 45 #include "chrome/common/pref_names.h"
46 #include "chrome/common/url_constants.h" 46 #include "chrome/common/url_constants.h"
47 #include "content/public/browser/host_zoom_map.h" 47 #include "content/public/browser/host_zoom_map.h"
48 #include "content/public/browser/notification_details.h" 48 #include "content/public/browser/notification_details.h"
49 #include "content/public/browser/notification_service.h" 49 #include "content/public/browser/notification_service.h"
50 #include "content/public/browser/user_metrics.h" 50 #include "content/public/browser/user_metrics.h"
51 #include "content/public/browser/web_contents.h" 51 #include "content/public/browser/web_contents.h"
52 #include "grit/chromium_strings.h" 52 #include "grit/chromium_strings.h"
53 #include "grit/generated_resources.h" 53 #include "grit/generated_resources.h"
54 #include "grit/theme_resources.h" 54 #include "grit/theme_resources.h"
55 #include "grit/theme_resources_standard.h"
56 #include "ui/base/accelerators/accelerator_gtk.h" 55 #include "ui/base/accelerators/accelerator_gtk.h"
57 #include "ui/base/dragdrop/gtk_dnd_util.h" 56 #include "ui/base/dragdrop/gtk_dnd_util.h"
58 #include "ui/base/l10n/l10n_util.h" 57 #include "ui/base/l10n/l10n_util.h"
59 #include "ui/base/resource/resource_bundle.h" 58 #include "ui/base/resource/resource_bundle.h"
60 #include "ui/gfx/canvas_skia_paint.h" 59 #include "ui/gfx/canvas_skia_paint.h"
61 #include "ui/gfx/gtk_util.h" 60 #include "ui/gfx/gtk_util.h"
62 #include "ui/gfx/image/cairo_cached_surface.h" 61 #include "ui/gfx/image/cairo_cached_surface.h"
63 #include "ui/gfx/skbitmap_operations.h" 62 #include "ui/gfx/skbitmap_operations.h"
64 63
65 using content::HostZoomMap; 64 using content::HostZoomMap;
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 const SkBitmap* badge = theme_service_->GetBitmapNamed(resource_id); 686 const SkBitmap* badge = theme_service_->GetBitmapNamed(resource_id);
688 gfx::CanvasSkiaPaint canvas(expose, false); 687 gfx::CanvasSkiaPaint canvas(expose, false);
689 int x_offset = base::i18n::IsRTL() ? 0 : allocation.width - badge->width(); 688 int x_offset = base::i18n::IsRTL() ? 0 : allocation.width - badge->width();
690 int y_offset = 0; 689 int y_offset = 0;
691 canvas.DrawImageInt(*badge, 690 canvas.DrawImageInt(*badge,
692 allocation.x + x_offset, 691 allocation.x + x_offset,
693 allocation.y + y_offset); 692 allocation.y + y_offset);
694 693
695 return FALSE; 694 return FALSE;
696 } 695 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/browser_titlebar.cc ('k') | chrome/browser/ui/gtk/browser_window_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698