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

Issue 2878037: [Mac]Implement ViewID support. (third approach) (Closed)

Created:
10 years, 5 months ago by James Su
Modified:
9 years, 7 months ago
CC:
chromium-reviews, ben+cc_chromium.org, John Grabowski, Erik does not do reviews, Paul Godavari, brettw-cc_chromium.org, Aaron Boodman, pam+watch_chromium.org, Paweł Hajdan Jr., darin-cc_chromium.org
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

[Mac]Implement ViewID support. (third approach) This CL adds several extension methods to NSView class for ViewID support, and uses a map to store ViewIDs of views. Each view requiring ViewID support can set its ViewID upon initialization and unset it before destruction. When looking up a view with a specific ViewID, just search all sub views recursively from the root view of a window. BUG=44692 need ViewIds on mac TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=53067

Patch Set 1 #

Total comments: 10

Patch Set 2 : Update according to review feedback. #

Total comments: 9

Patch Set 3 : Update according to review feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+379 lines, -11 lines) Patch
M chrome/browser/cocoa/bookmark_bar_controller.mm View 1 2 3 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/cocoa/bookmark_bar_view.mm View 1 3 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/cocoa/bookmark_button.mm View 1 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/download_shelf_view.mm View 1 3 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/cocoa/extensions/browser_actions_container_view.mm View 1 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/find_bar_text_field.mm View 1 3 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/cocoa/find_bar_view.mm View 1 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/cocoa/infobar_container_controller.mm View 1 2 3 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/cocoa/location_bar/autocomplete_text_field.mm View 1 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/reload_button.mm View 1 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/tab_contents_controller.mm View 1 4 chunks +11 lines, -5 lines 0 comments Download
M chrome/browser/cocoa/tab_strip_controller.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/tab_strip_controller.mm View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/tab_strip_view.mm View 1 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/tab_view.mm View 1 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/toolbar_controller.mm View 1 3 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/toolbar_view.mm View 1 2 chunks +5 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/view_id_util.h View 1 1 chunk +51 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/view_id_util.mm View 1 2 1 chunk +87 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/view_id_util_browsertest.mm View 1 1 chunk +107 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_view_mac.mm View 1 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
James Su
10 years, 5 months ago (2010-07-20 02:07:26 UTC) #1
John Grabowski
LGTM from me. Adding trung to reviewers list. http://codereview.chromium.org/2878037/diff/1/4 File chrome/browser/cocoa/bookmark_button.mm (right): http://codereview.chromium.org/2878037/diff/1/4#newcode29 chrome/browser/cocoa/bookmark_button.mm:29: self ...
10 years, 5 months ago (2010-07-20 05:53:17 UTC) #2
Nico
http://codereview.chromium.org/2878037/diff/1/8 File chrome/browser/cocoa/find_bar_view.mm (right): http://codereview.chromium.org/2878037/diff/1/8#newcode22 chrome/browser/cocoa/find_bar_view.mm:22: [self setViewID:VIEW_ID_FIND_IN_PAGE]; here and in most other places, couldn't ...
10 years, 5 months ago (2010-07-20 06:01:15 UTC) #3
viettrungluu
+pink, since he might have opinions on this I'll echo what Nico said. Moreover, I ...
10 years, 5 months ago (2010-07-20 06:22:20 UTC) #4
John Grabowski
We need to stop this game. This is perhaps the 3rd rev of this CL. ...
10 years, 5 months ago (2010-07-20 07:29:08 UTC) #5
James Su
Hopefully it's the last version :) http://codereview.chromium.org/2878037/diff/1/4 File chrome/browser/cocoa/bookmark_button.mm (right): http://codereview.chromium.org/2878037/diff/1/4#newcode29 chrome/browser/cocoa/bookmark_button.mm:29: self = [super ...
10 years, 5 months ago (2010-07-20 08:48:53 UTC) #6
pink (ping after 24hrs)
Can someone explain why we need this mechanism? On Tue, Jul 20, 2010 at 4:48 ...
10 years, 5 months ago (2010-07-20 13:23:58 UTC) #7
Nico
LG I like the newest revision very much. I don't think the dealloc issue is ...
10 years, 5 months ago (2010-07-20 14:54:55 UTC) #8
Nico
On 2010/07/20 07:29:08, John Grabowski wrote: > We need to stop this game. > > ...
10 years, 5 months ago (2010-07-20 14:56:45 UTC) #9
viettrungluu
Overall, this is looking much nicer. Could you replace the map with associative references? It ...
10 years, 5 months ago (2010-07-20 15:19:48 UTC) #10
James Su
I'm afraid that it may not feasible for us, because associative references are only available ...
10 years, 5 months ago (2010-07-20 16:59:31 UTC) #11
vtl
You're right about associative refs and 10.6, sorry about that. I can't think of a ...
10 years, 5 months ago (2010-07-20 17:20:15 UTC) #12
James Su
May I commit it? http://codereview.chromium.org/2878037/diff/10001/11001 File chrome/browser/cocoa/bookmark_bar_controller.mm (right): http://codereview.chromium.org/2878037/diff/10001/11001#newcode1090 chrome/browser/cocoa/bookmark_bar_controller.mm:1090: // Overwrite the ViewID of ...
10 years, 5 months ago (2010-07-20 18:05:30 UTC) #13
viettrungluu
Thanks, I just wanted to make sure about the question below. LGTM. On 2010/07/20 18:05:30, ...
10 years, 5 months ago (2010-07-20 18:11:14 UTC) #14
James Su
10 years, 5 months ago (2010-07-20 18:18:28 UTC) #15
CL committed. Thanks a lot for your valuable feedback.

Powered by Google App Engine
This is Rietveld 408576698