OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |