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

Issue 9554007: [uber page] Remove obsolete subpage logic. (Closed)

Created:
8 years, 9 months ago by csilv
Modified:
8 years, 9 months ago
Reviewers:
James Hawkins, Dan Beam
CC:
chromium-reviews, arv (Not doing code reviews)
Visibility:
Public.

Description

[uber page] Remove obsolete subpage logic. BUG=116107 TEST=Verify that options page opens, no js errors, functional. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=125074

Patch Set 1 : #

Total comments: 7

Patch Set 2 : code review tweaks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -338 lines) Patch
M chrome/browser/resources/options2/options.html View 2 chunks +0 lines, -6 lines 0 comments Download
M chrome/browser/resources/options2/options.js View 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/resources/options2/options_page.css View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/resources/options2/options_page.js View 1 17 chunks +19 lines, -320 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
csilv
+jhawkins, dbeam for review.
8 years, 9 months ago (2012-03-06 00:14:16 UTC) #1
James Hawkins
lgtm
8 years, 9 months ago (2012-03-06 00:15:42 UTC) #2
Dan Beam
http://codereview.chromium.org/9554007/diff/6/chrome/browser/resources/options2/options_page.js File chrome/browser/resources/options2/options_page.js (left): http://codereview.chromium.org/9554007/diff/6/chrome/browser/resources/options2/options_page.js#oldcode173 chrome/browser/resources/options2/options_page.js:173: OptionsPage.updateAriaHiddenForPages_ = function() { don't we want to do ...
8 years, 9 months ago (2012-03-06 00:31:41 UTC) #3
csilv
http://codereview.chromium.org/9554007/diff/6/chrome/browser/resources/options2/options_page.js File chrome/browser/resources/options2/options_page.js (left): http://codereview.chromium.org/9554007/diff/6/chrome/browser/resources/options2/options_page.js#oldcode173 chrome/browser/resources/options2/options_page.js:173: OptionsPage.updateAriaHiddenForPages_ = function() { On 2012/03/06 00:31:41, Dan Beam ...
8 years, 9 months ago (2012-03-06 01:03:03 UTC) #4
Dan Beam
8 years, 9 months ago (2012-03-06 01:57:37 UTC) #5
lgtm

http://codereview.chromium.org/9554007/diff/6/chrome/browser/resources/option...
File chrome/browser/resources/options2/options_page.js (left):

http://codereview.chromium.org/9554007/diff/6/chrome/browser/resources/option...
chrome/browser/resources/options2/options_page.js:173:
OptionsPage.updateAriaHiddenForPages_ = function() {
On 2012/03/06 01:03:04, csilv wrote:
> On 2012/03/06 00:31:41, Dan Beam wrote:
> > don't we want to do this for overlays?
> 
> Perhaps, but that should probably be in overlay.js rather than here.  Note
that
> in this implementation (and in the old settings page), this method is invoked
> *only* when a sub-page is shown or hidden.  So currently, it is simply dead
> code, thus the removal.

I see what you mean, but it seems reasonable to do it partially here, though, as
overlay.js probably shouldn't know about:

  a) the relation of each overlay to eachother
  b) about options pages

right? Maybe we could just add handlers in OptionPage's (and derived)
didShowPage() (as well as pass a boolean to say whether it'll be the foreground
page as well) or didClosePage() and each overlay could affect itself or it's
pageDiv.

Either way, Evan told me this didn't work for overlays/dialogs previously, so
nothing is being lost here, so we'll just do this in a different CL, :).

Powered by Google App Engine
This is Rietveld 408576698