| OLD | NEW |
| 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 "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 | 6 |
| 7 #include "chrome/common/l10n_util.h" | 7 #include "chrome/common/l10n_util.h" |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| 11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
| 12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
| 13 #include "base/scoped_ptr.h" | 13 #include "base/scoped_ptr.h" |
| 14 #include "base/string16.h" | 14 #include "base/string16.h" |
| 15 #include "base/string_piece.h" | 15 #include "base/string_piece.h" |
| 16 #include "base/string_util.h" | 16 #include "base/string_util.h" |
| 17 #include "base/sys_string_conversions.h" | 17 #include "base/sys_string_conversions.h" |
| 18 #include "chrome/common/chrome_paths.h" | 18 #include "chrome/common/chrome_paths.h" |
| 19 #include "chrome/common/chrome_switches.h" | 19 #include "chrome/common/chrome_switches.h" |
| 20 #include "chrome/common/gfx/chrome_canvas.h" | 20 #include "chrome/common/gfx/chrome_canvas.h" |
| 21 #if defined(OS_WIN) || defined(OS_LINUX) | 21 #if defined(OS_WIN) || defined(OS_LINUX) |
| 22 // TODO(port): re-enable. | 22 // TODO(port): re-enable. |
| 23 #include "chrome/common/resource_bundle.h" | 23 #include "chrome/common/resource_bundle.h" |
| 24 #endif | 24 #endif |
| 25 #if defined(OS_WIN) | |
| 26 #include "chrome/views/view.h" | |
| 27 #endif // defined(OS_WIN) | |
| 28 | 25 |
| 29 // TODO(playmobil): remove this undef once SkPostConfig.h is fixed. | 26 // TODO(playmobil): remove this undef once SkPostConfig.h is fixed. |
| 30 // skia/include/corecg/SkPostConfig.h #defines strcasecmp() so we can't use | 27 // skia/include/corecg/SkPostConfig.h #defines strcasecmp() so we can't use |
| 31 // base::strcasecmp() without #undefing it here. | 28 // base::strcasecmp() without #undefing it here. |
| 32 #undef strcasecmp | 29 #undef strcasecmp |
| 33 | 30 |
| 34 namespace { | 31 namespace { |
| 35 | 32 |
| 36 // Added to the end of strings that are too big in TrucateString. | 33 // Added to the end of strings that are too big in TrucateString. |
| 37 static const wchar_t* const kElideString = L"\x2026"; | 34 static const wchar_t* const kElideString = L"\x2026"; |
| (...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 731 } | 728 } |
| 732 | 729 |
| 733 void BiDiLineIterator::GetLogicalRun(int start, | 730 void BiDiLineIterator::GetLogicalRun(int start, |
| 734 int* end, | 731 int* end, |
| 735 UBiDiLevel* level) { | 732 UBiDiLevel* level) { |
| 736 DCHECK(bidi_ != NULL); | 733 DCHECK(bidi_ != NULL); |
| 737 ubidi_getLogicalRun(bidi_, start, end, level); | 734 ubidi_getLogicalRun(bidi_, start, end, level); |
| 738 } | 735 } |
| 739 | 736 |
| 740 } | 737 } |
| OLD | NEW |