Split OptionsPage into Page and PageManager.
commitcfaf0e2b55f4fb5dac1fcc950a9454d705afc348
authormichaelpg@chromium.org <michaelpg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 31 Jul 2014 16:46:06 +0000 (31 16:46 +0000)
committermichaelpg@chromium.org <michaelpg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 31 Jul 2014 16:46:06 +0000 (31 16:46 +0000)
tree27fad6f6e3b02bc4758bcff57c508e0a96e77710
parentb5a2eabfbaba53b9a089daac4dfb4e14ded61a09
Split OptionsPage into Page and PageManager.

This is the first step toward consolidating OptionsPage with similar code
in HelpBasePage.

I know this looks huge, but it's mostly renames -- the only changes
that aren't trivial are in:
* c/b/resources/options/options_page.js
* ui/webui/resources/js/cr/ui/page_helper/page.js
* ui/webui/resources/js/cr/ui/page_helper/page_manager.js

==========

This CL moves parts of OptionsPage to the new PageManager and Page objects.
These changes are essentally renames that shouldn't affect functionality.

cr.ui.pageManager.PageManager maintains a list of pages & overlays and can
show and hide overlays, scroll around as needed, etc. Basically what the
OptionsPage "static" members do for overlays.

cr.ui.pageManager.Page is basically the same as the OptionsPage prototype,
the essential attributes of each page/overlay. These will be managed by
the PageManager. Overlays and root pages like BrowserOptions will now descend
from Page.

These may not be the best names, and I don't know if cr.ui as at all the best
place for these classes -- let me know if you object or have better ideas.
Thanks.

==========

Future work:

* Move some logic back to OptionsPage by way of a handler to make
Page and PageManager independent of OptionsPage (e.g., for uber events,
history, and so forth)
* Transition the About page to use Page and PageManager and remove the
old code.
* Separate out bubble logic from general page manipulation.

==========

R=dbeam@chromium.org,stevenjb@chromium.org,

BUG=313244

Review URL: https://codereview.chromium.org/410293004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286820 0039d316-1c4b-4281-b951-d872f2087c98
73 files changed:
chrome/browser/resources/chromeos/bluetooth_options.js
chrome/browser/resources/chromeos/bluetooth_pair_device.html
chrome/browser/resources/chromeos/bluetooth_pair_device.js
chrome/browser/resources/chromeos/browser_options.js
chrome/browser/resources/chromeos/certificate_manager_dialog.html
chrome/browser/resources/chromeos/certificate_manager_dialog.js
chrome/browser/resources/chromeos/fake_bluetooth_overlay_parent.js
chrome/browser/resources/chromeos/proxy_settings.html
chrome/browser/resources/chromeos/proxy_settings.js
chrome/browser/resources/options/alert_overlay.js
chrome/browser/resources/options/autofill_edit_address_overlay.js
chrome/browser/resources/options/autofill_edit_creditcard_overlay.js
chrome/browser/resources/options/autofill_options.js
chrome/browser/resources/options/automatic_settings_reset_banner.js
chrome/browser/resources/options/browser_options.js
chrome/browser/resources/options/certificate_backup_overlay.js
chrome/browser/resources/options/certificate_edit_ca_trust_overlay.js
chrome/browser/resources/options/certificate_import_error_overlay.js
chrome/browser/resources/options/certificate_manager.js
chrome/browser/resources/options/certificate_restore_overlay.js
chrome/browser/resources/options/chromeos/accounts_options.js
chrome/browser/resources/options/chromeos/bluetooth_add_device_overlay.js
chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js
chrome/browser/resources/options/chromeos/change_picture_options.js
chrome/browser/resources/options/chromeos/consumer_management_overlay.js
chrome/browser/resources/options/chromeos/display_options.js
chrome/browser/resources/options/chromeos/display_overscan.js
chrome/browser/resources/options/chromeos/internet_detail.js
chrome/browser/resources/options/chromeos/keyboard_overlay.js
chrome/browser/resources/options/chromeos/network_list.js
chrome/browser/resources/options/chromeos/preferred_networks.js
chrome/browser/resources/options/chromeos/third_party_ime_confirm_overlay.js
chrome/browser/resources/options/clear_browser_data_overlay.js
chrome/browser/resources/options/confirm_dialog.js
chrome/browser/resources/options/content_settings.js
chrome/browser/resources/options/content_settings_exceptions_area.js
chrome/browser/resources/options/controlled_setting.js
chrome/browser/resources/options/cookies_view.js
chrome/browser/resources/options/factory_reset_overlay.js
chrome/browser/resources/options/font_settings.js
chrome/browser/resources/options/geolocation_options.js
chrome/browser/resources/options/handler_options.js
chrome/browser/resources/options/home_page_overlay.js
chrome/browser/resources/options/hotword_confirm_dialog.js
chrome/browser/resources/options/hotword_search_setting_indicator.js
chrome/browser/resources/options/import_data_overlay.js
chrome/browser/resources/options/language_add_language_overlay.js
chrome/browser/resources/options/language_dictionary_overlay.js
chrome/browser/resources/options/language_options.js
chrome/browser/resources/options/manage_profile_overlay.js
chrome/browser/resources/options/options.html
chrome/browser/resources/options/options.js
chrome/browser/resources/options/options_focus_manager.js
chrome/browser/resources/options/options_page.js
chrome/browser/resources/options/options_settings_app.js
chrome/browser/resources/options/password_manager.js
chrome/browser/resources/options/reset_profile_settings_banner.js
chrome/browser/resources/options/reset_profile_settings_overlay.js
chrome/browser/resources/options/search_engine_manager.js
chrome/browser/resources/options/search_page.js
chrome/browser/resources/options/settings_dialog.js
chrome/browser/resources/options/startup_overlay.js
chrome/browser/resources/options/supervised_user_create_confirm.js
chrome/browser/resources/options/supervised_user_import.js
chrome/browser/resources/options/supervised_user_learn_more.js
chrome/browser/resources/options/website_settings.js
chrome/browser/resources/sync_setup_overlay.js
chrome/browser/ui/webui/options/manage_profile_browsertest.js
chrome/browser/ui/webui/options/options_browsertest.js
chrome/browser/ui/webui/sync_setup_browsertest.js
ui/webui/resources/js/cr/ui/page_manager/page.js [new file with mode: 0644]
ui/webui/resources/js/cr/ui/page_manager/page_manager.js [new file with mode: 0644]
ui/webui/resources/webui_resources.grd