OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/ui/search/search_tab_helper.h" | 5 #include "chrome/browser/ui/search/search_tab_helper.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "chrome/browser/ui/location_bar/location_bar.h" | 25 #include "chrome/browser/ui/location_bar/location_bar.h" |
26 #include "chrome/browser/ui/omnibox/omnibox_edit_model.h" | 26 #include "chrome/browser/ui/omnibox/omnibox_edit_model.h" |
27 #include "chrome/browser/ui/omnibox/omnibox_popup_model.h" | 27 #include "chrome/browser/ui/omnibox/omnibox_popup_model.h" |
28 #include "chrome/browser/ui/omnibox/omnibox_view.h" | 28 #include "chrome/browser/ui/omnibox/omnibox_view.h" |
29 #include "chrome/browser/ui/search/instant_search_prerenderer.h" | 29 #include "chrome/browser/ui/search/instant_search_prerenderer.h" |
30 #include "chrome/browser/ui/search/search_ipc_router_policy_impl.h" | 30 #include "chrome/browser/ui/search/search_ipc_router_policy_impl.h" |
31 #include "chrome/browser/ui/search/search_tab_helper_delegate.h" | 31 #include "chrome/browser/ui/search/search_tab_helper_delegate.h" |
32 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" | 32 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" |
33 #include "chrome/browser/ui/webui/ntp/ntp_user_data_logger.h" | 33 #include "chrome/browser/ui/webui/ntp/ntp_user_data_logger.h" |
34 #include "chrome/common/url_constants.h" | 34 #include "chrome/common/url_constants.h" |
| 35 #include "components/search/search.h" |
35 #include "components/signin/core/browser/signin_manager.h" | 36 #include "components/signin/core/browser/signin_manager.h" |
36 #include "content/public/browser/navigation_controller.h" | 37 #include "content/public/browser/navigation_controller.h" |
37 #include "content/public/browser/navigation_details.h" | 38 #include "content/public/browser/navigation_details.h" |
38 #include "content/public/browser/navigation_entry.h" | 39 #include "content/public/browser/navigation_entry.h" |
39 #include "content/public/browser/navigation_type.h" | 40 #include "content/public/browser/navigation_type.h" |
40 #include "content/public/browser/notification_service.h" | 41 #include "content/public/browser/notification_service.h" |
41 #include "content/public/browser/notification_source.h" | 42 #include "content/public/browser/notification_source.h" |
42 #include "content/public/browser/render_frame_host.h" | 43 #include "content/public/browser/render_frame_host.h" |
43 #include "content/public/browser/render_process_host.h" | 44 #include "content/public/browser/render_process_host.h" |
44 #include "content/public/browser/user_metrics.h" | 45 #include "content/public/browser/user_metrics.h" |
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 | 631 |
631 bool SearchTabHelper::IsInputInProgress() const { | 632 bool SearchTabHelper::IsInputInProgress() const { |
632 OmniboxView* omnibox = GetOmniboxView(); | 633 OmniboxView* omnibox = GetOmniboxView(); |
633 return !model_.mode().is_ntp() && omnibox && | 634 return !model_.mode().is_ntp() && omnibox && |
634 omnibox->model()->focus_state() == OMNIBOX_FOCUS_VISIBLE; | 635 omnibox->model()->focus_state() == OMNIBOX_FOCUS_VISIBLE; |
635 } | 636 } |
636 | 637 |
637 OmniboxView* SearchTabHelper::GetOmniboxView() const { | 638 OmniboxView* SearchTabHelper::GetOmniboxView() const { |
638 return delegate_ ? delegate_->GetOmniboxView() : NULL; | 639 return delegate_ ? delegate_->GetOmniboxView() : NULL; |
639 } | 640 } |
OLD | NEW |