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

Side by Side Diff: chrome/browser/ui/views/location_bar/location_icon_view.cc

Issue 2911773002: Clean up unused grit header includes in chrome/ (Closed)
Patch Set: rebase Created 3 years, 6 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
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/views/location_bar/location_icon_view.h" 5 #include "chrome/browser/ui/views/location_bar/location_icon_view.h"
6 6
7 #include "chrome/browser/ui/view_ids.h" 7 #include "chrome/browser/ui/view_ids.h"
8 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" 8 #include "chrome/browser/ui/views/location_bar/location_bar_view.h"
9 #include "chrome/browser/ui/views/page_info/page_info_bubble_view.h" 9 #include "chrome/browser/ui/views/page_info/page_info_bubble_view.h"
10 #include "chrome/grit/generated_resources.h" 10 #include "chrome/grit/generated_resources.h"
11 #include "chrome/grit/theme_resources.h"
12 #include "components/grit/components_scaled_resources.h"
13 #include "components/omnibox/browser/omnibox_edit_model.h" 11 #include "components/omnibox/browser/omnibox_edit_model.h"
14 #include "content/public/browser/web_contents.h" 12 #include "content/public/browser/web_contents.h"
15 #include "ui/accessibility/ax_node_data.h" 13 #include "ui/accessibility/ax_node_data.h"
16 #include "ui/base/l10n/l10n_util.h" 14 #include "ui/base/l10n/l10n_util.h"
17 #include "ui/views/controls/label.h" 15 #include "ui/views/controls/label.h"
18 16
19 using content::WebContents; 17 using content::WebContents;
20 18
21 LocationIconView::LocationIconView(const gfx::FontList& font_list, 19 LocationIconView::LocationIconView(const gfx::FontList& font_list,
22 LocationBarView* location_bar) 20 LocationBarView* location_bar)
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 location_bar_->SchedulePaint(); 133 location_bar_->SchedulePaint();
136 } 134 }
137 135
138 gfx::Size LocationIconView::GetMinimumSizeForPreferredSize( 136 gfx::Size LocationIconView::GetMinimumSizeForPreferredSize(
139 gfx::Size size) const { 137 gfx::Size size) const {
140 const int kMinCharacters = 10; 138 const int kMinCharacters = 10;
141 size.SetToMin( 139 size.SetToMin(
142 GetSizeForLabelWidth(font_list().GetExpectedTextWidth(kMinCharacters))); 140 GetSizeForLabelWidth(font_list().GetExpectedTextWidth(kMinCharacters)));
143 return size; 141 return size;
144 } 142 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_bar_view.cc ('k') | chrome/browser/ui/views/new_back_shortcut_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698