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

Side by Side Diff: chrome/browser/dom_ui/options/about_page_handler.h

Issue 3858002: Show "Update Chrome OS" in the wrench menu, when the update image is ready. (Closed)
Patch Set: bubble Created 10 years, 2 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/dom_ui/options/about_page_handler.cc » ('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) 2010 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 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/dom_ui/options/options_ui.h" 10 #include "chrome/browser/dom_ui/options/options_ui.h"
(...skipping 11 matching lines...) Expand all
22 22
23 // OptionsUIHandler implementation. 23 // OptionsUIHandler implementation.
24 virtual void GetLocalizedValues(DictionaryValue* localized_strings); 24 virtual void GetLocalizedValues(DictionaryValue* localized_strings);
25 virtual void RegisterMessages(); 25 virtual void RegisterMessages();
26 26
27 private: 27 private:
28 28
29 void PageReady(const ListValue* args); 29 void PageReady(const ListValue* args);
30 30
31 #if defined(OS_CHROMEOS) 31 #if defined(OS_CHROMEOS)
32 // Initiates update check.
32 void CheckNow(const ListValue* args); 33 void CheckNow(const ListValue* args);
34
35 // Restarts the system.
36 void RestartNow(const ListValue* args);
37
33 // Callback from chromeos::VersionLoader giving the version. 38 // Callback from chromeos::VersionLoader giving the version.
34 void OnOSVersion(chromeos::VersionLoader::Handle handle, 39 void OnOSVersion(chromeos::VersionLoader::Handle handle,
35 std::string version); 40 std::string version);
36 void UpdateStatus(const chromeos::UpdateLibrary::Status& status); 41 void UpdateStatus(const chromeos::UpdateLibrary::Status& status);
37 42
38 // Handles asynchronously loading the version. 43 // Handles asynchronously loading the version.
39 chromeos::VersionLoader loader_; 44 chromeos::VersionLoader loader_;
40 45
41 // Used to request the version. 46 // Used to request the version.
42 CancelableRequestConsumer consumer_; 47 CancelableRequestConsumer consumer_;
43 48
44 // Update Observer 49 // Update Observer
45 class UpdateObserver; 50 class UpdateObserver;
46 scoped_ptr<UpdateObserver> update_observer_; 51 scoped_ptr<UpdateObserver> update_observer_;
47 52
48 int progress_; 53 int progress_;
49 bool sticky_; 54 bool sticky_;
50 bool started_; 55 bool started_;
51 #endif 56 #endif
52 57
53 DISALLOW_COPY_AND_ASSIGN(AboutPageHandler); 58 DISALLOW_COPY_AND_ASSIGN(AboutPageHandler);
54 }; 59 };
55 60
56 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_ABOUT_PAGE_HANDLER_H_ 61 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_ABOUT_PAGE_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/dom_ui/options/about_page_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698