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

Side by Side Diff: chrome/browser/ui/webui/options2/chromeos/change_picture_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_CHANGE_PICTURE_OPTIONS_HANDLER _H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_CHANGE_PICTURE_OPTIONS_HANDLER _H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_CHANGE_PICTURE_OPTIONS_HANDLER _H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_CHANGE_PICTURE_OPTIONS_HANDLER _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/image_decoder.h" 10 #include "chrome/browser/image_decoder.h"
11 #include "chrome/browser/ui/webui/options2/options_ui.h" 11 #include "chrome/browser/ui/webui/options2/options_ui.h"
12 #include "content/public/browser/notification_registrar.h" 12 #include "content/public/browser/notification_registrar.h"
13 #include "ui/base/dialogs/select_file_dialog.h" 13 #include "ui/base/dialogs/select_file_dialog.h"
14 #include "ui/gfx/image/image_skia.h" 14 #include "ui/gfx/image/image_skia.h"
15 #include "ui/gfx/native_widget_types.h" 15 #include "ui/gfx/native_widget_types.h"
16 16
17 namespace base { 17 namespace base {
18 class DictionaryValue; 18 class DictionaryValue;
19 class ListValue; 19 class ListValue;
20 } 20 }
21 21
22 namespace chromeos { 22 namespace chromeos {
23 namespace options2 { 23 namespace options {
24 24
25 // ChromeOS user image options page UI handler. 25 // ChromeOS user image options page UI handler.
26 class ChangePictureOptionsHandler : public ::options2::OptionsPageUIHandler, 26 class ChangePictureOptionsHandler : public ::options::OptionsPageUIHandler,
27 public ui::SelectFileDialog::Listener, 27 public ui::SelectFileDialog::Listener,
28 public TakePhotoDialog::Delegate, 28 public TakePhotoDialog::Delegate,
29 public ImageDecoder::Delegate { 29 public ImageDecoder::Delegate {
30 public: 30 public:
31 ChangePictureOptionsHandler(); 31 ChangePictureOptionsHandler();
32 virtual ~ChangePictureOptionsHandler(); 32 virtual ~ChangePictureOptionsHandler();
33 33
34 // OptionsPageUIHandler implementation. 34 // OptionsPageUIHandler implementation.
35 virtual void GetLocalizedValues( 35 virtual void GetLocalizedValues(
36 base::DictionaryValue* localized_strings) OVERRIDE; 36 base::DictionaryValue* localized_strings) OVERRIDE;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 123
124 base::WeakPtrFactory<ChangePictureOptionsHandler> weak_factory_; 124 base::WeakPtrFactory<ChangePictureOptionsHandler> weak_factory_;
125 125
126 // Last ImageDecoder instance used to decode an image blob received by 126 // Last ImageDecoder instance used to decode an image blob received by
127 // HandlePhotoTaken. 127 // HandlePhotoTaken.
128 scoped_refptr<ImageDecoder> image_decoder_; 128 scoped_refptr<ImageDecoder> image_decoder_;
129 129
130 DISALLOW_COPY_AND_ASSIGN(ChangePictureOptionsHandler); 130 DISALLOW_COPY_AND_ASSIGN(ChangePictureOptionsHandler);
131 }; 131 };
132 132
133 } // namespace options2 133 } // namespace options
134 } // namespace chromeos 134 } // namespace chromeos
135 135
136 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_CHANGE_PICTURE_OPTIONS_HAND LER_H_ 136 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_CHANGE_PICTURE_OPTIONS_HAND LER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698