|
|
Move TranslateLanguageList to the Translate component
A lot of static methods from TranslateManager are moved to
TranslateDownloadManager, as they are related to the management of the
TranslateLanguageList.
The observer interface for translate events has been moved from
TranslateManager to TranslateLanguageList. It also has been changed into a
callback list rather than an observer list, since observers with a single method
are generally discouraged.
The SetSupportedLanguages() method in TranslateLanguageList has been moved
from the anonymous namespace as it needs to invoke the callbacks for
translate events.
Finally, this CL fixes a bug where the TranslateList was not listening to
ResourceRequestNotifications.
BUG= 335077, 335085, 339508
R=blundell@chromium.org, jochen@chromium.org, joi@chromium.org, mad@chromium.org
TBR=jochen, joi, sky
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=248975
Total comments: 13
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+476 lines, -786 lines) |
Patch |
 |
M |
chrome/browser/chrome_browser_main.cc
|
View
|
1
2
3
4
5
6
|
4 chunks |
+3 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/preference/preference_api.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/preference/preference_apitest.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/policy/configuration_policy_handler_list_factory.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/two_client_preferences_sync_test.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/tab_contents/render_view_context_menu.cc
|
View
|
1
2
3
4
5
6
|
5 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/translate/translate_infobar_delegate.cc
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/translate/translate_language_list.h
|
View
|
|
1 chunk |
+0 lines, -89 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/translate/translate_language_list.cc
|
View
|
|
1 chunk |
+0 lines, -330 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/translate/translate_manager.h
|
View
|
1
2
3
4
5
6
|
6 chunks |
+0 lines, -35 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/translate/translate_manager.cc
|
View
|
1
2
3
4
5
6
|
15 chunks |
+24 lines, -84 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/translate/translate_manager_browsertest.cc
|
View
|
1
2
3
4
5
6
|
8 chunks |
+13 lines, -12 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/translate/translate_prefs.cc
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/translate/translate_script.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/translate/translate_service.h
|
View
|
1
|
1 chunk |
+13 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/translate/translate_service.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+37 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/translate/translate_ui_delegate.cc
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
D |
chrome/browser/translate/translate_url_util.h
|
View
|
|
1 chunk |
+0 lines, -22 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/translate/translate_url_util.cc
|
View
|
|
1 chunk |
+0 lines, -37 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/browser_ui_prefs.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/infobars/translate_infobar_unittest.mm
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/options/language_options_handler_common.cc
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/translate_internals/translate_internals_handler.h
|
View
|
|
3 chunks |
+8 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/translate_internals/translate_internals_handler.cc
|
View
|
1
2
3
|
3 chunks |
+17 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser.gypi
|
View
|
1
2
3
4
5
6
|
2 chunks |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/common/chrome_switches.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/common/chrome_switches.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/common/pref_names.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/common/pref_names.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
components/translate.gypi
|
View
|
|
3 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/translate/DEPS
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/translate/core/browser/translate_download_manager.h
|
View
|
1
2
3
4
5
|
2 chunks |
+40 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/translate/core/browser/translate_download_manager.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+93 lines, -1 line |
0 comments
|
Download
|
 |
A + |
components/translate/core/browser/translate_language_list.h
|
View
|
1
2
3
|
4 chunks |
+36 lines, -14 lines |
0 comments
|
Download
|
 |
A + |
components/translate/core/browser/translate_language_list.cc
|
View
|
1
2
3
4
5
|
8 chunks |
+118 lines, -115 lines |
0 comments
|
Download
|
 |
A + |
components/translate/core/browser/translate_url_util.h
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
A + |
components/translate/core/browser/translate_url_util.cc
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
A |
components/translate/core/common/translate_pref_names.h
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/translate/core/common/translate_pref_names.cc
|
View
|
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/translate/core/common/translate_switches.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/translate/core/common/translate_switches.cc
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/gn/secondary/components/translate/BUILD.gn
|
View
|
1
2
3
4
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
Total messages: 40 (0 generated)
|