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

Issue 15031: Input box's context menu/language settings should set ... (Closed)

Created:
12 years ago by Mohamed Mansour (USE mhm)
Modified:
9 years, 7 months ago
Reviewers:
Peter Kasting, sky
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Input box's context menu/language settings should set "Languages" tab as active tab AND updated some utility functions in tabbed_pane. BUG=5639 (http://crbug.com/5639)

Patch Set 1 : '' #

Total comments: 1

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : '' #

Total comments: 1

Patch Set 5 : '' #

Total comments: 7

Patch Set 6 : '' #

Total comments: 6

Patch Set 7 : '' #

Total comments: 6

Patch Set 8 : '' #

Total comments: 2

Patch Set 9 : '' #

Total comments: 2

Patch Set 10 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -10 lines) Patch
M chrome/browser/render_view_context_menu_controller.cc View 1 2 3 4 5 6 1 chunk +7 lines, -6 lines 0 comments Download
M chrome/browser/views/options/fonts_languages_window_view.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/views/options/fonts_languages_window_view.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -4 lines 0 comments Download
M chrome/views/tabbed_pane.h View 5 6 7 8 9 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/views/tabbed_pane.cc View 5 6 7 8 9 2 chunks +15 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
Mohamed Mansour (USE mhm)
I just made a public method to SelectTab for that window, I don't know if ...
12 years ago (2008-12-18 04:18:44 UTC) #1
Peter Kasting
Changed reviewers. I sympathize with not wanting to use magic numbers from other views, but ...
12 years ago (2008-12-18 06:24:32 UTC) #2
Mohamed Mansour (USE mhm)
Alright I refactored the code to SelectLanguageTab since it makes sense in my opinion as ...
12 years ago (2008-12-18 06:52:37 UTC) #3
Peter Kasting
LGTM http://codereview.chromium.org/15031/diff/212/19 File chrome/browser/render_view_context_menu_controller.cc (right): http://codereview.chromium.org/15031/diff/212/19#newcode467 Line 467: window_)->Show(); Nit: it's OK to combine this ...
12 years ago (2008-12-18 07:12:03 UTC) #4
Mohamed Mansour (USE mhm)
ok! done!
12 years ago (2008-12-18 07:15:40 UTC) #5
sky
http://codereview.chromium.org/15031/diff/217/219 File chrome/browser/views/options/fonts_languages_window_view.cc (right): http://codereview.chromium.org/15031/diff/217/219#newcode77 Line 77: tabs_->SelectTabAt(1); nit: should be two space indented. http://codereview.chromium.org/15031/diff/217/219#newcode100 ...
12 years ago (2008-12-18 16:52:58 UTC) #6
Mohamed Mansour (USE mhm)
done!
12 years ago (2008-12-18 18:03:51 UTC) #7
Peter Kasting
LGTM.
12 years ago (2008-12-18 19:01:38 UTC) #8
sky
http://codereview.chromium.org/15031/diff/233/32 File chrome/browser/views/options/fonts_languages_window_view.cc (right): http://codereview.chromium.org/15031/diff/233/32#newcode103 Line 103: tabs_->AddTab(l10n_util::GetString( The whole point of adding the constant ...
12 years ago (2008-12-18 19:20:25 UTC) #9
sky
Peter beat me up, and while I prefer using the index in both places I'm ...
12 years ago (2008-12-18 19:25:59 UTC) #10
Mohamed Mansour (USE mhm)
I can do that change by doing this method: int SelectTabIndexFromTitle(const std::wstring& title); That will ...
12 years ago (2008-12-18 19:56:43 UTC) #11
Peter Kasting
On 2008/12/18 19:25:59, sky wrote: > An even better change is to add a method ...
12 years ago (2008-12-18 20:53:24 UTC) #12
Mohamed Mansour (USE mhm)
Too late :x I just did it :( Please criticism is allowed. It is my ...
12 years ago (2008-12-18 20:58:15 UTC) #13
Mohamed Mansour (USE mhm)
Now both of you are happy! that what counts!
12 years ago (2008-12-18 20:59:03 UTC) #14
sky
http://codereview.chromium.org/15031/diff/259/49 File chrome/views/tabbed_pane.cc (right): http://codereview.chromium.org/15031/diff/259/49#newcode144 Line 144: std::vector<View*>::iterator it_tab_views_ = tab_views_.begin(); Use std::find here. http://codereview.chromium.org/15031/diff/259/48 ...
12 years ago (2008-12-18 21:03:31 UTC) #15
Peter Kasting
http://codereview.chromium.org/15031/diff/40/250 File chrome/browser/views/options/fonts_languages_window_view.cc (right): http://codereview.chromium.org/15031/diff/40/250#newcode24 Line 24: static const int kLanguagesTab = 1; Remove this ...
12 years ago (2008-12-18 21:04:48 UTC) #16
Peter Kasting
http://codereview.chromium.org/15031/diff/259/49 File chrome/views/tabbed_pane.cc (right): http://codereview.chromium.org/15031/diff/259/49#newcode144 Line 144: std::vector<View*>::iterator it_tab_views_ = tab_views_.begin(); On 2008/12/18 21:03:31, sky ...
12 years ago (2008-12-18 21:08:06 UTC) #17
Mohamed Mansour (USE mhm)
done!
12 years ago (2008-12-18 21:38:22 UTC) #18
Peter Kasting
http://codereview.chromium.org/15031/diff/271/72 File chrome/browser/views/options/fonts_languages_window_view.cc (right): http://codereview.chromium.org/15031/diff/271/72#newcode96 Line 96: // in the future, make sure kLanguagesTab gets ...
12 years ago (2008-12-18 21:42:54 UTC) #19
Mohamed Mansour (USE mhm)
Alright, I promise no more nits. I hope. I think its more readable to return ...
12 years ago (2008-12-18 22:00:34 UTC) #20
Peter Kasting
http://codereview.chromium.org/15031/diff/92/288 File chrome/views/tabbed_pane.h (right): http://codereview.chromium.org/15031/diff/92/288#newcode73 Line 73: // Gets the tab index from the specified ...
12 years ago (2008-12-18 22:27:16 UTC) #21
Mohamed Mansour (USE mhm)
done
12 years ago (2008-12-18 22:34:34 UTC) #22
Peter Kasting
http://codereview.chromium.org/15031/diff/96/297 File chrome/views/tabbed_pane.h (right): http://codereview.chromium.org/15031/diff/96/297#newcode73 Line 73: // Returns -1 when no tab contains |contents|. ...
12 years ago (2008-12-18 22:40:55 UTC) #23
Mohamed Mansour (USE mhm)
I always have trouble with detailed comments. Okay nice, I just learned about member function ...
12 years ago (2008-12-19 01:50:05 UTC) #24
Peter Kasting
12 years ago (2008-12-19 02:26:37 UTC) #25
Tweaked and landed in r7289.

Powered by Google App Engine
This is Rietveld 408576698