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

Side by Side 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, 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 // 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.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_STARTUP_PAGES_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_STARTUP_PAGES_HANDLER_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/ui/webui/settings/md_settings_ui.h"
10 #include "ui/base/models/table_model_observer.h"
11
12 class CustomHomePagesTableModel;
13
14 namespace settings {
15
16 // Chrome browser settings page UI handler.
17 class StartupPagesHandler : public SettingsPageUIHandler,
18 public ui::TableModelObserver {
19 public:
20 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
21 ~StartupPagesHandler() override;
22
23 // OptionsPageUIHandler implementation.
24 void RegisterMessages() override;
25
26 // ui::TableModelObserver implementation.
Dan Beam 2015/09/02 07:31:23 just // ui::TableModelObserver: the " implemen
dschuyler 2015/09/02 19:38:21 Done.
27 void OnModelChanged() override;
28 void OnItemsChanged(int start, int length) override;
29 void OnItemsAdded(int start, int length) override;
30 void OnItemsRemoved(int start, int length) override;
31
32 private:
33 // Sets the startup page set to the current pages. Called from WebUI.
34 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.
35
36 scoped_ptr<CustomHomePagesTableModel> startup_custom_pages_table_model_;
37
38 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.
39 };
40
41 } // namespace settings
42
43 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_STARTUP_PAGES_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698