pkgsrc-wip/chromium/patches/patch-chrome_browser_ui_views_find__bar__view.cc
Rui-Xiang Guo fa06d0f9e3 Update chromium to 10.0.648.205 that is based on the OpenBSD's ports with
modifying for *BSD support and additional NetBSD specific patches.
This version includes some security bug fixes.
2011-04-28 03:09:01 +00:00

36 lines
1.2 KiB
C++

$NetBSD: patch-chrome_browser_ui_views_find__bar__view.cc,v 1.1 2011/04/28 03:09:02 rxg Exp $
--- chrome/browser/ui/views/find_bar_view.cc.orig 2011-04-13 08:01:42.000000000 +0000
+++ chrome/browser/ui/views/find_bar_view.cc
@@ -85,7 +85,7 @@ static const int kDefaultCharWidth = 43;
FindBarView::FindBarView(FindBarHost* host)
: DropdownBarView(host),
-#if defined(OS_LINUX)
+#if defined(TOOLKIT_USES_GTK)
ignore_contents_changed_(false),
#endif
find_text_(NULL),
@@ -176,11 +176,11 @@ FindBarView::~FindBarView() {
}
void FindBarView::SetFindText(const string16& find_text) {
-#if defined(OS_LINUX)
+#if defined(TOOLKIT_USES_GTK)
ignore_contents_changed_ = true;
#endif
find_text_->SetText(find_text);
-#if defined(OS_LINUX)
+#if defined(TOOLKIT_USES_GTK)
ignore_contents_changed_ = false;
#endif
}
@@ -467,7 +467,7 @@ void FindBarView::ButtonPressed(
void FindBarView::ContentsChanged(views::Textfield* sender,
const string16& new_contents) {
-#if defined(OS_LINUX)
+#if defined(TOOLKIT_USES_GTK)
// On gtk setting the text in the find view causes a notification.
if (ignore_contents_changed_)
return;