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

Issue 26775007: Translate: Add TranslateBubbleView (Closed)

Created:
7 years, 2 months ago by hajimehoshi
Modified:
7 years, 2 months ago
Reviewers:
Takashi Toyoshima, sky
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Translate: Add TranslateBubbleView This is used for Translate new UX. For screen shots, please see the crbug.com/276181 BUG=276181 TEST=unit_tests --gtest_filter=TranslateBubbleViewTest.* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=229555

Patch Set 1 : . #

Patch Set 2 : Bug fix: 'Close' button is for returning to the previous view #

Patch Set 3 : (rebasing) #

Patch Set 4 : Add some UMAs #

Patch Set 5 : Call TranslationDeclined() properly; Simplify the tests #

Patch Set 6 : nits #

Total comments: 4

Patch Set 7 : Add a comment #

Patch Set 8 : (rebasing) #

Patch Set 9 : Move implementation of the view type transitions to TranslateBubbleModel #

Total comments: 22

Patch Set 10 : Sky's review #

Patch Set 11 : Remove translate_bubble_model.cc #

Total comments: 28

Patch Set 12 : Sky's review (2) #

Patch Set 13 : (rebasing) #

Patch Set 14 : Bug fix: returned value of GetCurrentView() #

Patch Set 15 : Add the prefix VIEW_STATE_ to each enum value because Windows has a macro ERROR #

Patch Set 16 : (rebasing) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1597 lines, -0 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +47 lines, -0 lines 0 comments Download
A chrome/browser/ui/translate/language_combobox_model.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/browser/ui/translate/language_combobox_model.cc View 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/browser/ui/translate/translate_bubble_model.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +89 lines, -0 lines 0 comments Download
A chrome/browser/ui/translate/translate_bubble_model_impl.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +48 lines, -0 lines 0 comments Download
A chrome/browser/ui/translate/translate_bubble_model_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +82 lines, -0 lines 0 comments Download
A chrome/browser/ui/translate/translate_bubble_view_state_transition.h View 1 2 3 4 5 6 7 8 9 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/browser/ui/translate/translate_bubble_view_state_transition.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +27 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/translate/translate_bubble_view.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +176 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/translate/translate_bubble_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +753 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/translate/translate_bubble_view_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +256 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
hajimehoshi
Can you take a look? Thanks. toyoshim: chrome/browser/translate/translate_ui_delegate.h (comment-change only) sky: the other files
7 years, 2 months ago (2013-10-10 09:51:02 UTC) #1
Takashi Toyoshima
Don't you set each crbug entries blocking the master bug? This change seems almost good ...
7 years, 2 months ago (2013-10-14 23:29:33 UTC) #2
Takashi Toyoshima
by the way, translate_ui_delegate.h is not included in the last patch set...
7 years, 2 months ago (2013-10-14 23:31:24 UTC) #3
hajimehoshi
> by the way, translate_ui_delegate.h is not included in the last patch set... Ah, sorry. ...
7 years, 2 months ago (2013-10-15 04:12:40 UTC) #4
hajimehoshi
Thank you! https://codereview.chromium.org/26775007/diff/42001/chrome/browser/ui/views/translate/translate_bubble_view.cc File chrome/browser/ui/views/translate/translate_bubble_view.cc (right): https://codereview.chromium.org/26775007/diff/42001/chrome/browser/ui/views/translate/translate_bubble_view.cc#newcode516 chrome/browser/ui/views/translate/translate_bubble_view.cc:516: views::View* TranslateBubbleView::CreateViewAfterTranslate() { No. I think it ...
7 years, 2 months ago (2013-10-15 04:14:15 UTC) #5
Takashi Toyoshima
lgtm
7 years, 2 months ago (2013-10-15 04:30:19 UTC) #6
hajimehoshi
I moved the implementation of the view-type transitions from TranslateBubbleView to TranslateBubbleModel because it is ...
7 years, 2 months ago (2013-10-15 08:29:46 UTC) #7
sky
https://codereview.chromium.org/26775007/diff/68001/chrome/browser/ui/translate/language_combobox_model.h File chrome/browser/ui/translate/language_combobox_model.h (right): https://codereview.chromium.org/26775007/diff/68001/chrome/browser/ui/translate/language_combobox_model.h#newcode16 chrome/browser/ui/translate/language_combobox_model.h:16: class LanguageComboboxModel : public ui::ComboboxModel { Always add a ...
7 years, 2 months ago (2013-10-15 16:10:40 UTC) #8
hajimehoshi2
Thank you for your reviewing! Please let me ask a quick question. https://codereview.chromium.org/26775007/diff/68001/chrome/browser/ui/translate/translate_bubble_model.h File chrome/browser/ui/translate/translate_bubble_model.h ...
7 years, 2 months ago (2013-10-16 00:14:43 UTC) #9
hajimehoshi2
On 2013/10/16 00:14:43, hajimehoshi1 wrote: > Thank you for your reviewing! Please let me ask ...
7 years, 2 months ago (2013-10-16 00:36:09 UTC) #10
hajimehoshi
Thank you very much! https://codereview.chromium.org/26775007/diff/68001/chrome/browser/ui/translate/language_combobox_model.h File chrome/browser/ui/translate/language_combobox_model.h (right): https://codereview.chromium.org/26775007/diff/68001/chrome/browser/ui/translate/language_combobox_model.h#newcode16 chrome/browser/ui/translate/language_combobox_model.h:16: class LanguageComboboxModel : public ui::ComboboxModel ...
7 years, 2 months ago (2013-10-16 07:35:06 UTC) #11
sky
https://codereview.chromium.org/26775007/diff/103001/chrome/browser/ui/translate/language_combobox_model.h File chrome/browser/ui/translate/language_combobox_model.h (right): https://codereview.chromium.org/26775007/diff/103001/chrome/browser/ui/translate/language_combobox_model.h#newcode17 chrome/browser/ui/translate/language_combobox_model.h:17: // user interface to select an original language or ...
7 years, 2 months ago (2013-10-16 14:32:35 UTC) #12
hajimehoshi
Thank you! https://codereview.chromium.org/26775007/diff/103001/chrome/browser/ui/translate/language_combobox_model.h File chrome/browser/ui/translate/language_combobox_model.h (right): https://codereview.chromium.org/26775007/diff/103001/chrome/browser/ui/translate/language_combobox_model.h#newcode17 chrome/browser/ui/translate/language_combobox_model.h:17: // user interface to select an original ...
7 years, 2 months ago (2013-10-17 05:45:41 UTC) #13
sky
LGTM
7 years, 2 months ago (2013-10-17 15:39:26 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/26775007/127001
7 years, 2 months ago (2013-10-17 15:56:15 UTC) #15
hajimehoshi
Ah, I found that ERROR is already defined in Win32 environment... I'll add a prefix ...
7 years, 2 months ago (2013-10-17 16:07:34 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/26775007/175001
7 years, 2 months ago (2013-10-18 03:29:12 UTC) #17
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 2 months ago (2013-10-18 18:12:56 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/26775007/175001
7 years, 2 months ago (2013-10-18 19:00:31 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/26775007/175001
7 years, 2 months ago (2013-10-18 21:14:37 UTC) #20
commit-bot: I haz the power
7 years, 2 months ago (2013-10-19 13:52:41 UTC) #21
Message was sent while issue was closed.
Change committed as 229555

Powered by Google App Engine
This is Rietveld 408576698