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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
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_WEBUI_OPTIONS_ADD_STARTUP_PAGE_HANDLER_H_
6 #define CHROME_BROWSER_WEBUI_OPTIONS_ADD_STARTUP_PAGE_HANDLER_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "chrome/browser/dom_ui/options/options_ui.h"
11 #include "ui/base/models/table_model_observer.h"
12
13 class PossibleURLModel;
14
15 // Chrome personal options page UI handler.
16 class AddStartupPageHandler : public OptionsPageUIHandler,
17 public ui::TableModelObserver {
18 public:
19 AddStartupPageHandler();
20 virtual ~AddStartupPageHandler();
21
22 // OptionsPageUIHandler implementation.
23 virtual void Initialize();
24 virtual void GetLocalizedValues(DictionaryValue* localized_strings);
25 virtual void RegisterMessages();
26
27 // ui::TableModelObserver implementation.
28 virtual void OnModelChanged();
29 virtual void OnItemsChanged(int start, int length);
30 virtual void OnItemsAdded(int start, int length);
31 virtual void OnItemsRemoved(int start, int length);
32
33 private:
34 // Request to update the text field with the URL of the recent page at the
35 // given index, formatted for user input. Called from WebUI.
36 void UpdateFieldWithRecentPage(const ListValue* args);
37
38 scoped_ptr<PossibleURLModel> url_table_model_;
39
40 DISALLOW_COPY_AND_ASSIGN(AddStartupPageHandler);
41 };
42
43 #endif // CHROME_BROWSER_WEBUI_OPTIONS_ADD_STARTUP_PAGE_HANDLER_H_
OLDNEW
« 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