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

Side by Side Diff: chrome/browser/dom_ui/chrome_url_data_manager.cc

Issue 381009: Increase the width for 'date-container' in download.html to 110px to make roo... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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/app/resources/locale_settings_bn.xtb ('k') | chrome/browser/resources/downloads.html » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/dom_ui/chrome_url_data_manager.h" 5 #include "chrome/browser/dom_ui/chrome_url_data_manager.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
11 #include "base/singleton.h" 11 #include "base/singleton.h"
12 #include "base/string_util.h" 12 #include "base/string_util.h"
13 #include "base/thread.h" 13 #include "base/thread.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #if defined(OS_WIN)
16 #include "base/win_util.h"
17 #endif
15 #include "chrome/browser/browser_process.h" 18 #include "chrome/browser/browser_process.h"
16 #include "chrome/browser/chrome_thread.h" 19 #include "chrome/browser/chrome_thread.h"
17 #include "chrome/browser/net/chrome_url_request_context.h" 20 #include "chrome/browser/net/chrome_url_request_context.h"
18 #include "chrome/common/chrome_paths.h" 21 #include "chrome/common/chrome_paths.h"
19 #include "chrome/common/ref_counted_util.h" 22 #include "chrome/common/ref_counted_util.h"
20 #include "chrome/common/url_constants.h" 23 #include "chrome/common/url_constants.h"
21 #include "googleurl/src/url_util.h" 24 #include "googleurl/src/url_util.h"
22 #include "net/base/io_buffer.h" 25 #include "net/base/io_buffer.h"
23 #include "net/base/net_errors.h" 26 #include "net/base/net_errors.h"
24 #include "net/url_request/url_request.h" 27 #include "net/url_request/url_request.h"
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 MessageLoop* ChromeURLDataManager::DataSource::MessageLoopForRequestPath( 292 MessageLoop* ChromeURLDataManager::DataSource::MessageLoopForRequestPath(
290 const std::string& path) const { 293 const std::string& path) const {
291 return message_loop_; 294 return message_loop_;
292 } 295 }
293 296
294 // static 297 // static
295 void ChromeURLDataManager::DataSource::SetFontAndTextDirection( 298 void ChromeURLDataManager::DataSource::SetFontAndTextDirection(
296 DictionaryValue* localized_strings) { 299 DictionaryValue* localized_strings) {
297 localized_strings->SetString(L"fontfamily", 300 localized_strings->SetString(L"fontfamily",
298 l10n_util::GetString(IDS_WEB_FONT_FAMILY)); 301 l10n_util::GetString(IDS_WEB_FONT_FAMILY));
302
303 int web_font_size_id = IDS_WEB_FONT_SIZE;
304 #if defined(OS_WIN)
305 // Some fonts used for some languages changed a lot in terms of the font
306 // metric in Vista. So, we need to use different size before Vista.
307 if (win_util::GetWinVersion() < win_util::WINVERSION_VISTA)
308 web_font_size_id = IDS_WEB_FONT_SIZE_XP;
309 #endif
299 localized_strings->SetString(L"fontsize", 310 localized_strings->SetString(L"fontsize",
300 l10n_util::GetString(IDS_WEB_FONT_SIZE)); 311 l10n_util::GetString(web_font_size_id));
301 312
302 localized_strings->SetString(L"textdirection", 313 localized_strings->SetString(L"textdirection",
303 (l10n_util::GetTextDirection() == l10n_util::RIGHT_TO_LEFT) ? 314 (l10n_util::GetTextDirection() == l10n_util::RIGHT_TO_LEFT) ?
304 L"rtl" : L"ltr"); 315 L"rtl" : L"ltr");
305 } 316 }
306 317
307 // This class describes how to form chrome://net-internals/DESCRIPTION 318 // This class describes how to form chrome://net-internals/DESCRIPTION
308 // URLs, and conversely how to extract DESCRIPTION. 319 // URLs, and conversely how to extract DESCRIPTION.
309 // 320 //
310 // This needs to be passed to URLRequestViewNetInternalsJob, which lives 321 // This needs to be passed to URLRequestViewNetInternalsJob, which lives
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 net::ERR_INVALID_URL)); 445 net::ERR_INVALID_URL));
435 } 446 }
436 } 447 }
437 448
438 URLRequestChromeFileJob::URLRequestChromeFileJob(URLRequest* request, 449 URLRequestChromeFileJob::URLRequestChromeFileJob(URLRequest* request,
439 const FilePath& path) 450 const FilePath& path)
440 : URLRequestFileJob(request, path) { 451 : URLRequestFileJob(request, path) {
441 } 452 }
442 453
443 URLRequestChromeFileJob::~URLRequestChromeFileJob() { } 454 URLRequestChromeFileJob::~URLRequestChromeFileJob() { }
OLDNEW
« no previous file with comments | « chrome/app/resources/locale_settings_bn.xtb ('k') | chrome/browser/resources/downloads.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698