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

Issue 10316013: linux: Move linux_util.h from gfx/ to ui/base/gtk. (Closed)

Created:
8 years, 7 months ago by tfarina
Modified:
8 years, 7 months ago
Reviewers:
tony
CC:
chromium-reviews, Avi (use Gerrit), creis+watch_chromium.org, brettw-cc_chromium.org, yoshiki+watch_chromium.org, ajwong+watch_chromium.org, James Su, jshin+watch_chromium.org
Visibility:
Public.

Description

linux: Move linux_util.h from gfx/ to ui/base/gtk. The reason for this, is that I don't think this belongs to gfx/ directory. Also rename it to menu_label_accelerator_util.* to make it clear what the conversion functions are about. TEST=ui_unittests --gtest_filter=MenuLabelAcceleratorUtilTest* R=tony@chromium.org TBR=erg@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=135373

Patch Set 1 : #

Patch Set 2 : move to ui/base/gtk #

Total comments: 5

Patch Set 3 : fix ui.gyp #

Patch Set 4 : LinuxUtilTest -> MenuLabelAcceleratorTest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -224 lines) Patch
M chrome/browser/tab_contents/render_view_context_menu_gtk.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/gtk/bookmarks/bookmark_sub_menu_model_gtk.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/gtk/certificate_viewer_gtk.cc View 1 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/gtk/global_menu_bar.cc View 1 3 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/ui/gtk/gtk_util.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/gtk/menu_gtk.cc View 1 9 chunks +13 lines, -16 lines 0 comments Download
M chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/gtk/task_manager_gtk.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
A + ui/base/gtk/menu_label_accelerator_util.h View 1 2 chunks +5 lines, -5 lines 0 comments Download
A + ui/base/gtk/menu_label_accelerator_util.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
A + ui/base/gtk/menu_label_accelerator_util_unittest.cc View 1 2 3 4 chunks +6 lines, -6 lines 0 comments Download
D ui/gfx/linux_util.h View 1 chunk +0 lines, -30 lines 0 comments Download
D ui/gfx/linux_util.cc View 1 chunk +0 lines, -62 lines 0 comments Download
D ui/gfx/linux_util_unittest.cc View 1 chunk +0 lines, -75 lines 0 comments Download
M ui/ui.gyp View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M ui/ui_unittests.gypi View 1 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
tfarina
8 years, 7 months ago (2012-05-03 01:24:01 UTC) #1
tony
These methods don't really have anything to do with localization. It has to do with ...
8 years, 7 months ago (2012-05-03 16:42:48 UTC) #2
tfarina
On Thu, May 3, 2012 at 1:42 PM, <tony@chromium.org> wrote: > These methods don't really ...
8 years, 7 months ago (2012-05-03 18:10:56 UTC) #3
tfarina
On Thu, May 3, 2012 at 3:10 PM, Thiago Farina <tfarina@chromium.org> wrote: > On Thu, ...
8 years, 7 months ago (2012-05-03 18:12:23 UTC) #4
tfarina
Perphas something along this line: ui/base/accelerators/accelerator_gtk_util.h On Thu, May 3, 2012 at 3:12 PM, Thiago ...
8 years, 7 months ago (2012-05-03 18:14:23 UTC) #5
tony
ui/base/accelerators are a different type of accelerator. I don't think we want to put this ...
8 years, 7 months ago (2012-05-03 18:25:39 UTC) #6
tfarina
On 2012/05/03 18:25:39, tony wrote: > I think ui/base/gtk/ would be an OK place for ...
8 years, 7 months ago (2012-05-03 18:54:25 UTC) #7
tony
8 years, 7 months ago (2012-05-03 19:14:32 UTC) #8
LGTM

http://codereview.chromium.org/10316013/diff/8003/chrome/browser/ui/gtk/menu_...
File chrome/browser/ui/gtk/menu_gtk.cc (right):

http://codereview.chromium.org/10316013/diff/8003/chrome/browser/ui/gtk/menu_...
chrome/browser/ui/gtk/menu_gtk.cc:310: GtkWidget *toplevel_window =
gtk_widget_get_toplevel(menu_);
On 2012/05/03 18:54:26, tfarina wrote:
> nit: GtkWidget* :)

Feel free to fix it in this patch.

http://codereview.chromium.org/10316013/diff/8003/chrome/browser/ui/gtk/menu_...
chrome/browser/ui/gtk/menu_gtk.cc:318: GtkWidget* menu_item =
BuildMenuItemWithLabel(label, command_id);
On 2012/05/03 18:54:26, tfarina wrote:
> shouldn't this be converted_label?

That's interesting.  We should fix in a separate patch.  Maybe we're double
accounting for this in chrome/browser/ui/gtk/*.

Powered by Google App Engine
This is Rietveld 408576698