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

Side by Side Diff: chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc

Issue 3145014: Include ICU headers in a way that will also work with use_system_icu=1 (Closed)
Patch Set: rebase Created 10 years, 4 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) 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/views/autocomplete/autocomplete_popup_contents_view.h" 5 #include "chrome/browser/views/autocomplete/autocomplete_popup_contents_view.h"
6 6
7 #include "unicode/ubidi.h"
8
7 #include "app/bidi_line_iterator.h" 9 #include "app/bidi_line_iterator.h"
8 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
9 #include "app/resource_bundle.h" 11 #include "app/resource_bundle.h"
10 #include "app/theme_provider.h" 12 #include "app/theme_provider.h"
11 #include "app/text_elider.h" 13 #include "app/text_elider.h"
12 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
13 #include "base/i18n/rtl.h" 15 #include "base/i18n/rtl.h"
14 #include "chrome/browser/autocomplete/autocomplete_edit_view.h" 16 #include "chrome/browser/autocomplete/autocomplete_edit_view.h"
15 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" 17 #include "chrome/browser/autocomplete/autocomplete_popup_model.h"
16 #include "chrome/browser/views/bubble_border.h" 18 #include "chrome/browser/views/bubble_border.h"
17 #include "chrome/browser/views/location_bar/location_bar_view.h" 19 #include "chrome/browser/views/location_bar/location_bar_view.h"
18 #include "gfx/canvas_skia.h" 20 #include "gfx/canvas_skia.h"
19 #include "gfx/color_utils.h" 21 #include "gfx/color_utils.h"
20 #include "gfx/insets.h" 22 #include "gfx/insets.h"
21 #include "gfx/path.h" 23 #include "gfx/path.h"
22 #include "grit/generated_resources.h" 24 #include "grit/generated_resources.h"
23 #include "grit/theme_resources.h" 25 #include "grit/theme_resources.h"
24 #include "third_party/skia/include/core/SkShader.h" 26 #include "third_party/skia/include/core/SkShader.h"
25 #include "third_party/icu/public/common/unicode/ubidi.h"
26 #include "views/widget/widget.h" 27 #include "views/widget/widget.h"
27 28
28 #if defined(OS_WIN) 29 #if defined(OS_WIN)
29 #include <objidl.h> 30 #include <objidl.h>
30 #include <commctrl.h> 31 #include <commctrl.h>
31 #include <dwmapi.h> 32 #include <dwmapi.h>
32 33
33 #include "app/win_util.h" 34 #include "app/win_util.h"
34 #endif 35 #endif
35 36
(...skipping 966 matching lines...) Expand 10 before | Expand all | Expand 10 after
1002 // bubble appear at the same height as the Star bubble. 1003 // bubble appear at the same height as the Star bubble.
1003 location_bar_bounds.Inset(LocationBarView::kNormalHorizontalEdgeThickness, 1004 location_bar_bounds.Inset(LocationBarView::kNormalHorizontalEdgeThickness,
1004 0); 1005 0);
1005 } 1006 }
1006 gfx::Point location_bar_origin(location_bar_bounds.origin()); 1007 gfx::Point location_bar_origin(location_bar_bounds.origin());
1007 views::View::ConvertPointToScreen(location_bar_, &location_bar_origin); 1008 views::View::ConvertPointToScreen(location_bar_, &location_bar_origin);
1008 location_bar_bounds.set_origin(location_bar_origin); 1009 location_bar_bounds.set_origin(location_bar_origin);
1009 return bubble_border_->GetBounds( 1010 return bubble_border_->GetBounds(
1010 location_bar_bounds, gfx::Size(location_bar_bounds.width(), h)); 1011 location_bar_bounds, gfx::Size(location_bar_bounds.width(), h));
1011 } 1012 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/input_method/input_method_util.cc ('k') | chrome/renderer/spellchecker/spellcheck_worditerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698