summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-14 05:34:18 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-14 05:34:18 +0000
commitcaa55f3e114021dccc1935ed6fbac6247dca3eb7 (patch)
treee3b0329230db60169b04c705d79f43f096057aab
parent4cc5a8747adf8327ba0df645237c1d5f52690caf (diff)
downloadchromium_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
-rw-r--r--app/os_exchange_data_provider_gtk.cc2
-rw-r--r--base/string_util.h4
-rw-r--r--chrome/browser/chromeos/cros/network_library.cc2
-rw-r--r--chrome/browser/chromeos/external_protocol_dialog.cc2
-rw-r--r--chrome/browser/chromeos/login/login_manager_view.cc2
-rw-r--r--chrome/browser/chromeos/login/network_selection_view.cc1
-rw-r--r--chrome/browser/chromeos/login/user_controller.cc1
-rw-r--r--chrome/browser/chromeos/notifications/balloon_view.cc2
-rw-r--r--chrome/browser/chromeos/options/language_config_view.cc18
-rw-r--r--chrome/browser/chromeos/options/system_page_view.cc1
-rw-r--r--chrome/browser/chromeos/options/wifi_config_view.cc2
-rw-r--r--chrome/browser/chromeos/panels/panel_scroller_header.cc5
-rw-r--r--chrome/browser/chromeos/status/language_menu_button.cc1
-rw-r--r--chrome/browser/chromeos/text_input/candidate_window.cc2
-rw-r--r--chrome/browser/cocoa/download_item_controller.mm1
-rw-r--r--chrome/browser/cocoa/extension_install_prompt.mm1
-rw-r--r--chrome/browser/cocoa/external_protocol_dialog.mm1
-rw-r--r--chrome/browser/gtk/translate_infobars.cc4
-rw-r--r--views/controls/button/native_button_gtk.cc8
-rw-r--r--views/controls/combobox/native_combobox_gtk.cc6
-rw-r--r--views/controls/menu/native_menu_gtk.cc3
-rw-r--r--views/controls/tabbed_pane/native_tabbed_pane_gtk.cc2
-rw-r--r--views/controls/table/native_table_gtk.cc10
-rw-r--r--views/controls/table/table_view_unittest.cc1
-rw-r--r--views/controls/textfield/native_textfield_gtk.cc3
-rw-r--r--views/widget/drop_target_gtk.cc4
-rw-r--r--views/widget/tooltip_manager_gtk.cc3
-rw-r--r--views/widget/widget_gtk.cc27
-rw-r--r--views/window/window_gtk.cc1
29 files changed, 73 insertions, 47 deletions
diff --git a/app/os_exchange_data_provider_gtk.cc b/app/os_exchange_data_provider_gtk.cc
index 6cc3899b..1375860 100644
--- a/app/os_exchange_data_provider_gtk.cc
+++ b/app/os_exchange_data_provider_gtk.cc
@@ -8,7 +8,7 @@
#include "app/gtk_dnd_util.h"
#include "base/file_path.h"
-#include "base/string_util.h"
+#include "base/utf_string_conversions.h"
#include "net/base/net_util.h"
OSExchangeDataProviderGtk::OSExchangeDataProviderGtk(
diff --git a/base/string_util.h b/base/string_util.h
index e10b99e..586c60c 100644
--- a/base/string_util.h
+++ b/base/string_util.h
@@ -17,10 +17,6 @@
#include "base/string16.h"
#include "base/string_piece.h" // For implicit conversions.
-// TODO(brettw) this dependency should be removed and callers that need
-// these functions should include this file directly.
-#include "base/utf_string_conversions.h"
-
// Safe standard library wrappers for all platforms.
namespace base {
diff --git a/chrome/browser/chromeos/cros/network_library.cc b/chrome/browser/chromeos/cros/network_library.cc
index 8278ce4..1b4a2e9 100644
--- a/chrome/browser/chromeos/cros/network_library.cc
+++ b/chrome/browser/chromeos/cros/network_library.cc
@@ -6,7 +6,7 @@
#include <algorithm>
-#include "base/string_util.h"
+#include "base/utf_string_conversions.h"
#include "chrome/browser/chrome_thread.h"
#include "chrome/browser/chromeos/cros/cros_library.h"
#include "net/url_request/url_request_job.h"
diff --git a/chrome/browser/chromeos/external_protocol_dialog.cc b/chrome/browser/chromeos/external_protocol_dialog.cc
index faeff75..5a12dcf 100644
--- a/chrome/browser/chromeos/external_protocol_dialog.cc
+++ b/chrome/browser/chromeos/external_protocol_dialog.cc
@@ -7,7 +7,7 @@
#include "app/l10n_util.h"
#include "app/message_box_flags.h"
#include "base/histogram.h"
-#include "base/string_util.h"
+#include "base/utf_string_conversions.h"
#include "chrome/browser/external_protocol_handler.h"
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/browser/tab_contents/tab_contents_view.h"
diff --git a/chrome/browser/chromeos/login/login_manager_view.cc b/chrome/browser/chromeos/login/login_manager_view.cc
index a0268c1..a86ed80 100644
--- a/chrome/browser/chromeos/login/login_manager_view.cc
+++ b/chrome/browser/chromeos/login/login_manager_view.cc
@@ -16,7 +16,7 @@
#include "base/keyboard_codes.h"
#include "base/logging.h"
#include "base/process_util.h"
-#include "base/string_util.h"
+#include "base/utf_string_conversions.h"
#include "chrome/browser/chromeos/cros/cros_library.h"
#include "chrome/browser/chromeos/cros/network_library.h"
#include "chrome/browser/chromeos/login/authentication_notification_details.h"
diff --git a/chrome/browser/chromeos/login/network_selection_view.cc b/chrome/browser/chromeos/login/network_selection_view.cc
index f171f2a..6fac1e4 100644
--- a/chrome/browser/chromeos/login/network_selection_view.cc
+++ b/chrome/browser/chromeos/login/network_selection_view.cc
@@ -11,6 +11,7 @@
#include "app/l10n_util.h"
#include "app/resource_bundle.h"
+#include "base/utf_string_conversions.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/chromeos/login/screen_observer.h"
#include "chrome/browser/pref_service.h"
diff --git a/chrome/browser/chromeos/login/user_controller.cc b/chrome/browser/chromeos/login/user_controller.cc
index ed67da8..d4602a6 100644
--- a/chrome/browser/chromeos/login/user_controller.cc
+++ b/chrome/browser/chromeos/login/user_controller.cc
@@ -7,6 +7,7 @@
#include "app/gfx/canvas.h"
#include "app/l10n_util.h"
#include "app/resource_bundle.h"
+#include "base/utf_string_conversions.h"
#include "grit/generated_resources.h"
#include "grit/theme_resources.h"
#include "third_party/skia/include/core/SkColor.h"
diff --git a/chrome/browser/chromeos/notifications/balloon_view.cc b/chrome/browser/chromeos/notifications/balloon_view.cc
index 4d33e02..94feeae 100644
--- a/chrome/browser/chromeos/notifications/balloon_view.cc
+++ b/chrome/browser/chromeos/notifications/balloon_view.cc
@@ -9,7 +9,7 @@
#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/message_loop.h"
-#include "base/string_util.h"
+#include "base/utf_string_conversions.h"
#include "chrome/browser/chromeos/notifications/notification_panel.h"
#include "chrome/browser/notifications/balloon.h"
#include "chrome/browser/notifications/desktop_notification_service.h"
diff --git a/chrome/browser/chromeos/options/language_config_view.cc b/chrome/browser/chromeos/options/language_config_view.cc
index fbb1500..a3b0305 100644
--- a/chrome/browser/chromeos/options/language_config_view.cc
+++ b/chrome/browser/chromeos/options/language_config_view.cc
@@ -4,9 +4,13 @@
#include "chrome/browser/chromeos/options/language_config_view.h"
+#include <utility>
+#include <vector>
+
#include "app/combobox_model.h"
#include "app/l10n_util.h"
#include "app/table_model.h"
+#include "base/utf_string_conversions.h"
#include "chrome/browser/chromeos/cros/language_library.h"
#include "grit/generated_resources.h"
#include "grit/locale_settings.h"
@@ -118,12 +122,12 @@ class PreferredLanguageTableModel : public TableModel {
DISALLOW_COPY_AND_ASSIGN(PreferredLanguageTableModel);
};
-LanguageConfigView::LanguageConfigView() :
- contents_(NULL),
- hangul_keyboard_combobox_(NULL),
- hangul_keyboard_combobox_model_(new HangulKeyboardComboboxModel),
- preferred_language_table_(NULL),
- preferred_language_table_model_(new PreferredLanguageTableModel) {
+LanguageConfigView::LanguageConfigView()
+ : contents_(NULL),
+ hangul_keyboard_combobox_(NULL),
+ hangul_keyboard_combobox_model_(new HangulKeyboardComboboxModel),
+ preferred_language_table_(NULL),
+ preferred_language_table_model_(new PreferredLanguageTableModel) {
}
LanguageConfigView::~LanguageConfigView() {
@@ -210,7 +214,7 @@ void LanguageConfigView::Init() {
using views::ColumnSet;
using views::GridLayout;
- if (contents_) return; // Already initialized.
+ if (contents_) return; // Already initialized.
contents_ = new views::View;
AddChildView(contents_);
diff --git a/chrome/browser/chromeos/options/system_page_view.cc b/chrome/browser/chromeos/options/system_page_view.cc
index 1fa766e..32db4a4 100644
--- a/chrome/browser/chromeos/options/system_page_view.cc
+++ b/chrome/browser/chromeos/options/system_page_view.cc
@@ -9,6 +9,7 @@
#include "app/combobox_model.h"
#include "base/stl_util-inl.h"
+#include "base/utf_string_conversions.h"
#include "chrome/browser/chromeos/options/language_config_view.h"
#include "chrome/browser/pref_member.h"
#include "chrome/browser/profile.h"
diff --git a/chrome/browser/chromeos/options/wifi_config_view.cc b/chrome/browser/chromeos/options/wifi_config_view.cc
index 6756131..0be42d7 100644
--- a/chrome/browser/chromeos/options/wifi_config_view.cc
+++ b/chrome/browser/chromeos/options/wifi_config_view.cc
@@ -5,7 +5,7 @@
#include "chrome/browser/chromeos/options/wifi_config_view.h"
#include "app/l10n_util.h"
-#include "base/string_util.h"
+#include "base/utf_string_conversions.h"
#include "chrome/browser/chromeos/options/network_config_view.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
diff --git a/chrome/browser/chromeos/panels/panel_scroller_header.cc b/chrome/browser/chromeos/panels/panel_scroller_header.cc
index 47da1ad..ebd8131 100644
--- a/chrome/browser/chromeos/panels/panel_scroller_header.cc
+++ b/chrome/browser/chromeos/panels/panel_scroller_header.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.
@@ -7,7 +7,7 @@
#include "app/gfx/canvas.h"
#include "app/gfx/font.h"
#include "app/resource_bundle.h"
-#include "base/string_util.h"
+#include "base/utf_string_conversions.h"
#include "chrome/browser/chromeos/panels/panel_scroller.h"
PanelScrollerHeader::PanelScrollerHeader(PanelScroller* scroller)
@@ -47,5 +47,4 @@ void PanelScrollerHeader::Paint(gfx::Canvas* canvas) {
int font_top = 1;
canvas->DrawStringInt(UTF16ToWideHack(title_), font, 0xFF000000, 3, font_top,
size().width(), size().height() - font_top);
-
}
diff --git a/chrome/browser/chromeos/status/language_menu_button.cc b/chrome/browser/chromeos/status/language_menu_button.cc
index 9038202..f1be06d 100644
--- a/chrome/browser/chromeos/status/language_menu_button.cc
+++ b/chrome/browser/chromeos/status/language_menu_button.cc
@@ -9,6 +9,7 @@
#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/time.h"
+#include "base/utf_string_conversions.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/chromeos/status/status_area_host.h"
#include "grit/generated_resources.h"
diff --git a/chrome/browser/chromeos/text_input/candidate_window.cc b/chrome/browser/chromeos/text_input/candidate_window.cc
index 3e0cf30..fefacfa 100644
--- a/chrome/browser/chromeos/text_input/candidate_window.cc
+++ b/chrome/browser/chromeos/text_input/candidate_window.cc
@@ -20,7 +20,7 @@
#include "base/path_service.h"
#include "base/process_util.h"
#include "base/scoped_ptr.h"
-#include "base/string_util.h"
+#include "base/utf_string_conversions.h"
#include "chrome/browser/chromeos/cros/cros_library.h"
#include "chrome/common/chrome_paths.h"
#include "third_party/cros/chromeos_cros_api.h"
diff --git a/chrome/browser/cocoa/download_item_controller.mm b/chrome/browser/cocoa/download_item_controller.mm
index 674dffd..682aa9d 100644
--- a/chrome/browser/cocoa/download_item_controller.mm
+++ b/chrome/browser/cocoa/download_item_controller.mm
@@ -9,6 +9,7 @@
#include "app/resource_bundle.h"
#include "base/mac_util.h"
#include "base/sys_string_conversions.h"
+#include "base/utf_string_conversions.h"
#import "chrome/browser/browser_theme_provider.h"
#import "chrome/browser/cocoa/download_item_button.h"
#import "chrome/browser/cocoa/download_item_cell.h"
diff --git a/chrome/browser/cocoa/extension_install_prompt.mm b/chrome/browser/cocoa/extension_install_prompt.mm
index 71eb5e4..8f01720 100644
--- a/chrome/browser/cocoa/extension_install_prompt.mm
+++ b/chrome/browser/cocoa/extension_install_prompt.mm
@@ -9,6 +9,7 @@
#include "app/l10n_util_mac.h"
#include "app/resource_bundle.h"
#include "base/sys_string_conversions.h"
+#include "base/utf_string_conversions.h"
#include "chrome/browser/extensions/extension_install_ui.h"
#include "chrome/common/extensions/extension.h"
#include "grit/browser_resources.h"
diff --git a/chrome/browser/cocoa/external_protocol_dialog.mm b/chrome/browser/cocoa/external_protocol_dialog.mm
index ae3d6c8..6c346a4 100644
--- a/chrome/browser/cocoa/external_protocol_dialog.mm
+++ b/chrome/browser/cocoa/external_protocol_dialog.mm
@@ -7,6 +7,7 @@
#include "app/l10n_util_mac.h"
#include "base/message_loop.h"
#include "base/sys_string_conversions.h"
+#include "base/utf_string_conversions.h"
#include "chrome/browser/external_protocol_handler.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
diff --git a/chrome/browser/gtk/translate_infobars.cc b/chrome/browser/gtk/translate_infobars.cc
index 63ea67d..5f85985 100644
--- a/chrome/browser/gtk/translate_infobars.cc
+++ b/chrome/browser/gtk/translate_infobars.cc
@@ -4,7 +4,11 @@
#include "chrome/browser/gtk/translate_infobars.h"
+#include <string>
+#include <vector>
+
#include "app/l10n_util.h"
+#include "base/utf_string_conversions.h"
#include "chrome/app/chrome_dll_resource.h"
#include "chrome/browser/gtk/gtk_util.h"
#include "chrome/browser/gtk/menu_gtk.h"
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"