| 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 <memory> | 7 #include <memory> |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "chrome/browser/ui/browser_window.h" | 21 #include "chrome/browser/ui/browser_window.h" |
| 22 #include "chrome/browser/ui/location_bar/location_bar.h" | 22 #include "chrome/browser/ui/location_bar/location_bar.h" |
| 23 #include "chrome/browser/ui/omnibox/clipboard_utils.h" | 23 #include "chrome/browser/ui/omnibox/clipboard_utils.h" |
| 24 #include "chrome/browser/ui/search/instant_tab.h" | 24 #include "chrome/browser/ui/search/instant_tab.h" |
| 25 #include "chrome/browser/ui/search/search_ipc_router_policy_impl.h" | 25 #include "chrome/browser/ui/search/search_ipc_router_policy_impl.h" |
| 26 #include "chrome/browser/ui/search/search_tab_helper_delegate.h" | 26 #include "chrome/browser/ui/search/search_tab_helper_delegate.h" |
| 27 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" | 27 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" |
| 28 #include "chrome/browser/ui/webui/ntp/ntp_user_data_logger.h" | 28 #include "chrome/browser/ui/webui/ntp/ntp_user_data_logger.h" |
| 29 #include "chrome/common/url_constants.h" | 29 #include "chrome/common/url_constants.h" |
| 30 #include "chrome/grit/generated_resources.h" | 30 #include "chrome/grit/generated_resources.h" |
| 31 #include "components/browser_sync/browser/profile_sync_service.h" | 31 #include "components/browser_sync/profile_sync_service.h" |
| 32 #include "components/google/core/browser/google_util.h" | 32 #include "components/google/core/browser/google_util.h" |
| 33 #include "components/omnibox/browser/omnibox_edit_model.h" | 33 #include "components/omnibox/browser/omnibox_edit_model.h" |
| 34 #include "components/omnibox/browser/omnibox_popup_model.h" | 34 #include "components/omnibox/browser/omnibox_popup_model.h" |
| 35 #include "components/omnibox/browser/omnibox_view.h" | 35 #include "components/omnibox/browser/omnibox_view.h" |
| 36 #include "components/search/search.h" | 36 #include "components/search/search.h" |
| 37 #include "components/signin/core/browser/signin_manager.h" | 37 #include "components/signin/core/browser/signin_manager.h" |
| 38 #include "components/strings/grit/components_strings.h" | 38 #include "components/strings/grit/components_strings.h" |
| 39 #include "content/public/browser/navigation_details.h" | 39 #include "content/public/browser/navigation_details.h" |
| 40 #include "content/public/browser/navigation_entry.h" | 40 #include "content/public/browser/navigation_entry.h" |
| 41 #include "content/public/browser/notification_service.h" | 41 #include "content/public/browser/notification_service.h" |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 | 500 |
| 501 bool SearchTabHelper::IsInputInProgress() const { | 501 bool SearchTabHelper::IsInputInProgress() const { |
| 502 OmniboxView* omnibox = GetOmniboxView(); | 502 OmniboxView* omnibox = GetOmniboxView(); |
| 503 return !model_.mode().is_ntp() && omnibox && | 503 return !model_.mode().is_ntp() && omnibox && |
| 504 omnibox->model()->focus_state() == OMNIBOX_FOCUS_VISIBLE; | 504 omnibox->model()->focus_state() == OMNIBOX_FOCUS_VISIBLE; |
| 505 } | 505 } |
| 506 | 506 |
| 507 OmniboxView* SearchTabHelper::GetOmniboxView() const { | 507 OmniboxView* SearchTabHelper::GetOmniboxView() const { |
| 508 return delegate_ ? delegate_->GetOmniboxView() : NULL; | 508 return delegate_ ? delegate_->GetOmniboxView() : NULL; |
| 509 } | 509 } |
| OLD | NEW |