OLD | NEW |
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_CHANGE_PICTURE_OPTIONS_HANDLER
2_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_CHANGE_PICTURE_OPTIONS_HANDLER
2_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_CHANGE_PICTURE_OPTIONS_HANDLER
2_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_CHANGE_PICTURE_OPTIONS_HANDLER
2_H_ |
7 | 7 |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "chrome/browser/chromeos/options/take_photo_dialog.h" | 9 #include "chrome/browser/chromeos/options/take_photo_dialog.h" |
10 #include "chrome/browser/ui/select_file_dialog.h" | 10 #include "chrome/browser/ui/select_file_dialog.h" |
11 #include "chrome/browser/ui/webui/options2/options_ui2.h" | 11 #include "chrome/browser/ui/webui/options2/options_ui2.h" |
12 #include "content/public/browser/notification_registrar.h" | 12 #include "content/public/browser/notification_registrar.h" |
13 #include "ui/gfx/native_widget_types.h" | 13 #include "ui/gfx/native_widget_types.h" |
14 | 14 |
15 namespace base { | 15 namespace base { |
16 class DictionaryValue; | 16 class DictionaryValue; |
17 class ListValue; | 17 class ListValue; |
18 } | 18 } |
19 | 19 |
20 namespace chromeos { | 20 namespace chromeos { |
21 namespace options2 { | 21 namespace options2 { |
22 | 22 |
23 // ChromeOS user image options page UI handler. | 23 // ChromeOS user image options page UI handler. |
24 class ChangePictureOptionsHandler : public OptionsPageUIHandler, | 24 class ChangePictureOptionsHandler : public ::options2::OptionsPageUIHandler, |
25 public SelectFileDialog::Listener, | 25 public SelectFileDialog::Listener, |
26 public TakePhotoDialog::Delegate { | 26 public TakePhotoDialog::Delegate { |
27 public: | 27 public: |
28 ChangePictureOptionsHandler(); | 28 ChangePictureOptionsHandler(); |
29 virtual ~ChangePictureOptionsHandler(); | 29 virtual ~ChangePictureOptionsHandler(); |
30 | 30 |
31 // OptionsPageUIHandler implementation. | 31 // OptionsPageUIHandler implementation. |
32 virtual void GetLocalizedValues( | 32 virtual void GetLocalizedValues( |
33 base::DictionaryValue* localized_strings) OVERRIDE; | 33 base::DictionaryValue* localized_strings) OVERRIDE; |
34 | 34 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 106 |
107 base::WeakPtrFactory<ChangePictureOptionsHandler> weak_factory_; | 107 base::WeakPtrFactory<ChangePictureOptionsHandler> weak_factory_; |
108 | 108 |
109 DISALLOW_COPY_AND_ASSIGN(ChangePictureOptionsHandler); | 109 DISALLOW_COPY_AND_ASSIGN(ChangePictureOptionsHandler); |
110 }; | 110 }; |
111 | 111 |
112 } // namespace options2 | 112 } // namespace options2 |
113 } // namespace chromeos | 113 } // namespace chromeos |
114 | 114 |
115 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_CHANGE_PICTURE_OPTIONS_HAND
LER2_H_ | 115 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_CHANGE_PICTURE_OPTIONS_HAND
LER2_H_ |
OLD | NEW |