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

Issue 9580023: Enable user change background image in settings page in Aura build. (Closed)

Created:
8 years, 9 months ago by bshe
Modified:
8 years, 9 months ago
CC:
tfarina, Emmanuel Saint-loubert-BiƩ
Visibility:
Public.

Description

Enable user change background image in settings page in Aura build. Only support change between default background images currently. Need more refactor work on code. BUG=105508 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=126319

Patch Set 1 #

Patch Set 2 : Refactor #

Patch Set 3 : More refactor #

Total comments: 33

Patch Set 4 : Address review #

Patch Set 5 : Add desktop_background_resource files and nits #

Patch Set 6 : Save user choosed index to local state #

Total comments: 16

Patch Set 7 : Address review #

Total comments: 2

Patch Set 8 : Merge to trunk #

Patch Set 9 : Hide change wallpaper button in compact window mode and support dynamic color mode change #

Patch Set 10 : Move kPresetWallpaperIndex to desktop_background_resource #

Total comments: 21

Patch Set 11 : Address reveiw and auto select the current wallpaper thumbnail when select wallpaper overlay shows. #

Total comments: 14

Patch Set 12 : Address review #

Total comments: 13

Patch Set 13 : Address James and Rob Review #

Patch Set 14 : Remove ash - content dependency #

Patch Set 15 : Merge to trunk and clean code related to compact window mode #

Patch Set 16 : Fix a debug build error associated with color mode switch #

Total comments: 12

Patch Set 17 : #

Total comments: 6

Patch Set 18 : address review #

Total comments: 1

Patch Set 19 : nit: forward declare SkBitmap #

Patch Set 20 : Merge to trunk. #

Patch Set 21 : Fix failed test #

Patch Set 22 : Merge to trunk #

Patch Set 23 : Merge to trunk #

Unified diffs Side-by-side diffs Delta from patch set Stats (+846 lines, -113 lines) Patch
M ash/accelerators/accelerator_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +7 lines, -4 lines 0 comments Download
M ash/ash.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +4 lines, -0 lines 0 comments Download
A ash/desktop_background/desktop_background_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +66 lines, -0 lines 0 comments Download
A ash/desktop_background/desktop_background_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +77 lines, -0 lines 0 comments Download
A ash/desktop_background/desktop_background_resources.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +19 lines, -0 lines 0 comments Download
A ash/desktop_background/desktop_background_resources.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +67 lines, -0 lines 0 comments Download
M ash/desktop_background/desktop_background_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +6 lines, -1 line 0 comments Download
M ash/desktop_background/desktop_background_view.cc View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -5 lines 0 comments Download
M ash/shell.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 8 chunks +8 lines, -13 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 5 chunks +7 lines, -23 lines 0 comments Download
M ash/shell_factory.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -1 line 0 comments Download
M chrome/app/generated_resources.grd View 1 chunk +9 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/background/desktop_background_observer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/background/desktop_background_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +50 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/mock_user_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 3 chunks +33 lines, -0 lines 0 comments Download
M chrome/browser/resources/options2/browser_options.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/resources/options2/browser_options.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +6 lines, -0 lines 0 comments Download
D chrome/browser/resources/options2/chromeos/change_picture_options.css View 1 chunk +0 lines, -37 lines 0 comments Download
M chrome/browser/resources/options2/chromeos/change_picture_options.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +1 line, -1 line 0 comments Download
A + chrome/browser/resources/options2/chromeos/image_picker.css View 3 chunks +5 lines, -5 lines 0 comments Download
A chrome/browser/resources/options2/chromeos/set_wallpaper_options.css View 1 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/browser/resources/options2/chromeos/set_wallpaper_options.html View 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/browser/resources/options2/chromeos/set_wallpaper_options.js View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +137 lines, -0 lines 0 comments Download
M chrome/browser/resources/options2/options.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/resources/options2/options.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/resources/options2/options_bundle.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options2/browser_options_handler2.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handler2.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +57 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handler2.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +116 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options2/options_ui2.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +4 lines, -0 lines 0 comments Download
M ui/resources/ui_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +19 lines, -18 lines 0 comments Download

Messages

