| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/ui/views/find_bar_host.h" | |
| 6 | |
| 7 #include "chrome/browser/ui/find_bar/find_bar_controller.h" | |
| 8 #include "chrome/browser/ui/views/frame/browser_view.h" | |
| 9 #include "content/public/browser/render_view_host.h" | |
| 10 #include "content/public/browser/web_contents_view.h" | |
| 11 #include "ui/events/event.h" | |
| 12 #include "ui/views/controls/scrollbar/native_scroll_bar.h" | |
| 13 #include "ui/views/widget/widget.h" | |
| 14 | |
| 15 void FindBarHost::AudibleAlert() { | |
| 16 MessageBeep(MB_OK); | |
| 17 } | |
| 18 | |
| 19 bool FindBarHost::ShouldForwardKeyEventToWebpageNative( | |
| 20 const ui::KeyEvent& key_event) { | |
| 21 // We specifically ignore WM_CHAR. See http://crbug.com/10509. | |
| 22 return key_event.native_event().message == WM_KEYDOWN || | |
| 23 key_event.native_event().message == WM_KEYUP; | |
| 24 } | |
| OLD | NEW |