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

Side by Side Diff: chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.h

Issue 7259019: Move base/values.h into the base namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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) 2011 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_UI_WEBUI_OPTIONS_CHROMEOS_CHANGE_PICTURE_OPTIONS_HANDLER_ H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CHANGE_PICTURE_OPTIONS_HANDLER_ H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CHANGE_PICTURE_OPTIONS_HANDLER_ H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CHANGE_PICTURE_OPTIONS_HANDLER_ H_
7 7
8 #include "chrome/browser/ui/shell_dialogs.h" 8 #include "chrome/browser/ui/shell_dialogs.h"
9 #include "chrome/browser/ui/webui/options/options_ui.h" 9 #include "chrome/browser/ui/webui/options/options_ui.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
11 11
12 namespace base {
12 class DictionaryValue; 13 class DictionaryValue;
13 class ListValue; 14 class ListValue;
15 }
14 16
15 namespace chromeos { 17 namespace chromeos {
16 18
17 // ChromeOS user image options page UI handler. 19 // ChromeOS user image options page UI handler.
18 class ChangePictureOptionsHandler : public OptionsPageUIHandler, 20 class ChangePictureOptionsHandler : public OptionsPageUIHandler,
19 public SelectFileDialog::Listener { 21 public SelectFileDialog::Listener {
20 public: 22 public:
21 ChangePictureOptionsHandler(); 23 ChangePictureOptionsHandler();
22 virtual ~ChangePictureOptionsHandler(); 24 virtual ~ChangePictureOptionsHandler();
23 25
24 // OptionsPageUIHandler implementation. 26 // OptionsPageUIHandler implementation.
25 virtual void GetLocalizedValues(DictionaryValue* localized_strings); 27 virtual void GetLocalizedValues(base::DictionaryValue* localized_strings);
26 28
27 // WebUIMessageHandler implementation. 29 // WebUIMessageHandler implementation.
28 virtual void RegisterMessages(); 30 virtual void RegisterMessages();
29 31
30 private: 32 private:
31 // Opens a file selection dialog to choose user image from file. 33 // Opens a file selection dialog to choose user image from file.
32 void ChooseFile(const ListValue* args); 34 void ChooseFile(const base::ListValue* args);
33 35
34 // Opens the camera capture dialog. 36 // Opens the camera capture dialog.
35 void TakePhoto(const ListValue* args); 37 void TakePhoto(const base::ListValue* args);
36 38
37 // Gets the list of available user images and sends it to the page. 39 // Gets the list of available user images and sends it to the page.
38 void GetAvailableImages(const ListValue* args); 40 void GetAvailableImages(const base::ListValue* args);
39 41
40 // Selects one of the available images as user's. 42 // Selects one of the available images as user's.
41 void SelectImage(const ListValue* args); 43 void SelectImage(const base::ListValue* args);
42 44
43 // SelectFileDialog::Delegate implementation. 45 // SelectFileDialog::Delegate implementation.
44 virtual void FileSelected(const FilePath& path, int index, void* params); 46 virtual void FileSelected(const FilePath& path, int index, void* params);
45 47
46 // Returns handle to browser window or NULL if it can't be found. 48 // Returns handle to browser window or NULL if it can't be found.
47 gfx::NativeWindow GetBrowserWindow() const; 49 gfx::NativeWindow GetBrowserWindow() const;
48 50
49 scoped_refptr<SelectFileDialog> select_file_dialog_; 51 scoped_refptr<SelectFileDialog> select_file_dialog_;
50 52
51 DISALLOW_COPY_AND_ASSIGN(ChangePictureOptionsHandler); 53 DISALLOW_COPY_AND_ASSIGN(ChangePictureOptionsHandler);
52 }; 54 };
53 55
54 } // namespace chromeos 56 } // namespace chromeos
55 57
56 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CHANGE_PICTURE_OPTIONS_HANDL ER_H_ 58 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CHANGE_PICTURE_OPTIONS_HANDL ER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698