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

Unified Diff: chrome/browser/ui/webui/settings/startup_pages_handler.h

Issue 1323443006: [MD settings] pulling in chrome.send for using current pages for on startup pages] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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/ui/webui/settings/startup_pages_handler.h
diff --git a/chrome/browser/ui/webui/settings/startup_pages_handler.h b/chrome/browser/ui/webui/settings/startup_pages_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..bac1f869804f091fdaeb2e90e572409b35413024
--- /dev/null
+++ b/chrome/browser/ui/webui/settings/startup_pages_handler.h
@@ -0,0 +1,43 @@
+// Copyright (c) 2012-2015 The Chromium Authors. All rights reserved.
Dan Beam 2015/09/02 07:31:23 only 2015, no (c)
dschuyler 2015/09/02 19:38:21 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_STARTUP_PAGES_HANDLER_H_
+#define CHROME_BROWSER_UI_WEBUI_SETTINGS_STARTUP_PAGES_HANDLER_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "chrome/browser/ui/webui/settings/md_settings_ui.h"
+#include "ui/base/models/table_model_observer.h"
+
+class CustomHomePagesTableModel;
+
+namespace settings {
+
+// Chrome browser settings page UI handler.
+class StartupPagesHandler : public SettingsPageUIHandler,
+ public ui::TableModelObserver {
+ public:
+ explicit StartupPagesHandler(content::WebUI* webui);
Dan Beam 2015/09/02 07:31:23 where does content::WebUI come from?
dschuyler 2015/09/02 19:38:21 I'm not sure if you're asking for the file it's de
+ ~StartupPagesHandler() override;
+
+ // OptionsPageUIHandler implementation.
+ void RegisterMessages() override;
+
+ // ui::TableModelObserver implementation.
Dan Beam 2015/09/02 07:31:23 just // ui::TableModelObserver: the " implemen
dschuyler 2015/09/02 19:38:21 Done.
+ void OnModelChanged() override;
+ void OnItemsChanged(int start, int length) override;
+ void OnItemsAdded(int start, int length) override;
+ void OnItemsRemoved(int start, int length) override;
+
+ private:
+ // Sets the startup page set to the current pages. Called from WebUI.
+ void SetStartupPagesToCurrentPages(const base::ListValue* args);
Dan Beam 2015/09/02 07:31:23 forward declare base::ListValue
dschuyler 2015/09/02 19:38:21 Done.
+
+ scoped_ptr<CustomHomePagesTableModel> startup_custom_pages_table_model_;
+
+ DISALLOW_COPY_AND_ASSIGN(StartupPagesHandler);
Dan Beam 2015/09/02 07:31:23 #include "base/macros.h"
dschuyler 2015/09/02 19:38:21 Done.
+};
+
+} // namespace settings
+
+#endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_STARTUP_PAGES_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698