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

Unified Diff: chrome/browser/ui/views/find_bar_host.cc

Issue 2848883005: Test FindBar audible alerts. (Closed)
Patch Set: Address Scott's comment. Created 3 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
« no previous file with comments | « chrome/browser/ui/views/find_bar_host.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/find_bar_host.cc
diff --git a/chrome/browser/ui/views/find_bar_host.cc b/chrome/browser/ui/views/find_bar_host.cc
index 5f51653a171ed0718a7f118a6ce0c0960462565b..87372a11d34da70ed89d16024eded688d5496c98 100644
--- a/chrome/browser/ui/views/find_bar_host.cc
+++ b/chrome/browser/ui/views/find_bar_host.cc
@@ -29,7 +29,8 @@ using content::NativeWebKeyboardEvent;
FindBarHost::FindBarHost(BrowserView* browser_view)
: DropdownBarHost(browser_view),
- find_bar_controller_(NULL) {
+ find_bar_controller_(NULL),
+ audible_alerts_(0) {
FindBarView* find_bar_view = new FindBarView(this);
Init(browser_view->find_bar_host_view(), find_bar_view, find_bar_view);
}
@@ -145,6 +146,7 @@ void FindBarHost::UpdateUIForFindResult(const FindNotificationDetails& result,
}
void FindBarHost::AudibleAlert() {
+ ++audible_alerts_;
#if defined(OS_WIN)
MessageBeep(MB_OK);
#endif
@@ -245,6 +247,10 @@ int FindBarHost::GetWidth() {
return view()->width();
}
+size_t FindBarHost::GetAudibleAlertCount() {
+ return audible_alerts_;
+}
+
////////////////////////////////////////////////////////////////////////////////
// Overridden from DropdownBarHost:
« no previous file with comments | « chrome/browser/ui/views/find_bar_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698