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

Issue 2800015: GTK: First draft of the unified cut/copy/paste and +/-/Fullscreen menu items. (Closed)

Created:
10 years, 6 months ago by Elliot Glaysher
Modified:
9 years, 7 months ago
Reviewers:
Evan Martin, sky, Evan Stade
CC:
chromium-reviews, ben+cc_chromium.org, John Grabowski, pam+watch_chromium.org
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

GTK: First draft of the unified cut/copy/paste and +/-/Fullscreen menu items. Adds special menu item types that allow shoving buttons into them, along with tracking which button is selected. We now are halfway to the mocks that the chrome-ui-leads sent out. BUG=45757 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=50859

Patch Set 1 #

Patch Set 2 : General cleanup #

Total comments: 9

Patch Set 3 : Compile fixes #

Patch Set 4 : sky comments #

Patch Set 5 : Try building a ButtonMenuItemModel #

Total comments: 15

Patch Set 6 : sky comments #

Patch Set 7 : sky's suggested GetZoom() comment #

Patch Set 8 : Keep old items. #

Total comments: 8

Patch Set 9 : estade cleanups #

Total comments: 1

Patch Set 10 : estade cleanups #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1070 lines, -32 lines) Patch
M app/app_base.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
A app/menus/button_menu_item_model.h View 5 1 chunk +103 lines, -0 lines 0 comments Download
A app/menus/button_menu_item_model.cc View 5 1 chunk +65 lines, -0 lines 0 comments Download
M app/menus/menu_model.h View 1 2 3 4 5 3 chunks +5 lines, -0 lines 0 comments Download
M app/menus/simple_menu_model.h View 1 2 3 4 5 4 chunks +7 lines, -0 lines 0 comments Download
M app/menus/simple_menu_model.cc View 1 2 3 4 5 9 chunks +23 lines, -10 lines 0 comments Download
M chrome/app/generated_resources.grd View 5 6 7 8 9 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/back_forward_menu_model.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/back_forward_menu_model.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/browser/gtk/gtk_custom_menu.h View 1 chunk +53 lines, -0 lines 0 comments Download
A chrome/browser/gtk/gtk_custom_menu.cc View 1 2 3 1 chunk +144 lines, -0 lines 0 comments Download
A chrome/browser/gtk/gtk_custom_menu_item.h View 1 2 3 4 1 chunk +118 lines, -0 lines 0 comments Download
A chrome/browser/gtk/gtk_custom_menu_item.cc View 1 2 3 4 1 chunk +282 lines, -0 lines 0 comments Download
M chrome/browser/gtk/gtk_util.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/gtk/gtk_util.cc View 1 2 3 4 5 6 7 8 9 3 chunks +17 lines, -2 lines 0 comments Download
M chrome/browser/gtk/menu_gtk.h View 1 2 3 4 4 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/gtk/menu_gtk.cc View 1 2 3 4 5 8 chunks +84 lines, -7 lines 0 comments Download
M chrome/browser/gtk/notifications/notification_options_menu_model.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/gtk/notifications/notification_options_menu_model.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/wrench_menu_model.h View 1 2 3 4 5 6 7 8 9 3 chunks +40 lines, -12 lines 0 comments Download
M chrome/browser/wrench_menu_model.cc View 1 2 3 4 5 6 7 8 9 4 chunks +86 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Elliot Glaysher
10 years, 6 months ago (2010-06-18 20:33:20 UTC) #1
sky
I'm planning on taking a different approach on windows: http://codereview.chromium.org/2803013/show . That's not to say ...
10 years, 6 months ago (2010-06-18 20:48:35 UTC) #2
Elliot Glaysher
+evan for sky's comment on licensing. http://codereview.chromium.org/2800015/diff/2001/3002 File app/menus/simple_menu_model.cc (right): http://codereview.chromium.org/2800015/diff/2001/3002#newcode210 app/menus/simple_menu_model.cc:210: return items_.at(index).item; On ...
10 years, 6 months ago (2010-06-18 22:59:47 UTC) #3
sky
http://codereview.chromium.org/2800015/diff/2001/3002 File app/menus/simple_menu_model.cc (right): http://codereview.chromium.org/2800015/diff/2001/3002#newcode210 app/menus/simple_menu_model.cc:210: return items_.at(index).item; On 2010/06/18 22:59:47, Elliot Glaysher wrote: > ...
10 years, 6 months ago (2010-06-18 23:03:52 UTC) #4
Evan Stade
app/menus/menu_model.h:35: TYPE_NATIVE, this totally breaks the abstraction layering. Isn't it possible to define a new ...
10 years, 6 months ago (2010-06-18 23:44:32 UTC) #5
Elliot Glaysher
On 2010/06/18 23:44:32, Evan Stade wrote: > app/menus/menu_model.h:35: TYPE_NATIVE, > > this totally breaks the ...
10 years, 6 months ago (2010-06-21 23:21:17 UTC) #6
Elliot Glaysher
On 2010/06/18 23:44:32, Evan Stade wrote: > app/menus/menu_model.h:35: TYPE_NATIVE, > > this totally breaks the ...
10 years, 6 months ago (2010-06-22 19:39:55 UTC) #7
Evan Stade
On 2010/06/22 19:39:55, Elliot Glaysher wrote: > On 2010/06/18 23:44:32, Evan Stade wrote: > > ...
10 years, 6 months ago (2010-06-22 19:48:13 UTC) #8
Elliot Glaysher
On 2010/06/22 19:48:13, Evan Stade wrote: > On 2010/06/22 19:39:55, Elliot Glaysher wrote: > > ...
10 years, 6 months ago (2010-06-23 01:28:54 UTC) #9
sky
http://codereview.chromium.org/2800015/diff/23001/24002 File app/menus/button_menu_item_model.cc (right): http://codereview.chromium.org/2800015/diff/23001/24002#newcode41 app/menus/button_menu_item_model.cc:41: return items_.at(index).type; Is there a reason to use at ...
10 years, 6 months ago (2010-06-23 04:05:56 UTC) #10
Elliot Glaysher
Updated. http://codereview.chromium.org/2800015/diff/23001/24002 File app/menus/button_menu_item_model.cc (right): http://codereview.chromium.org/2800015/diff/23001/24002#newcode41 app/menus/button_menu_item_model.cc:41: return items_.at(index).type; On 2010/06/23 04:05:56, sky wrote: > ...
10 years, 6 months ago (2010-06-23 17:23:04 UTC) #11
sky
Please keep the old cut/copy/paste plus/minus/fullscreen items for TOOLKIT_VIEWS with a TODO for me. I'll ...
10 years, 6 months ago (2010-06-23 17:57:42 UTC) #12
Evan Stade
http://codereview.chromium.org/2800015/diff/12026/26004 File app/menus/button_menu_item_model.h (right): http://codereview.chromium.org/2800015/diff/12026/26004#newcode22 app/menus/button_menu_item_model.h:22: class ButtonMenuItemModel { I wonder if this class should ...
10 years, 6 months ago (2010-06-23 19:04:43 UTC) #13
Elliot Glaysher
http://codereview.chromium.org/2800015/diff/12026/26004 File app/menus/button_menu_item_model.h (right): http://codereview.chromium.org/2800015/diff/12026/26004#newcode22 app/menus/button_menu_item_model.h:22: class ButtonMenuItemModel { On 2010/06/23 19:04:43, Evan Stade wrote: ...
10 years, 6 months ago (2010-06-23 19:43:24 UTC) #14
Evan Stade
http://codereview.chromium.org/2800015/diff/12026/26022 File chrome/browser/wrench_menu_model.h (right): http://codereview.chromium.org/2800015/diff/12026/26022#newcode39 chrome/browser/wrench_menu_model.h:39: public menus::ButtonMenuItemModel::Delegate, On 2010/06/23 19:43:24, Elliot Glaysher wrote: > ...
10 years, 6 months ago (2010-06-23 20:06:48 UTC) #15
Elliot Glaysher
On Wed, Jun 23, 2010 at 1:06 PM, <estade@chromium.org> wrote: > well the reason I ...
10 years, 6 months ago (2010-06-23 23:59:24 UTC) #16
Evan Stade
http://codereview.chromium.org/2800015/diff/12026/26022 File chrome/browser/wrench_menu_model.h (right): http://codereview.chromium.org/2800015/diff/12026/26022#newcode39 chrome/browser/wrench_menu_model.h:39: public menus::ButtonMenuItemModel::Delegate, I thought it would be a problem ...
10 years, 6 months ago (2010-06-24 00:15:05 UTC) #17
Elliot Glaysher
On Wed, Jun 23, 2010 at 5:15 PM, <estade@chromium.org> wrote: > > http://codereview.chromium.org/2800015/diff/12026/26022 > File ...
10 years, 6 months ago (2010-06-24 00:22:51 UTC) #18
Evan Stade
10 years, 6 months ago (2010-06-24 19:34:26 UTC) #19
ok, thanks for answering my Qs. LGTM

http://codereview.chromium.org/2800015/diff/34002/35014
File chrome/browser/gtk/gtk_util.cc (right):

http://codereview.chromium.org/2800015/diff/34002/35014#newcode474
chrome/browser/gtk/gtk_util.cc:474: std::string
RemoveWindowsStyleAccelerators(const std::string& label) {
can we share the code with the above? make a
ReplaceWindowsStyleAcceleratorWith() helper perhaps?

Powered by Google App Engine
This is Rietveld 408576698