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

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

Issue 10857071: Options: Rename options2 namespace to options. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix. Created 8 years, 4 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_HANDLER_ H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_SET_WALLPAPER_OPTIONS_HANDLER_ H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_SET_WALLPAPER_OPTIONS_HANDLER_ H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_SET_WALLPAPER_OPTIONS_HANDLER_ H_
7 7
8 #include "ash/desktop_background/desktop_background_resources.h" 8 #include "ash/desktop_background/desktop_background_resources.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "chrome/browser/ui/webui/options2/options_ui.h" 10 #include "chrome/browser/ui/webui/options2/options_ui.h"
(...skipping 10 matching lines...) Expand all
21 class WallpaperDelegate { 21 class WallpaperDelegate {
22 public: 22 public:
23 // Call javascript function to add/update custom wallpaper thumbnail in 23 // Call javascript function to add/update custom wallpaper thumbnail in
24 // picker UI. 24 // picker UI.
25 virtual void SetCustomWallpaperThumbnail() = 0; 25 virtual void SetCustomWallpaperThumbnail() = 0;
26 26
27 protected: 27 protected:
28 virtual ~WallpaperDelegate() {} 28 virtual ~WallpaperDelegate() {}
29 }; 29 };
30 30
31 namespace options2 { 31 namespace options {
32 32
33 // ChromeOS user image options page UI handler. 33 // ChromeOS user image options page UI handler.
34 class SetWallpaperOptionsHandler : public ::options2::OptionsPageUIHandler, 34 class SetWallpaperOptionsHandler : public ::options::OptionsPageUIHandler,
35 public ui::SelectFileDialog::Listener, 35 public ui::SelectFileDialog::Listener,
36 public WallpaperDelegate { 36 public WallpaperDelegate {
37 public: 37 public:
38 SetWallpaperOptionsHandler(); 38 SetWallpaperOptionsHandler();
39 virtual ~SetWallpaperOptionsHandler(); 39 virtual ~SetWallpaperOptionsHandler();
40 40
41 // OptionsPageUIHandler implementation. 41 // OptionsPageUIHandler implementation.
42 virtual void GetLocalizedValues( 42 virtual void GetLocalizedValues(
43 base::DictionaryValue* localized_strings) OVERRIDE; 43 base::DictionaryValue* localized_strings) OVERRIDE;
44 44
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 gfx::NativeWindow GetBrowserWindow() const; 83 gfx::NativeWindow GetBrowserWindow() const;
84 84
85 // Shows a dialog box for selecting a file. 85 // Shows a dialog box for selecting a file.
86 scoped_refptr<ui::SelectFileDialog> select_file_dialog_; 86 scoped_refptr<ui::SelectFileDialog> select_file_dialog_;
87 87
88 base::WeakPtrFactory<SetWallpaperOptionsHandler> weak_factory_; 88 base::WeakPtrFactory<SetWallpaperOptionsHandler> weak_factory_;
89 89
90 DISALLOW_COPY_AND_ASSIGN(SetWallpaperOptionsHandler); 90 DISALLOW_COPY_AND_ASSIGN(SetWallpaperOptionsHandler);
91 }; 91 };
92 92
93 } // namespace options2 93 } // namespace options
94 } // namespace chromeos 94 } // namespace chromeos
95 95
96 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_SET_WALLPAPER_OPTIONS_HANDL ER_H_ 96 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_SET_WALLPAPER_OPTIONS_HANDL ER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698