Move UI code out of TranslateManager
commit546f5d64e41e0b65f80e25d7f1e7b1e22d1203a8
authordroger@chromium.org <droger@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 10 Feb 2014 17:54:50 +0000 (10 17:54 +0000)
committerdroger@chromium.org <droger@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 10 Feb 2014 17:54:50 +0000 (10 17:54 +0000)
treede103eb2c4345dcb7f90790d1970f9d3d1c4d2a9
parent4e788ab18e2912c4e1c19115c3ad1b7e6571e38d
Move UI code out of TranslateManager

The UI code is dependent on the embedder of Translate, and thus is moved
out of TranslateManager (which is intended to deal only with core logic).
The UI code is moved in TranslateTabHelper, which is the main embedder class for
Translate. The |use_infobar_| global state is moved to TranslateService which is
the singleton dealing with Translate global state.
The ShortcutConfig class (related to translate infobars) is removed as it was
not used.

BUG=336249
TBR=jochen

Review URL: https://codereview.chromium.org/136643009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250142 0039d316-1c4b-4281-b951-d872f2087c98
14 files changed:
chrome/browser/autofill/autofill_interactive_uitest.cc
chrome/browser/policy/policy_browsertest.cc
chrome/browser/translate/translate_browsertest.cc
chrome/browser/translate/translate_infobar_delegate.cc
chrome/browser/translate/translate_infobar_delegate.h
chrome/browser/translate/translate_manager.cc
chrome/browser/translate/translate_manager.h
chrome/browser/translate/translate_manager_browsertest.cc
chrome/browser/translate/translate_service.cc
chrome/browser/translate/translate_service.h
chrome/browser/translate/translate_tab_helper.cc
chrome/browser/translate/translate_tab_helper.h
chrome/browser/ui/cocoa/infobars/translate_infobar_unittest.mm
chrome/browser/ui/views/location_bar/location_bar_view.cc