OLD | NEW |
---|---|
(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_ | |
OLD | NEW |