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

Side by Side Diff: chrome/browser/ui/webui/options2/startup_pages_handler2.h

Issue 9693032: [uber page] Split up initialization of handlers from initialization of webui pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright bumps Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_STARTUP_PAGES_HANDLER2_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_STARTUP_PAGES_HANDLER2_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_STARTUP_PAGES_HANDLER2_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_STARTUP_PAGES_HANDLER2_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 11 matching lines...) Expand all
22 namespace options2 { 22 namespace options2 {
23 23
24 // Chrome browser options page UI handler. 24 // Chrome browser options page UI handler.
25 class StartupPagesHandler : public OptionsPageUIHandler, 25 class StartupPagesHandler : public OptionsPageUIHandler,
26 public AutocompleteControllerDelegate, 26 public AutocompleteControllerDelegate,
27 public ui::TableModelObserver { 27 public ui::TableModelObserver {
28 public: 28 public:
29 StartupPagesHandler(); 29 StartupPagesHandler();
30 virtual ~StartupPagesHandler(); 30 virtual ~StartupPagesHandler();
31 31
32 virtual void Initialize() OVERRIDE;
33
34 // OptionsPageUIHandler implementation. 32 // OptionsPageUIHandler implementation.
35 virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE; 33 virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE;
34 virtual void InitializeHandler() OVERRIDE;
35 virtual void InitializePage() OVERRIDE;
36 virtual void RegisterMessages() OVERRIDE; 36 virtual void RegisterMessages() OVERRIDE;
37 37
38 // AutocompleteControllerDelegate implementation. 38 // AutocompleteControllerDelegate implementation.
39 virtual void OnResultChanged(bool default_match_changed) OVERRIDE; 39 virtual void OnResultChanged(bool default_match_changed) OVERRIDE;
40 40
41 // ui::TableModelObserver implementation. 41 // ui::TableModelObserver implementation.
42 virtual void OnModelChanged() OVERRIDE; 42 virtual void OnModelChanged() OVERRIDE;
43 virtual void OnItemsChanged(int start, int length) OVERRIDE; 43 virtual void OnItemsChanged(int start, int length) OVERRIDE;
44 virtual void OnItemsAdded(int start, int length) OVERRIDE; 44 virtual void OnItemsAdded(int start, int length) OVERRIDE;
45 virtual void OnItemsRemoved(int start, int length) OVERRIDE; 45 virtual void OnItemsRemoved(int start, int length) OVERRIDE;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // CustomHomePagesTableModel, consider changing it to something more like 93 // CustomHomePagesTableModel, consider changing it to something more like
94 // TemplateURLService. 94 // TemplateURLService.
95 scoped_ptr<CustomHomePagesTableModel> startup_custom_pages_table_model_; 95 scoped_ptr<CustomHomePagesTableModel> startup_custom_pages_table_model_;
96 96
97 DISALLOW_COPY_AND_ASSIGN(StartupPagesHandler); 97 DISALLOW_COPY_AND_ASSIGN(StartupPagesHandler);
98 }; 98 };
99 99
100 } // namespace options2 100 } // namespace options2
101 101
102 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_STARTUP_PAGES_HANDLER2_H_ 102 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_STARTUP_PAGES_HANDLER2_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698