| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/views/find_bar_win.h" | 5 #include "chrome/browser/views/find_bar_win.h" |
| 6 | 6 |
| 7 #include "app/slide_animation.h" | 7 #include "app/slide_animation.h" |
| 8 #include "chrome/browser/browser.h" | 8 #include "chrome/browser/browser.h" |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/find_bar_controller.h" | 10 #include "chrome/browser/find_bar_controller.h" |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 } else { | 257 } else { |
| 258 host_->Hide(); | 258 host_->Hide(); |
| 259 } | 259 } |
| 260 } | 260 } |
| 261 | 261 |
| 262 void FindBarWin::ClearResults(const FindNotificationDetails& results) { | 262 void FindBarWin::ClearResults(const FindNotificationDetails& results) { |
| 263 view_->UpdateForResult(results, string16()); | 263 view_->UpdateForResult(results, string16()); |
| 264 } | 264 } |
| 265 | 265 |
| 266 void FindBarWin::StopAnimation() { | 266 void FindBarWin::StopAnimation() { |
| 267 if (animation_->IsAnimating()) | 267 animation_->End(); |
| 268 animation_->End(); | |
| 269 } | 268 } |
| 270 | 269 |
| 271 void FindBarWin::SetFindText(const string16& find_text) { | 270 void FindBarWin::SetFindText(const string16& find_text) { |
| 272 view_->SetFindText(find_text); | 271 view_->SetFindText(find_text); |
| 273 } | 272 } |
| 274 | 273 |
| 275 bool FindBarWin::IsFindBarVisible() { | 274 bool FindBarWin::IsFindBarVisible() { |
| 276 return host_->IsVisible(); | 275 return host_->IsVisible(); |
| 277 } | 276 } |
| 278 | 277 |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 focus_tracker_.reset(NULL); | 585 focus_tracker_.reset(NULL); |
| 587 } | 586 } |
| 588 | 587 |
| 589 void FindBarWin::AudibleAlert() { | 588 void FindBarWin::AudibleAlert() { |
| 590 #if defined(OS_WIN) | 589 #if defined(OS_WIN) |
| 591 MessageBeep(MB_OK); | 590 MessageBeep(MB_OK); |
| 592 #else | 591 #else |
| 593 NOTIMPLEMENTED(); | 592 NOTIMPLEMENTED(); |
| 594 #endif | 593 #endif |
| 595 } | 594 } |
| OLD | NEW |