diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-19 14:12:23 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-19 14:12:23 +0000 |
commit | 1ab7761d57f2144fac3f03958e571410b595a2b9 (patch) | |
tree | b955a9d1e73f56d953339e852a7402faf9141a09 /chrome/browser/webui/options/add_startup_page_handler.h | |
parent | c1338959f5d9fa970750a3007c52f3151b877232 (diff) | |
download | chromium_src-1ab7761d57f2144fac3f03958e571410b595a2b9.zip chromium_src-1ab7761d57f2144fac3f03958e571410b595a2b9.tar.gz chromium_src-1ab7761d57f2144fac3f03958e571410b595a2b9.tar.bz2 |
WebUI: Move chrome/browser/dom_ui/options/ to chrome/browser/webui/options.
To reduce the size of this change I've left stub header files in chrome/browser/dom_ui/options.
I'll updated the references and delete the stub files later.
BUG=59945, 59946
TEST=trybots
Review URL: http://codereview.chromium.org/6469067
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75496 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/webui/options/add_startup_page_handler.h')
-rw-r--r-- | chrome/browser/webui/options/add_startup_page_handler.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/chrome/browser/webui/options/add_startup_page_handler.h b/chrome/browser/webui/options/add_startup_page_handler.h new file mode 100644 index 0000000..3cc915f --- /dev/null +++ b/chrome/browser/webui/options/add_startup_page_handler.h @@ -0,0 +1,43 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_BROWSER_WEBUI_OPTIONS_ADD_STARTUP_PAGE_HANDLER_H_ +#define CHROME_BROWSER_WEBUI_OPTIONS_ADD_STARTUP_PAGE_HANDLER_H_ +#pragma once + +#include "base/basictypes.h" +#include "chrome/browser/dom_ui/options/options_ui.h" +#include "ui/base/models/table_model_observer.h" + +class PossibleURLModel; + +// Chrome personal options page UI handler. +class AddStartupPageHandler : public OptionsPageUIHandler, + public ui::TableModelObserver { + public: + AddStartupPageHandler(); + virtual ~AddStartupPageHandler(); + + // OptionsPageUIHandler implementation. + virtual void Initialize(); + virtual void GetLocalizedValues(DictionaryValue* localized_strings); + virtual void RegisterMessages(); + + // ui::TableModelObserver implementation. + virtual void OnModelChanged(); + virtual void OnItemsChanged(int start, int length); + virtual void OnItemsAdded(int start, int length); + virtual void OnItemsRemoved(int start, int length); + + private: + // Request to update the text field with the URL of the recent page at the + // given index, formatted for user input. Called from WebUI. + void UpdateFieldWithRecentPage(const ListValue* args); + + scoped_ptr<PossibleURLModel> url_table_model_; + + DISALLOW_COPY_AND_ASSIGN(AddStartupPageHandler); +}; + +#endif // CHROME_BROWSER_WEBUI_OPTIONS_ADD_STARTUP_PAGE_HANDLER_H_ |