Total messages: 38 (0 generated)
bshe
Hi Rob. Could you please take a look at this CL? It's the 1 iteration ...
8 years, 9 months ago (2012-03-02 21:49:19 UTC) #1
bshe
Hi Rob. I had this newer version. Could you please take a look? Thanks, Biao
8 years, 9 months ago (2012-03-05 14:51:47 UTC) #2
flackr
https://chromiumcodereview.appspot.com/9580023/diff/6001/ash/desktop_background/desktop_background_view.cc File ash/desktop_background/desktop_background_view.cc (right): https://chromiumcodereview.appspot.com/9580023/diff/6001/ash/desktop_background/desktop_background_view.cc#newcode6 ash/desktop_background/desktop_background_view.cc:6: #include "ash/desktop_background/desktop_background_controller.h" This include goes below with the others. ...
8 years, 9 months ago (2012-03-05 16:16:01 UTC) #3
bshe
Done except for files related to user or user_manager There is a problem with these ...
8 years, 9 months ago (2012-03-06 01:33:27 UTC) #4
bshe
Hi Rob. Delta 5 is my implementation to save the index of wallpaper to local ...
8 years, 9 months ago (2012-03-06 16:39:17 UTC) #5
flackr
Is custom image background support coming in a future iteration? http://codereview.chromium.org/9580023/diff/6001/ash/desktop_background/desktop_background_view.cc File ash/desktop_background/desktop_background_view.cc (right): http://codereview.chromium.org/9580023/diff/6001/ash/desktop_background/desktop_background_view.cc#newcode34 ...
8 years, 9 months ago (2012-03-06 17:16:49 UTC) #6
bshe
Done and inlined. Thanks! Is custom image background support coming in a future iteration? I ...
8 years, 9 months ago (2012-03-06 19:56:15 UTC) #7
flackr
I'm not sure what's happening with compact mode, but I realize this will show up ...
8 years, 9 months ago (2012-03-06 20:25:28 UTC) #8
bshe
Done and inlined. Thanks http://codereview.chromium.org/9580023/diff/18001/ash/shell.cc File ash/shell.cc (right): http://codereview.chromium.org/9580023/diff/18001/ash/shell.cc#newcode555 ash/shell.cc:555: void Shell::SetDesktopBackgroundMode(BackgroundMode mode) { On ...
8 years, 9 months ago (2012-03-07 19:50:44 UTC) #9
flackr
This is looking pretty good. It's probably time to get a real reviewer to look ...
8 years, 9 months ago (2012-03-07 20:50:28 UTC) #10
bshe
Hi Rob. Could you please take another look? Also add real reviewers as you suggested ...
8 years, 9 months ago (2012-03-07 23:48:35 UTC) #11
flackr
http://codereview.chromium.org/9580023/diff/28001/ash/desktop_background/desktop_background_resources.h File ash/desktop_background/desktop_background_resources.h (right): http://codereview.chromium.org/9580023/diff/28001/ash/desktop_background/desktop_background_resources.h#newcode14 ash/desktop_background/desktop_background_resources.h:14: // webui handler. On 2012/03/07 23:48:35, bshe wrote: > ...
8 years, 9 months ago (2012-03-08 01:19:58 UTC) #12
bshe
Done. Thanks! http://codereview.chromium.org/9580023/diff/28001/ash/desktop_background/desktop_background_resources.h File ash/desktop_background/desktop_background_resources.h (right): http://codereview.chromium.org/9580023/diff/28001/ash/desktop_background/desktop_background_resources.h#newcode14 ash/desktop_background/desktop_background_resources.h:14: // webui handler. On 2012/03/08 01:19:58, flackr ...
8 years, 9 months ago (2012-03-08 03:19:23 UTC) #13
flackr
LGTM http://codereview.chromium.org/9580023/diff/46009/ash/desktop_background/desktop_background_resources.h File ash/desktop_background/desktop_background_resources.h (right): http://codereview.chromium.org/9580023/diff/46009/ash/desktop_background/desktop_background_resources.h#newcode15 ash/desktop_background/desktop_background_resources.h:15: const SkBitmap& GetDefaultWallpaperThumbnail(int index); Only thing I might ...
8 years, 9 months ago (2012-03-08 03:31:58 UTC) #14
James Hawkins
http://codereview.chromium.org/9580023/diff/46009/chrome/browser/resources/options2/chromeos/set_wallpaper_options.js File chrome/browser/resources/options2/chromeos/set_wallpaper_options.js (right): http://codereview.chromium.org/9580023/diff/46009/chrome/browser/resources/options2/chromeos/set_wallpaper_options.js#newcode42 chrome/browser/resources/options2/chromeos/set_wallpaper_options.js:42: this.handleImageSelected_.bind(this)); Indentation is off. http://codereview.chromium.org/9580023/diff/46009/chrome/browser/resources/options2/chromeos/set_wallpaper_options.js#newcode73 chrome/browser/resources/options2/chromeos/set_wallpaper_options.js:73: closePage_: function() { ...
8 years, 9 months ago (2012-03-08 14:30:39 UTC) #15
Ben Goodger (Google)
http://codereview.chromium.org/9580023/diff/46009/ash/desktop_background/desktop_background_controller.h File ash/desktop_background/desktop_background_controller.h (right): http://codereview.chromium.org/9580023/diff/46009/ash/desktop_background/desktop_background_controller.h#newcode11 ash/desktop_background/desktop_background_controller.h:11: #include "content/public/browser/notification_observer.h" Ash can't depend on content.
8 years, 9 months ago (2012-03-08 16:35:01 UTC) #16
bshe
Done and inlined. Thanks! http://codereview.chromium.org/9580023/diff/46009/ash/desktop_background/desktop_background_resources.h File ash/desktop_background/desktop_background_resources.h (right): http://codereview.chromium.org/9580023/diff/46009/ash/desktop_background/desktop_background_resources.h#newcode15 ash/desktop_background/desktop_background_resources.h:15: const SkBitmap& GetDefaultWallpaperThumbnail(int index); On ...
8 years, 9 months ago (2012-03-08 16:36:40 UTC) #17
James Hawkins
http://codereview.chromium.org/9580023/diff/46009/chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handler2.cc File chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handler2.cc (right): http://codereview.chromium.org/9580023/diff/46009/chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handler2.cc#newcode104 chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handler2.cc:104: return; On 2012/03/08 16:36:40, bshe wrote: > On 2012/03/08 ...
8 years, 9 months ago (2012-03-08 17:12:07 UTC) #18
bshe
Done and inlined. +james Thanks for the link! I have removed the return statement. http://codereview.chromium.org/9580023/diff/46009/ash/desktop_background/desktop_background_controller.h ...
8 years, 9 months ago (2012-03-08 19:55:48 UTC) #19
James Hawkins
lgtm
8 years, 9 months ago (2012-03-08 21:00:06 UTC) #20
bshe
+ben ping? Could you please take a look at this CL? Everything under ash/* and ...
8 years, 9 months ago (2012-03-09 17:08:31 UTC) #21
Ben Goodger (Google)
http://codereview.chromium.org/9580023/diff/65001/ash/desktop_background/desktop_background_controller.cc File ash/desktop_background/desktop_background_controller.cc (right): http://codereview.chromium.org/9580023/diff/65001/ash/desktop_background/desktop_background_controller.cc#newcode32 ash/desktop_background/desktop_background_controller.cc:32: function order in .cc should match .h http://codereview.chromium.org/9580023/diff/65001/ash/desktop_background/desktop_background_controller.h File ...
8 years, 9 months ago (2012-03-09 23:20:17 UTC) #22
bshe
Done and inlined. Thanks! http://codereview.chromium.org/9580023/diff/65001/ash/desktop_background/desktop_background_controller.cc File ash/desktop_background/desktop_background_controller.cc (right): http://codereview.chromium.org/9580023/diff/65001/ash/desktop_background/desktop_background_controller.cc#newcode32 ash/desktop_background/desktop_background_controller.cc:32: On 2012/03/09 23:20:17, Ben Goodger ...
8 years, 9 months ago (2012-03-12 00:14:24 UTC) #23
Ben Goodger (Google)
http://codereview.chromium.org/9580023/diff/61025/ash/desktop_background/desktop_background_controller.h File ash/desktop_background/desktop_background_controller.h (right): http://codereview.chromium.org/9580023/diff/61025/ash/desktop_background/desktop_background_controller.h#newcode33 ash/desktop_background/desktop_background_controller.h:33: void OnDesktopBackgroundChange(int index); Changed http://codereview.chromium.org/9580023/diff/61025/ash/desktop_background/desktop_background_resources.cc File ash/desktop_background/desktop_background_resources.cc (right): http://codereview.chromium.org/9580023/diff/61025/ash/desktop_background/desktop_background_resources.cc#newcode16 ...
8 years, 9 months ago (2012-03-12 16:34:30 UTC) #24
bshe
Done and inlined. Thanks! http://codereview.chromium.org/9580023/diff/61025/ash/desktop_background/desktop_background_controller.h File ash/desktop_background/desktop_background_controller.h (right): http://codereview.chromium.org/9580023/diff/61025/ash/desktop_background/desktop_background_controller.h#newcode33 ash/desktop_background/desktop_background_controller.h:33: void OnDesktopBackgroundChange(int index); On 2012/03/12 ...
8 years, 9 months ago (2012-03-12 17:02:41 UTC) #25
tfarina
http://codereview.chromium.org/9580023/diff/61025/ash/desktop_background/desktop_background_controller.h File ash/desktop_background/desktop_background_controller.h (right): http://codereview.chromium.org/9580023/diff/61025/ash/desktop_background/desktop_background_controller.h#newcode11 ash/desktop_background/desktop_background_controller.h:11: #include "third_party/skia/include/core/SkBitmap.h" nit: you can forward declare this.
8 years, 9 months ago (2012-03-12 17:07:28 UTC) #26
tfarina
http://codereview.chromium.org/9580023/diff/67003/ash/shell.cc File ash/shell.cc (right): http://codereview.chromium.org/9580023/diff/67003/ash/shell.cc#newcode12 ash/shell.cc:12: #include "ash/desktop_background/desktop_background_resources.h" do you really need to include desktop_background_resources.h ...
8 years, 9 months ago (2012-03-12 17:24:32 UTC) #27
bshe
+tfarina Forward declared. Thanks! http://codereview.chromium.org/9580023/diff/61025/ash/desktop_background/desktop_background_controller.h File ash/desktop_background/desktop_background_controller.h (right): http://codereview.chromium.org/9580023/diff/61025/ash/desktop_background/desktop_background_controller.h#newcode11 ash/desktop_background/desktop_background_controller.h:11: #include "third_party/skia/include/core/SkBitmap.h" On 2012/03/12 17:07:28, ...
8 years, 9 months ago (2012-03-12 17:27:30 UTC) #28
Ben Goodger (Google)
LG
8 years, 9 months ago (2012-03-12 17:57:17 UTC) #29
Ben Goodger (Google)
lgtm
8 years, 9 months ago (2012-03-12 17:57:22 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bshe@chromium.org/9580023/67004
8 years, 9 months ago (2012-03-12 18:28:31 UTC) #31
commit-bot: I haz the power
Can't apply patch for file ash/accelerators/accelerator_controller.cc. While running patch -p1 --forward --force; patching file ash/accelerators/accelerator_controller.cc ...
8 years, 9 months ago (2012-03-12 18:28:38 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bshe@chromium.org/9580023/70002
8 years, 9 months ago (2012-03-12 18:38:06 UTC) #33
commit-bot: I haz the power
Try job failure for 9580023-70002 (retry) on linux_chromeos for step "compile" (clobber build). It's a ...
8 years, 9 months ago (2012-03-12 19:02:28 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bshe@chromium.org/9580023/68009
8 years, 9 months ago (2012-03-13 00:17:10 UTC) #35
commit-bot: I haz the power
Can't apply patch for file ash/accelerators/accelerator_controller.cc. While running patch -p1 --forward --force; patching file ash/accelerators/accelerator_controller.cc ...
8 years, 9 months ago (2012-03-13 00:17:17 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bshe@chromium.org/9580023/72008
8 years, 9 months ago (2012-03-13 00:22:05 UTC) #37
commit-bot: I haz the power
8 years, 9 months ago (2012-03-13 03:32:50 UTC) #38
Change committed as 126319

Powered by Google App Engine
This is Rietveld 408576698