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

Unified Diff: chrome/browser/ui/gtk/find_bar_gtk.cc

Issue 7063003: Make FindBar obey dialog bounds for GTK. Will fix other platforms in separate patches. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Converted to test-only patch. Created 9 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/gtk/find_bar_gtk.cc
diff --git a/chrome/browser/ui/gtk/find_bar_gtk.cc b/chrome/browser/ui/gtk/find_bar_gtk.cc
index f52486279b5fbca025b53b2e0d263e6910fbe706..f309cd35aa75f4d20b5a32607c18d937729727bc 100644
--- a/chrome/browser/ui/gtk/find_bar_gtk.cc
+++ b/chrome/browser/ui/gtk/find_bar_gtk.cc
@@ -578,6 +578,12 @@ string16 FindBarGtk::GetMatchCountText() {
return UTF8ToUTF16(contents);
}
+int FindBarGtk::GetWidth() {
+ GtkAllocation allocation;
+ gtk_widget_get_allocation(container_, &allocation);
Evan Stade 2011/05/25 18:18:10 I'd just use container_->allocation.width, we use
jennb 2011/05/25 19:02:41 Done.
+ return allocation.width;
+}
+
void FindBarGtk::FindEntryTextInContents(bool forward_search) {
TabContentsWrapper* tab_contents = find_bar_controller_->tab_contents();
if (!tab_contents)

Powered by Google App Engine
This is Rietveld 408576698