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

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

Issue 8769017: GTK: Move CairoCachedSurface from being owned by GtkThemeService to gfx::Image. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase for commit 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
« no previous file with comments | « chrome/browser/ui/gtk/gtk_util.cc ('k') | chrome/browser/ui/gtk/tabs/tab_renderer_gtk.h » ('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) 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/location_bar_view_gtk.h" 5 #include "chrome/browser/ui/gtk/location_bar_view_gtk.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 18 matching lines...) Expand all
29 #include "chrome/browser/profiles/profile.h" 29 #include "chrome/browser/profiles/profile.h"
30 #include "chrome/browser/search_engines/template_url.h" 30 #include "chrome/browser/search_engines/template_url.h"
31 #include "chrome/browser/search_engines/template_url_service.h" 31 #include "chrome/browser/search_engines/template_url_service.h"
32 #include "chrome/browser/search_engines/template_url_service_factory.h" 32 #include "chrome/browser/search_engines/template_url_service_factory.h"
33 #include "chrome/browser/ui/browser.h" 33 #include "chrome/browser/ui/browser.h"
34 #include "chrome/browser/ui/browser_list.h" 34 #include "chrome/browser/ui/browser_list.h"
35 #include "chrome/browser/ui/content_settings/content_setting_bubble_model.h" 35 #include "chrome/browser/ui/content_settings/content_setting_bubble_model.h"
36 #include "chrome/browser/ui/content_settings/content_setting_image_model.h" 36 #include "chrome/browser/ui/content_settings/content_setting_image_model.h"
37 #include "chrome/browser/ui/gtk/bookmarks/bookmark_bubble_gtk.h" 37 #include "chrome/browser/ui/gtk/bookmarks/bookmark_bubble_gtk.h"
38 #include "chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.h" 38 #include "chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.h"
39 #include "chrome/browser/ui/gtk/cairo_cached_surface.h"
40 #include "chrome/browser/ui/gtk/content_setting_bubble_gtk.h" 39 #include "chrome/browser/ui/gtk/content_setting_bubble_gtk.h"
41 #include "chrome/browser/ui/gtk/extensions/extension_popup_gtk.h" 40 #include "chrome/browser/ui/gtk/extensions/extension_popup_gtk.h"
42 #include "chrome/browser/ui/gtk/first_run_bubble.h" 41 #include "chrome/browser/ui/gtk/first_run_bubble.h"
43 #include "chrome/browser/ui/gtk/gtk_theme_service.h" 42 #include "chrome/browser/ui/gtk/gtk_theme_service.h"
44 #include "chrome/browser/ui/gtk/gtk_util.h" 43 #include "chrome/browser/ui/gtk/gtk_util.h"
45 #include "chrome/browser/ui/gtk/nine_box.h" 44 #include "chrome/browser/ui/gtk/nine_box.h"
46 #include "chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.h" 45 #include "chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.h"
47 #include "chrome/browser/ui/gtk/rounded_window.h" 46 #include "chrome/browser/ui/gtk/rounded_window.h"
48 #include "chrome/browser/ui/gtk/view_id_util.h" 47 #include "chrome/browser/ui/gtk/view_id_util.h"
49 #include "chrome/browser/ui/omnibox/location_bar_util.h" 48 #include "chrome/browser/ui/omnibox/location_bar_util.h"
(...skipping 1581 matching lines...) Expand 10 before | Expand all | Expand 10 after
1631 1630
1632 std::string badge_text = page_action_->GetBadgeText(tab_id); 1631 std::string badge_text = page_action_->GetBadgeText(tab_id);
1633 if (badge_text.empty()) 1632 if (badge_text.empty())
1634 return FALSE; 1633 return FALSE;
1635 1634
1636 gfx::CanvasSkiaPaint canvas(event, false); 1635 gfx::CanvasSkiaPaint canvas(event, false);
1637 gfx::Rect bounding_rect(widget->allocation); 1636 gfx::Rect bounding_rect(widget->allocation);
1638 page_action_->PaintBadge(&canvas, bounding_rect, tab_id); 1637 page_action_->PaintBadge(&canvas, bounding_rect, tab_id);
1639 return FALSE; 1638 return FALSE;
1640 } 1639 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/gtk_util.cc ('k') | chrome/browser/ui/gtk/tabs/tab_renderer_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698