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

Unified Diff: chrome/browser/webui/options/add_startup_page_handler.h

Issue 6469067: WebUI: Move chrome/browser/dom_ui/options/ to chrome/browser/webui/options. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missing mac files Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/webui/options/add_startup_page_handler.h
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 0000000000000000000000000000000000000000..3cc915f6e0150f461af9fa3cf1b5e00ece6b9a8c
--- /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_
« no previous file with comments | « chrome/browser/webui/options/about_page_handler.cc ('k') | chrome/browser/webui/options/add_startup_page_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698