diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-14 05:34:18 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-14 05:34:18 +0000 |
commit | caa55f3e114021dccc1935ed6fbac6247dca3eb7 (patch) | |
tree | e3b0329230db60169b04c705d79f43f096057aab /views | |
parent | 4cc5a8747adf8327ba0df645237c1d5f52690caf (diff) | |
download | chromium_src-caa55f3e114021dccc1935ed6fbac6247dca3eb7.zip chromium_src-caa55f3e114021dccc1935ed6fbac6247dca3eb7.tar.gz chromium_src-caa55f3e114021dccc1935ed6fbac6247dca3eb7.tar.bz2 |
chromeos: string_util.h -> utf_string_conversions.h fix.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/851010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41539 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r-- | views/controls/button/native_button_gtk.cc | 8 | ||||
-rw-r--r-- | views/controls/combobox/native_combobox_gtk.cc | 6 | ||||
-rw-r--r-- | views/controls/menu/native_menu_gtk.cc | 3 | ||||
-rw-r--r-- | views/controls/tabbed_pane/native_tabbed_pane_gtk.cc | 2 | ||||
-rw-r--r-- | views/controls/table/native_table_gtk.cc | 10 | ||||
-rw-r--r-- | views/controls/table/table_view_unittest.cc | 1 | ||||
-rw-r--r-- | views/controls/textfield/native_textfield_gtk.cc | 3 | ||||
-rw-r--r-- | views/widget/drop_target_gtk.cc | 4 | ||||
-rw-r--r-- | views/widget/tooltip_manager_gtk.cc | 3 | ||||
-rw-r--r-- | views/widget/widget_gtk.cc | 27 | ||||
-rw-r--r-- | views/window/window_gtk.cc | 1 |
11 files changed, 42 insertions, 26 deletions
diff --git a/views/controls/button/native_button_gtk.cc b/views/controls/button/native_button_gtk.cc index c42bfbf..1fc7fac 100644 --- a/views/controls/button/native_button_gtk.cc +++ b/views/controls/button/native_button_gtk.cc @@ -1,13 +1,15 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this +// Copyright (c) 2010 The Chromium Authors. All rights reserved. Use of this // source code is governed by a BSD-style license that can be found in the // LICENSE file. +#include "views/controls/button/native_button_gtk.h" + #include <gtk/gtk.h> -#include "views/controls/button/native_button_gtk.h" +#include <vector> #include "base/logging.h" -#include "base/string_util.h" +#include "base/utf_string_conversions.h" #include "views/controls/button/checkbox.h" #include "views/controls/button/native_button.h" #include "views/controls/button/radio_button.h" diff --git a/views/controls/combobox/native_combobox_gtk.cc b/views/controls/combobox/native_combobox_gtk.cc index 581fea3..fd0526a 100644 --- a/views/controls/combobox/native_combobox_gtk.cc +++ b/views/controls/combobox/native_combobox_gtk.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this +// Copyright (c) 2010 The Chromium Authors. All rights reserved. Use of this // source code is governed by a BSD-style license that can be found in the // LICENSE file. @@ -6,9 +6,11 @@ #include <gtk/gtk.h> +#include <algorithm> + #include "app/combobox_model.h" #include "base/logging.h" -#include "base/string_util.h" +#include "base/utf_string_conversions.h" #include "views/controls/combobox/combobox.h" namespace views { diff --git a/views/controls/menu/native_menu_gtk.cc b/views/controls/menu/native_menu_gtk.cc index 138709b..b222229 100644 --- a/views/controls/menu/native_menu_gtk.cc +++ b/views/controls/menu/native_menu_gtk.cc @@ -4,6 +4,7 @@ #include "views/controls/menu/native_menu_gtk.h" +#include <algorithm> #include <map> #include <string> @@ -14,8 +15,8 @@ #include "base/keyboard_code_conversion_gtk.h" #include "base/keyboard_codes.h" #include "base/message_loop.h" -#include "base/string_util.h" #include "base/time.h" +#include "base/utf_string_conversions.h" #include "third_party/skia/include/core/SkBitmap.h" #include "views/accelerator.h" #include "views/controls/menu/menu_2.h" diff --git a/views/controls/tabbed_pane/native_tabbed_pane_gtk.cc b/views/controls/tabbed_pane/native_tabbed_pane_gtk.cc index ffdeb5e..0d20c03 100644 --- a/views/controls/tabbed_pane/native_tabbed_pane_gtk.cc +++ b/views/controls/tabbed_pane/native_tabbed_pane_gtk.cc @@ -12,7 +12,7 @@ #include "app/resource_bundle.h" #include "base/logging.h" #include "base/stl_util-inl.h" -#include "base/string_util.h" +#include "base/utf_string_conversions.h" #include "views/background.h" #include "views/controls/tabbed_pane/tabbed_pane.h" #include "views/fill_layout.h" diff --git a/views/controls/table/native_table_gtk.cc b/views/controls/table/native_table_gtk.cc index ebacb22..ca8813b 100644 --- a/views/controls/table/native_table_gtk.cc +++ b/views/controls/table/native_table_gtk.cc @@ -1,11 +1,13 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this +// Copyright (c) 2010 The Chromium Authors. All rights reserved. Use of this // source code is governed by a BSD-style license that can be found in the // LICENSE file. #include "views/controls/table/native_table_gtk.h" +#include <string> + #include "app/gfx/gtk_util.h" -#include "base/string_util.h" +#include "base/utf_string_conversions.h" #include "third_party/skia/include/core/SkBitmap.h" #include "views/controls/table/table_view2.h" #include "views/controls/table/table_view_observer.h" @@ -270,8 +272,8 @@ void NativeTableGtk::InsertIconAndTextColumn(const TableColumn& column, int index) { // If necessary we could support more than 1 icon and text column and we could // make it so it does not have to be the 1st column. - DCHECK(index == 0) << "The icon and text column can only be the first column " - "at this point."; + DCHECK_EQ(0, index) << "The icon and text column can only be the first column" + " at this point."; GtkTreeViewColumn* gtk_column = gtk_tree_view_column_new(); gtk_tree_view_column_set_title(gtk_column, WideToUTF8(column.title).c_str()); diff --git a/views/controls/table/table_view_unittest.cc b/views/controls/table/table_view_unittest.cc index 761ae02..3f87b32 100644 --- a/views/controls/table/table_view_unittest.cc +++ b/views/controls/table/table_view_unittest.cc @@ -8,6 +8,7 @@ #include "app/table_model_observer.h" #include "base/message_loop.h" #include "base/string_util.h" +#include "base/utf_string_conversions.h" #include "testing/gtest/include/gtest/gtest.h" #include "views/controls/table/table_view.h" #include "views/controls/table/table_view2.h" diff --git a/views/controls/textfield/native_textfield_gtk.cc b/views/controls/textfield/native_textfield_gtk.cc index e3732b5..9baa017 100644 --- a/views/controls/textfield/native_textfield_gtk.cc +++ b/views/controls/textfield/native_textfield_gtk.cc @@ -9,7 +9,8 @@ #include "app/gfx/insets.h" #include "app/gfx/gtk_util.h" #include "app/gfx/skia_utils_gtk.h" -#include "base/string_util.h" +#include "base/logging.h" +#include "base/utf_string_conversions.h" #include "views/controls/textfield/textfield.h" namespace views { diff --git a/views/widget/drop_target_gtk.cc b/views/widget/drop_target_gtk.cc index 82b36bb..d225ba8 100644 --- a/views/widget/drop_target_gtk.cc +++ b/views/widget/drop_target_gtk.cc @@ -6,13 +6,15 @@ #include <algorithm> #include <iterator> +#include <string> +#include <vector> #include "app/drag_drop_types.h" #include "app/gtk_dnd_util.h" #include "app/os_exchange_data_provider_gtk.h" #include "base/file_path.h" #include "base/gfx/point.h" -#include "base/string_util.h" +#include "base/utf_string_conversions.h" #include "net/base/net_util.h" #include "views/widget/root_view.h" #include "views/widget/widget_gtk.h" diff --git a/views/widget/tooltip_manager_gtk.cc b/views/widget/tooltip_manager_gtk.cc index 6aa8254..5358173 100644 --- a/views/widget/tooltip_manager_gtk.cc +++ b/views/widget/tooltip_manager_gtk.cc @@ -6,8 +6,7 @@ #include "app/gfx/font.h" #include "base/logging.h" -#include "base/string_util.h" -#include "views/focus/focus_manager.h" +#include "base/utf_string_conversions.h" #include "views/focus/focus_manager.h" #include "views/screen.h" #include "views/widget/root_view.h" diff --git a/views/widget/widget_gtk.cc b/views/widget/widget_gtk.cc index 796e50b..60422d7 100644 --- a/views/widget/widget_gtk.cc +++ b/views/widget/widget_gtk.cc @@ -8,6 +8,9 @@ #include <gdk/gdkx.h> #include <X11/extensions/shape.h> +#include <set> +#include <vector> + #include "app/drag_drop_types.h" #include "app/gfx/path.h" #include "app/os_exchange_data.h" @@ -15,7 +18,7 @@ #include "base/auto_reset.h" #include "base/compiler_specific.h" #include "base/message_loop.h" -#include "base/string_util.h" +#include "base/utf_string_conversions.h" #include "views/widget/default_theme_provider.h" #include "views/widget/drop_target_gtk.h" #include "views/widget/gtk_views_fixed.h" @@ -943,9 +946,9 @@ void WidgetGtk::OnWindowPaint(GtkWidget* widget, GdkEventExpose* event) { // view here as that is done by OnPaint. DCHECK(transparent_); int width, height; - gtk_window_get_size(GTK_WINDOW (widget), &width, &height); + gtk_window_get_size(GTK_WINDOW(widget), &width, &height); cairo_t* cr = gdk_cairo_create(widget->window); - cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE); + cairo_set_operator(cr, CAIRO_OPERATOR_SOURCE); cairo_set_source_rgba(cr, 0, 0, 0, 0); cairo_rectangle(cr, 0, 0, width, height); cairo_fill(cr); @@ -1043,7 +1046,8 @@ gboolean WidgetGtk::CallButtonPress(GtkWidget* widget, GdkEventButton* event) { } // static -gboolean WidgetGtk::CallButtonRelease(GtkWidget* widget, GdkEventButton* event) { +gboolean WidgetGtk::CallButtonRelease(GtkWidget* widget, + GdkEventButton* event) { WidgetGtk* widget_gtk = GetViewForNative(widget); if (!widget_gtk) return false; @@ -1080,7 +1084,8 @@ gboolean WidgetGtk::CallDragMotion(GtkWidget* widget, } // static -gboolean WidgetGtk::CallEnterNotify(GtkWidget* widget, GdkEventCrossing* event) { +gboolean WidgetGtk::CallEnterNotify(GtkWidget* widget, + GdkEventCrossing* event) { WidgetGtk* widget_gtk = GetViewForNative(widget); if (!widget_gtk) return false; @@ -1134,8 +1139,8 @@ gboolean WidgetGtk::CallKeyRelease(GtkWidget* widget, GdkEventKey* event) { } // static -gboolean WidgetGtk::CallLeaveNotify(GtkWidget* widget, GdkEventCrossing* event) -{ +gboolean WidgetGtk::CallLeaveNotify(GtkWidget* widget, + GdkEventCrossing* event) { WidgetGtk* widget_gtk = GetViewForNative(widget); if (!widget_gtk) return false; @@ -1380,10 +1385,10 @@ void WidgetGtk::ConfigureWidgetForIgnoreEvents() { display, win, ShapeInput, - 0, // x offset - 0, // y offset - NULL, // rectangles - 0, // num rectangles + 0, // x offset + 0, // y offset + NULL, // rectangles + 0, // num rectangles ShapeSet, 0); } diff --git a/views/window/window_gtk.cc b/views/window/window_gtk.cc index 472c0bf..e1b2c0f 100644 --- a/views/window/window_gtk.cc +++ b/views/window/window_gtk.cc @@ -7,6 +7,7 @@ #include "app/gfx/path.h" #include "app/l10n_util.h" #include "base/gfx/rect.h" +#include "base/utf_string_conversions.h" #include "views/event.h" #include "views/screen.h" #include "views/widget/root_view.h" |