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

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

Issue 10384079: Reland "Implement random wallpaper feature" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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_CHROMEOS_SET_WALLPAPER_OPTIONS_HANDLER2 _H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_SET_WALLPAPER_OPTIONS_HANDLER2 _H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_SET_WALLPAPER_OPTIONS_HANDLER2 _H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_SET_WALLPAPER_OPTIONS_HANDLER2 _H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "chrome/browser/ui/webui/options2/options_ui2.h" 9 #include "chrome/browser/ui/webui/options2/options_ui2.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
(...skipping 22 matching lines...) Expand all
33 private: 33 private:
34 // Sends list of available default images to the page. 34 // Sends list of available default images to the page.
35 void SendDefaultImages(); 35 void SendDefaultImages();
36 36
37 // Handles page initialized event. 37 // Handles page initialized event.
38 void HandlePageInitialized(const base::ListValue* args); 38 void HandlePageInitialized(const base::ListValue* args);
39 39
40 // Handles page shown event. 40 // Handles page shown event.
41 void HandlePageShown(const base::ListValue* args); 41 void HandlePageShown(const base::ListValue* args);
42 42
43 // Selects one of the available images. 43 // Selects one of the available default wallpapers.
44 void HandleSelectImage(const base::ListValue* args); 44 void HandleDefaultWallpaper(const base::ListValue* args);
45
46 // Sets user wallpaper to a random one from the default wallpapers.
47 void HandleRandomWallpaper(const base::ListValue* args);
45 48
46 // Returns handle to browser window or NULL if it can't be found. 49 // Returns handle to browser window or NULL if it can't be found.
47 gfx::NativeWindow GetBrowserWindow() const; 50 gfx::NativeWindow GetBrowserWindow() const;
48 51
49 base::WeakPtrFactory<SetWallpaperOptionsHandler> weak_factory_; 52 base::WeakPtrFactory<SetWallpaperOptionsHandler> weak_factory_;
50 53
51 DISALLOW_COPY_AND_ASSIGN(SetWallpaperOptionsHandler); 54 DISALLOW_COPY_AND_ASSIGN(SetWallpaperOptionsHandler);
52 }; 55 };
53 56
54 } // namespace options2 57 } // namespace options2
55 } // namespace chromeos 58 } // namespace chromeos
56 59
57 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_SET_WALLPAPER_OPTIONS_HANDL ER2_H_ 60 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_SET_WALLPAPER_OPTIONS_HANDL ER2_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698