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

Side by Side Diff: chrome/browser/views/find_bar_win.cc

Issue 159715: Implement FindBarGtk::StopAnimation().... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/gtk/slide_animator_gtk.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/slide_animator_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698