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

Issue 10797054: Use NSMenuDelegate for browser action overflow menu to update it upon opening. (Closed)

Created:
8 years, 5 months ago by Yoyo Zhou
Modified:
8 years, 5 months ago
Reviewers:
Robert Sesek
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org
Visibility:
Public.

Description

Use NSMenuDelegate for browser action overflow menu to update it upon opening. Makes the overflow menu on cocoa update properly. BUG=133094 TEST=Enable script badges; have extensions with page actions; resize the browser action area to put some of the in the overflow menu; observe them changing state upon tab switches. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=147950

Patch Set 1 #

Total comments: 6

Patch Set 2 : rsesek #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -67 lines) Patch
M chrome/browser/ui/cocoa/extensions/browser_action_button.h View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/browser_action_button.mm View 2 chunks +0 lines, -7 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/browser_actions_controller.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm View 1 10 chunks +27 lines, -55 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Yoyo Zhou
8 years, 5 months ago (2012-07-20 22:20:01 UTC) #1
Yoyo Zhou
On 2012/07/20 22:20:01, Yoyo Zhou wrote: I meant to write: Is there a convention for ...
8 years, 5 months ago (2012-07-20 22:22:08 UTC) #2
Robert Sesek
On 2012/07/20 22:22:08, Yoyo Zhou wrote: > On 2012/07/20 22:20:01, Yoyo Zhou wrote: > > ...
8 years, 5 months ago (2012-07-23 16:21:08 UTC) #3
Yoyo Zhou
On 2012/07/23 16:21:08, rsesek wrote: > On 2012/07/20 22:22:08, Yoyo Zhou wrote: > > On ...
8 years, 5 months ago (2012-07-23 17:22:43 UTC) #4
Robert Sesek
On 2012/07/23 17:22:43, Yoyo Zhou wrote: > On 2012/07/23 16:21:08, rsesek wrote: > > On ...
8 years, 5 months ago (2012-07-23 17:24:54 UTC) #5
Robert Sesek
http://chromiumcodereview.appspot.com/10797054/diff/1/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm File chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm (right): http://chromiumcodereview.appspot.com/10797054/diff/1/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm#newcode169 chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm:169: - (void)menuNeedsUpdate:(NSMenu*)menu; Can remove http://chromiumcodereview.appspot.com/10797054/diff/1/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm#newcode794 chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm:794: [menu removeAllItems]; nit: ...
8 years, 5 months ago (2012-07-23 17:39:39 UTC) #6
Yoyo Zhou
I moved -menuNeedsUpdate: to where you suggested. http://chromiumcodereview.appspot.com/10797054/diff/1/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm File chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm (right): http://chromiumcodereview.appspot.com/10797054/diff/1/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm#newcode169 chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm:169: - (void)menuNeedsUpdate:(NSMenu*)menu; ...
8 years, 5 months ago (2012-07-23 18:47:24 UTC) #7
Robert Sesek
8 years, 5 months ago (2012-07-23 18:47:50 UTC) #8
lgtm

Powered by Google App Engine
This is Rietveld 408576698