OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/native_ui_contents.h" | 5 #include "chrome/browser/native_ui_contents.h" |
6 | 6 |
7 #include "chrome/browser/browser.h" | 7 #include "chrome/browser/browser.h" |
8 #include "chrome/browser/download_tab_view.h" | |
9 #include "chrome/browser/history_tab_ui.h" | 8 #include "chrome/browser/history_tab_ui.h" |
10 #include "chrome/browser/navigation_entry.h" | 9 #include "chrome/browser/navigation_entry.h" |
| 10 #include "chrome/browser/views/download_tab_view.h" |
11 #include "chrome/common/drag_drop_types.h" | 11 #include "chrome/common/drag_drop_types.h" |
12 #include "chrome/common/gfx/chrome_canvas.h" | 12 #include "chrome/common/gfx/chrome_canvas.h" |
13 #include "chrome/common/gfx/chrome_font.h" | 13 #include "chrome/common/gfx/chrome_font.h" |
14 #include "chrome/common/l10n_util.h" | 14 #include "chrome/common/l10n_util.h" |
15 #include "chrome/common/os_exchange_data.h" | 15 #include "chrome/common/os_exchange_data.h" |
16 #include "chrome/common/resource_bundle.h" | 16 #include "chrome/common/resource_bundle.h" |
17 #include "chrome/views/background.h" | 17 #include "chrome/views/background.h" |
18 #include "chrome/views/checkbox.h" | 18 #include "chrome/views/checkbox.h" |
19 #include "chrome/views/grid_layout.h" | 19 #include "chrome/views/grid_layout.h" |
20 #include "chrome/views/hwnd_view_container.h" | 20 #include "chrome/views/hwnd_view_container.h" |
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
662 DoSearch(); | 662 DoSearch(); |
663 } | 663 } |
664 | 664 |
665 void SearchableUIContainer::DoSearch() { | 665 void SearchableUIContainer::DoSearch() { |
666 if (delegate_) | 666 if (delegate_) |
667 delegate_->DoSearch(search_field_->GetText()); | 667 delegate_->DoSearch(search_field_->GetText()); |
668 | 668 |
669 scroll_view_->ScrollToPosition(scroll_view_->vertical_scroll_bar(), 0); | 669 scroll_view_->ScrollToPosition(scroll_view_->vertical_scroll_bar(), 0); |
670 } | 670 } |
671 | 671 |
OLD | NEW |