diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-28 22:35:24 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-28 22:35:24 +0000 |
commit | 855c0147eec8289ad854d2d64a6752a77e79859f (patch) | |
tree | 775255fce2539c2e92cd54d5b158967d063123b9 /chrome/browser/views/find_bar_host.cc | |
parent | 0b303cc493d3557b5a5e9e5c8dfc6bdc4953ee73 (diff) | |
download | chromium_src-855c0147eec8289ad854d2d64a6752a77e79859f.zip chromium_src-855c0147eec8289ad854d2d64a6752a77e79859f.tar.gz chromium_src-855c0147eec8289ad854d2d64a6752a77e79859f.tar.bz2 |
Linux: Enable FindInPage automated ui test test.
BUG=none
TEST=run it
Review URL: http://codereview.chromium.org/243010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27423 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/find_bar_host.cc')
-rw-r--r-- | chrome/browser/views/find_bar_host.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/chrome/browser/views/find_bar_host.cc b/chrome/browser/views/find_bar_host.cc index d81d6c1..2d8c27b 100644 --- a/chrome/browser/views/find_bar_host.cc +++ b/chrome/browser/views/find_bar_host.cc @@ -242,15 +242,19 @@ bool FindBarHost::GetFindBarWindowInfo(gfx::Point* position, false) { // TODO(sky): figure out linux side. #endif - *position = gfx::Point(); - *fully_visible = false; + if (position) + *position = gfx::Point(); + if (fully_visible) + *fully_visible = false; return false; } gfx::Rect window_rect; host_->GetBounds(&window_rect, true); - *position = window_rect.origin(); - *fully_visible = host_->IsVisible() && !IsAnimating(); + if (position) + *position = window_rect.origin(); + if (fully_visible) + *fully_visible = host_->IsVisible() && !IsAnimating(); return true; } |