Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Side by Side Diff: chrome/browser/ui/search/search_tab_helper.cc

Issue 1705823002: Componentize IDS_NEW_TAB_* & IDS_SAD_TAB_* string to share on iOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@1
Patch Set: Copy IDS_NEW_TAB_TITLE translation to components_strings_*.xtb to fix browser_tests Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/tab_contents/sad_tab_view_cocoa.mm ('k') | chrome/browser/ui/search/search_tab_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698