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

Side by Side Diff: chrome/browser/dom_ui/options/about_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
« no previous file with comments | « no previous file | chrome/browser/dom_ui/options/add_startup_page_handler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 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 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_DOM_UI_OPTIONS_ABOUT_PAGE_HANDLER_H_ 5 #ifndef CHROME_BROWSER_DOM_UI_OPTIONS_ABOUT_PAGE_HANDLER_H_
6 #define CHROME_BROWSER_DOM_UI_OPTIONS_ABOUT_PAGE_HANDLER_H_ 6 #define CHROME_BROWSER_DOM_UI_OPTIONS_ABOUT_PAGE_HANDLER_H_
7 #pragma once
7 8
8 #include <string> 9 #include "chrome/browser/webui/options/about_page_handler.h"
9 10 // TODO(tfarina): remove this file once all includes have been updated.
10 #include "chrome/browser/dom_ui/options/options_ui.h"
11
12 #if defined(OS_CHROMEOS)
13 #include "chrome/browser/chromeos/cros/update_library.h"
14 #include "chrome/browser/chromeos/version_loader.h"
15 #endif
16
17 // ChromeOS about page UI handler.
18 class AboutPageHandler : public OptionsPageUIHandler {
19 public:
20 AboutPageHandler();
21 virtual ~AboutPageHandler();
22
23 // OptionsUIHandler implementation.
24 virtual void GetLocalizedValues(DictionaryValue* localized_strings);
25 virtual void RegisterMessages();
26
27 private:
28 // The function is called from JavaScript when the about page is ready.
29 void PageReady(const ListValue* args);
30
31 // The function is called from JavaScript to set the release track like
32 // "beta-channel" and "dev-channel".
33 void SetReleaseTrack(const ListValue* args);
34
35 #if defined(OS_CHROMEOS)
36 // Initiates update check.
37 void CheckNow(const ListValue* args);
38
39 // Restarts the system.
40 void RestartNow(const ListValue* args);
41
42 // Callback from chromeos::VersionLoader giving the version.
43 void OnOSVersion(chromeos::VersionLoader::Handle handle,
44 std::string version);
45 void UpdateStatus(const chromeos::UpdateLibrary::Status& status);
46
47 // Handles asynchronously loading the version.
48 chromeos::VersionLoader loader_;
49
50 // Used to request the version.
51 CancelableRequestConsumer consumer_;
52
53 // Update Observer
54 class UpdateObserver;
55 scoped_ptr<UpdateObserver> update_observer_;
56
57 int progress_;
58 bool sticky_;
59 bool started_;
60 #endif
61
62 DISALLOW_COPY_AND_ASSIGN(AboutPageHandler);
63 };
64 11
65 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_ABOUT_PAGE_HANDLER_H_ 12 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_ABOUT_PAGE_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/dom_ui/options/add_startup_page_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698