|
Translate: enable context menu against pages having notranslate meta tag
<meta name="google" value="notranslate"> tag disables Chrome Translate
feature completely. But, it is better to enable it in context menu.
- enable context menu against pages having notranslate meta tag
- rename confusing parameter name |page_translatable| to |page_needs_translation|
- rename confusing function name IsPageTranslatable to IsTranslationAllowed
- implement GetMetaElementsWithAttribute directly since this function is removed from webkit/glue
BUG= 172593
[email protected]
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=201261
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+50 lines, -61 lines) |
Patch |
 |
M |
chrome/browser/policy/policy_browsertest.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/tab_contents/language_state.h
|
View
|
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/tab_contents/language_state.cc
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/tab_contents/render_view_context_menu.cc
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/translate/translate_manager.cc
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/translate/translate_manager_browsertest.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/translate/translate_tab_helper.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/translate/translate_tab_helper.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/common/render_messages.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/renderer/translate/translate_helper.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/renderer/translate/translate_helper.cc
|
View
|
1
2
|
3 chunks |
+31 lines, -41 lines |
0 comments
|
Download
|
Total messages: 10 (0 generated)
|