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

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

Issue 8541002: [cros] Initial user image loading and repeated profile image loading fixes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.h
diff --git a/chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.h b/chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.h
index 766524f9e1f72fda39ea45eed510c0a8fe9f16f5..29960a3f36ab59fb9cddac0390e6b5c589911bfa 100644
--- a/chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.h
+++ b/chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.h
@@ -42,6 +42,14 @@ class ChangePictureOptionsHandler : public OptionsPageUIHandler,
// Sends current selection to the page.
void SendSelectedImage();
+ // Sends the profile image to the page. If |should_select| is true, then
whywhat 2011/11/11 15:40:42 No , before then
Ivan Korotkov 2011/11/11 16:08:00 Done.
+ // the profile image element is selected.
+ void SendProfileImage(const SkBitmap& image, bool should_select);
+
+ // Starts profile image update and shows the last downloaded profile image,
+ // if any, on the page. Shouldn't be called before |SendProfileImage|.
+ void UpdateProfileImage();
+
// Starts camera presence check.
void CheckCameraPresence();
@@ -57,8 +65,8 @@ class ChangePictureOptionsHandler : public OptionsPageUIHandler,
// Gets the list of available user images and sends it to the page.
void HandleGetAvailableImages(const base::ListValue* args);
- // Gets URL of the currently selected image.
- void HandleGetSelectedImage(const base::ListValue* args);
+ // Handles page shown event.
+ void HandleOnPageShown(const base::ListValue* args);
// Selects one of the available images as user's.
void HandleSelectImage(const base::ListValue* args);

Powered by Google App Engine
This is Rietveld 408576698