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

Side by Side Diff: chrome/browser/custom_home_pages_table_model.cc

Issue 6312156: Change includes of gfx/* to ui/gfx/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/custom_home_pages_table_model.h" 5 #include "chrome/browser/custom_home_pages_table_model.h"
6 6
7 #include "base/i18n/rtl.h" 7 #include "base/i18n/rtl.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/browser_list.h" 9 #include "chrome/browser/browser_list.h"
10 #include "chrome/browser/prefs/pref_service.h" 10 #include "chrome/browser/prefs/pref_service.h"
11 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/browser/tab_contents/tab_contents.h" 12 #include "chrome/browser/tab_contents/tab_contents.h"
13 #include "chrome/browser/ui/browser.h" 13 #include "chrome/browser/ui/browser.h"
14 #include "chrome/common/pref_names.h" 14 #include "chrome/common/pref_names.h"
15 #include "chrome/common/url_constants.h" 15 #include "chrome/common/url_constants.h"
16 #include "gfx/codec/png_codec.h"
17 #include "googleurl/src/gurl.h" 16 #include "googleurl/src/gurl.h"
18 #include "grit/app_resources.h" 17 #include "grit/app_resources.h"
19 #include "grit/generated_resources.h" 18 #include "grit/generated_resources.h"
20 #include "net/base/net_util.h" 19 #include "net/base/net_util.h"
21 #include "third_party/skia/include/core/SkBitmap.h" 20 #include "third_party/skia/include/core/SkBitmap.h"
22 #include "ui/base/l10n/l10n_util.h" 21 #include "ui/base/l10n/l10n_util.h"
23 #include "ui/base/models/table_model_observer.h" 22 #include "ui/base/models/table_model_observer.h"
24 #include "ui/base/resource/resource_bundle.h" 23 #include "ui/base/resource/resource_bundle.h"
24 #include "ui/gfx/codec/png_codec.h"
25 25
26 struct CustomHomePagesTableModel::Entry { 26 struct CustomHomePagesTableModel::Entry {
27 Entry() : title_handle(0), fav_icon_handle(0) {} 27 Entry() : title_handle(0), fav_icon_handle(0) {}
28 28
29 // URL of the page. 29 // URL of the page.
30 GURL url; 30 GURL url;
31 31
32 // Page title. If this is empty, we'll display the URL as the entry. 32 // Page title. If this is empty, we'll display the URL as the entry.
33 string16 title; 33 string16 title;
34 34
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 return NULL; 233 return NULL;
234 } 234 }
235 235
236 string16 CustomHomePagesTableModel::FormattedURL(int row) const { 236 string16 CustomHomePagesTableModel::FormattedURL(int row) const {
237 std::string languages = 237 std::string languages =
238 profile_->GetPrefs()->GetString(prefs::kAcceptLanguages); 238 profile_->GetPrefs()->GetString(prefs::kAcceptLanguages);
239 string16 url = net::FormatUrl(entries_[row].url, languages); 239 string16 url = net::FormatUrl(entries_[row].url, languages);
240 url = base::i18n::GetDisplayStringInLTRDirectionality(url); 240 url = base::i18n::GetDisplayStringInLTRDirectionality(url);
241 return url; 241 return url;
242 } 242 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/wm_overview_controller.h ('k') | chrome/browser/dom_ui/app_launcher_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698