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/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 #include "chrome/browser/ui/webui/ntp/ntp_user_data_logger.h" | 31 #include "chrome/browser/ui/webui/ntp/ntp_user_data_logger.h" |
32 #include "chrome/common/url_constants.h" | 32 #include "chrome/common/url_constants.h" |
33 #include "chrome/grit/generated_resources.h" | 33 #include "chrome/grit/generated_resources.h" |
34 #include "components/browser_sync/browser/profile_sync_service.h" | 34 #include "components/browser_sync/browser/profile_sync_service.h" |
35 #include "components/google/core/browser/google_util.h" | 35 #include "components/google/core/browser/google_util.h" |
36 #include "components/omnibox/browser/omnibox_edit_model.h" | 36 #include "components/omnibox/browser/omnibox_edit_model.h" |
37 #include "components/omnibox/browser/omnibox_popup_model.h" | 37 #include "components/omnibox/browser/omnibox_popup_model.h" |
38 #include "components/omnibox/browser/omnibox_view.h" | 38 #include "components/omnibox/browser/omnibox_view.h" |
39 #include "components/search/search.h" | 39 #include "components/search/search.h" |
40 #include "components/signin/core/browser/signin_manager.h" | 40 #include "components/signin/core/browser/signin_manager.h" |
| 41 #include "components/strings/grit/components_strings.h" |
41 #include "content/public/browser/navigation_controller.h" | 42 #include "content/public/browser/navigation_controller.h" |
42 #include "content/public/browser/navigation_details.h" | 43 #include "content/public/browser/navigation_details.h" |
43 #include "content/public/browser/navigation_entry.h" | 44 #include "content/public/browser/navigation_entry.h" |
44 #include "content/public/browser/navigation_type.h" | 45 #include "content/public/browser/navigation_type.h" |
45 #include "content/public/browser/notification_service.h" | 46 #include "content/public/browser/notification_service.h" |
46 #include "content/public/browser/notification_source.h" | 47 #include "content/public/browser/notification_source.h" |
47 #include "content/public/browser/render_frame_host.h" | 48 #include "content/public/browser/render_frame_host.h" |
48 #include "content/public/browser/render_process_host.h" | 49 #include "content/public/browser/render_process_host.h" |
49 #include "content/public/browser/user_metrics.h" | 50 #include "content/public/browser/user_metrics.h" |
50 #include "content/public/browser/web_contents.h" | 51 #include "content/public/browser/web_contents.h" |
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
589 | 590 |
590 bool SearchTabHelper::IsInputInProgress() const { | 591 bool SearchTabHelper::IsInputInProgress() const { |
591 OmniboxView* omnibox = GetOmniboxView(); | 592 OmniboxView* omnibox = GetOmniboxView(); |
592 return !model_.mode().is_ntp() && omnibox && | 593 return !model_.mode().is_ntp() && omnibox && |
593 omnibox->model()->focus_state() == OMNIBOX_FOCUS_VISIBLE; | 594 omnibox->model()->focus_state() == OMNIBOX_FOCUS_VISIBLE; |
594 } | 595 } |
595 | 596 |
596 OmniboxView* SearchTabHelper::GetOmniboxView() const { | 597 OmniboxView* SearchTabHelper::GetOmniboxView() const { |
597 return delegate_ ? delegate_->GetOmniboxView() : NULL; | 598 return delegate_ ? delegate_->GetOmniboxView() : NULL; |
598 } | 599 } |
OLD | NEW |