OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_host.h" | 5 #include "chrome/browser/views/find_bar_host.h" |
6 | 6 |
7 #include "app/slide_animation.h" | |
8 #include "base/keyboard_codes.h" | 7 #include "base/keyboard_codes.h" |
9 #include "chrome/browser/browser.h" | 8 #include "chrome/browser/browser.h" |
10 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
11 #include "chrome/browser/find_bar_controller.h" | 10 #include "chrome/browser/find_bar_controller.h" |
12 #include "chrome/browser/renderer_host/render_view_host.h" | 11 #include "chrome/browser/renderer_host/render_view_host.h" |
13 #include "chrome/browser/view_ids.h" | 12 #include "chrome/browser/view_ids.h" |
14 #include "chrome/browser/views/find_bar_view.h" | 13 #include "chrome/browser/views/find_bar_view.h" |
15 #include "chrome/browser/views/frame/browser_view.h" | 14 #include "chrome/browser/views/frame/browser_view.h" |
16 #include "chrome/browser/tab_contents/tab_contents.h" | 15 #include "chrome/browser/tab_contents/tab_contents.h" |
17 #include "chrome/browser/tab_contents/tab_contents_view.h" | 16 #include "chrome/browser/tab_contents/tab_contents_view.h" |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 // input. Otherwise Up and Down arrow key strokes get eaten. "Nom Nom Nom". | 274 // input. Otherwise Up and Down arrow key strokes get eaten. "Nom Nom Nom". |
276 render_view_host->ClearFocusedNode(); | 275 render_view_host->ClearFocusedNode(); |
277 NativeWebKeyboardEvent event = GetKeyboardEvent(contents, key_stroke); | 276 NativeWebKeyboardEvent event = GetKeyboardEvent(contents, key_stroke); |
278 render_view_host->ForwardKeyboardEvent(event); | 277 render_view_host->ForwardKeyboardEvent(event); |
279 return true; | 278 return true; |
280 } | 279 } |
281 | 280 |
282 FindBarView* FindBarHost::find_bar_view() { | 281 FindBarView* FindBarHost::find_bar_view() { |
283 return static_cast<FindBarView*>(view()); | 282 return static_cast<FindBarView*>(view()); |
284 } | 283 } |
OLD | NEW |