| 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/keyboard_codes.h" | 7 #include "app/keyboard_codes.h" |
| 8 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
| 9 #include "chrome/browser/renderer_host/render_view_host.h" | 9 #include "chrome/browser/renderer_host/render_view_host.h" |
| 10 #include "chrome/browser/tab_contents/tab_contents.h" |
| 11 #include "chrome/browser/tab_contents/tab_contents_view.h" |
| 10 #include "chrome/browser/ui/browser.h" | 12 #include "chrome/browser/ui/browser.h" |
| 11 #include "chrome/browser/ui/find_bar/find_bar_controller.h" | 13 #include "chrome/browser/ui/find_bar/find_bar_controller.h" |
| 12 #include "chrome/browser/view_ids.h" | 14 #include "chrome/browser/ui/view_ids.h" |
| 13 #include "chrome/browser/views/find_bar_view.h" | 15 #include "chrome/browser/ui/views/find_bar_view.h" |
| 14 #include "chrome/browser/views/frame/browser_view.h" | 16 #include "chrome/browser/ui/views/frame/browser_view.h" |
| 15 #include "chrome/browser/tab_contents/tab_contents.h" | |
| 16 #include "chrome/browser/tab_contents/tab_contents_view.h" | |
| 17 #include "views/focus/external_focus_tracker.h" | 17 #include "views/focus/external_focus_tracker.h" |
| 18 #include "views/focus/view_storage.h" | 18 #include "views/focus/view_storage.h" |
| 19 #include "views/widget/root_view.h" | 19 #include "views/widget/root_view.h" |
| 20 #include "views/widget/widget.h" | 20 #include "views/widget/widget.h" |
| 21 | 21 |
| 22 namespace browser { | 22 namespace browser { |
| 23 | 23 |
| 24 // Declared in browser_dialogs.h so others don't have to depend on our header. | 24 // Declared in browser_dialogs.h so others don't have to depend on our header. |
| 25 FindBar* CreateFindBar(BrowserView* browser_view) { | 25 FindBar* CreateFindBar(BrowserView* browser_view) { |
| 26 return new FindBarHost(browser_view); | 26 return new FindBarHost(browser_view); |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 | 296 |
| 297 DropdownBarHost::UnregisterAccelerators(); | 297 DropdownBarHost::UnregisterAccelerators(); |
| 298 } | 298 } |
| 299 | 299 |
| 300 //////////////////////////////////////////////////////////////////////////////// | 300 //////////////////////////////////////////////////////////////////////////////// |
| 301 // private: | 301 // private: |
| 302 | 302 |
| 303 FindBarView* FindBarHost::find_bar_view() { | 303 FindBarView* FindBarHost::find_bar_view() { |
| 304 return static_cast<FindBarView*>(view()); | 304 return static_cast<FindBarView*>(view()); |
| 305 } | 305 } |
| OLD | NEW |