|
Move TranslateInfoBarDelegate and OptionsMenuModel to the Translate component.
To solve the dependency on chrome_command_ids, this CL removes the
IDC_OPTIONS_TRANSLATE_* constants and instead defines the command IDs
locally in the file, which is an approach already used at several other places in
the code.
To solve the dependency on themes, the icon ID for the translate infobar is no
longer hardcoded, but fetched from the translate client instead.
BUG= 371845
TBR=estade, joaodasilva
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274252
Total comments: 7
Total comments: 3
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+156 lines, -914 lines) |
Patch |
|
M |
build/ios/grit_whitelist.txt
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+15 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/app/chrome_command_ids.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+2 lines, -7 lines |
0 comments
|
Download
|
|
M |
chrome/browser/autofill/autofill_interactive_uitest.cc
|
View
|
1
2
3
4
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/policy/policy_browsertest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
|
D |
chrome/browser/translate/options_menu_model.h
|
View
|
|
1 chunk |
+0 lines, -34 lines |
0 comments
|
Download
|
|
D |
chrome/browser/translate/options_menu_model.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+0 lines, -140 lines |
0 comments
|
Download
|
|
M |
chrome/browser/translate/translate_browsertest.cc
|
View
|
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
|
D |
chrome/browser/translate/translate_infobar_delegate.h
|
View
|
|
1 chunk |
+0 lines, -229 lines |
0 comments
|
Download
|
|
D |
chrome/browser/translate/translate_infobar_delegate.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+0 lines, -384 lines |
0 comments
|
Download
|
|
M |
chrome/browser/translate/translate_manager_render_view_host_unittest.cc
|
View
|
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/translate/translate_tab_helper.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/translate/translate_tab_helper.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
4 chunks |
+9 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/ui/android/infobars/infobar_android.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+0 lines, -12 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/android/infobars/translate_infobar.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/cocoa/infobars/translate_infobar_base.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/cocoa/infobars/translate_infobar_base.mm
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/cocoa/infobars/translate_infobar_unittest.mm
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+7 lines, -5 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/infobars/after_translate_infobar.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/infobars/before_translate_infobar.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/infobars/translate_infobar_base.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/infobars/translate_language_menu_model.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/infobars/translate_message_infobar.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
chrome/chrome_browser.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
|
M |
components/infobars.gypi
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A |
components/infobars/core/infobar_android.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+15 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/translate.gypi
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/translate/DEPS
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A + |
components/translate/core/browser/options_menu_model.h
|
View
|
1
2
3
4
5
|
3 chunks |
+12 lines, -3 lines |
0 comments
|
Download
|
|
A + |
components/translate/core/browser/options_menu_model.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
6 chunks |
+26 lines, -29 lines |
0 comments
|
Download
|
|
M |
components/translate/core/browser/translate_client.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
3 chunks |
+13 lines, -0 lines |
0 comments
|
Download
|
|
A + |
components/translate/core/browser/translate_infobar_delegate.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+3 lines, -11 lines |
0 comments
|
Download
|
|
A + |
components/translate/core/browser/translate_infobar_delegate.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
10 chunks |
+17 lines, -29 lines |
0 comments
|
Download
|
Total messages: 25 (0 generated)
|