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

Issue 251099: Refactor cros library code into central location and have the UI elements obs... (Closed)

Created:
11 years, 2 months ago by Charlie Lee (do not use)
Modified:
9 years, 7 months ago
Reviewers:
DaveMoore, sky
CC:
chromium-reviews_googlegroups.com, ben+cc_chromium.org
Visibility:
Public.

Description

Refactor cros library code into central location and have the UI elements observe changes. - implemented power menu button showing remaining battery info. - implemented clock menu button showing detailed clock info. - also implemented monitoring of network status change. - don't show highlighted state for these menu buttons BUG=23923 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=28366

Patch Set 1 : '' #

Total comments: 8

Patch Set 2 : '' #

Total comments: 72

Patch Set 3 : '' #

Total comments: 44

Patch Set 4 : '' #

Total comments: 10

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1006 lines, -533 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/clock_menu_button.h View 1 2 1 chunk +59 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/clock_menu_button.cc View 1 2 3 4 1 chunk +97 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/cros_library.h View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/cros_library.cc View 1 2 1 chunk +34 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/cros_network_library.h View 2 3 4 1 chunk +101 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/cros_network_library.cc View 2 3 1 chunk +142 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/cros_power_library.h View 2 3 4 1 chunk +70 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/cros_power_library.cc View 2 3 4 1 chunk +73 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/network_menu_button.h View 1 2 3 4 chunks +11 lines, -67 lines 0 comments Download
M chrome/browser/chromeos/network_menu_button.cc View 1 2 3 4 8 chunks +49 lines, -181 lines 0 comments Download
A chrome/browser/chromeos/power_menu_button.h View 1 2 3 1 chunk +65 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/power_menu_button.cc View 1 2 3 4 1 chunk +126 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/settings_contents_view.cc View 1 2 3 7 chunks +85 lines, -96 lines 0 comments Download
M chrome/browser/chromeos/status_area_view.h View 1 3 chunks +5 lines, -20 lines 0 comments Download
M chrome/browser/chromeos/status_area_view.cc View 1 2 3 3 chunks +9 lines, -168 lines 0 comments Download
M chrome/chrome.gyp View 1 2 chunks +10 lines, -0 lines 0 comments Download
M views/controls/button/custom_button.h View 2 chunks +6 lines, -0 lines 0 comments Download
M views/controls/button/custom_button.cc View 3 chunks +6 lines, -1 line 0 comments Download
M views/controls/button/text_button.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M views/controls/button/text_button.cc View 1 2 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Charlie Lee (do not use)
11 years, 2 months ago (2009-10-06 08:06:58 UTC) #1
sky
I didn't make it very far and instead got hung upon how the classes are ...
11 years, 2 months ago (2009-10-06 16:02:26 UTC) #2
Charlie Lee (do not use)
See below... http://codereview.chromium.org/251099/diff/5006/37 File chrome/browser/chromeos/cros_library.cc (right): http://codereview.chromium.org/251099/diff/5006/37#newcode23 Line 23: observer->PowerChanged(status.line_power_on, status.battery_state == On 2009/10/06 16:02:27, ...
11 years, 2 months ago (2009-10-06 16:11:16 UTC) #3
sky
On Tue, Oct 6, 2009 at 9:11 AM, <chocobo@google.com> wrote: > > See below... > ...
11 years, 2 months ago (2009-10-06 16:17:46 UTC) #4
Charlie Lee (do not use)
I refactored CrosLibrary and pulled out CrosNetworkLibrary and CrosPowerLibrary.
11 years, 2 months ago (2009-10-06 19:54:49 UTC) #5
sky
http://codereview.chromium.org/251099/diff/103/5026 File chrome/browser/chromeos/clock_menu_button.cc (right): http://codereview.chromium.org/251099/diff/103/5026#newcode21 Line 21: SetFont(ResourceBundle::GetSharedInstance().GetFont( Any reason you want this bold? http://codereview.chromium.org/251099/diff/103/5025 ...
11 years, 2 months ago (2009-10-06 21:58:53 UTC) #6
Charlie Lee (do not use)
Thanks. Made the fixes. http://codereview.chromium.org/251099/diff/103/5026 File chrome/browser/chromeos/clock_menu_button.cc (right): http://codereview.chromium.org/251099/diff/103/5026#newcode21 Line 21: SetFont(ResourceBundle::GetSharedInstance().GetFont( On 2009/10/06 21:58:53, ...
11 years, 2 months ago (2009-10-07 09:53:04 UTC) #7
sky
For the clock button could you convert it to using a tooltip now. If we ...
11 years, 2 months ago (2009-10-07 14:32:42 UTC) #8
DaveMoore
http://codereview.chromium.org/251099/diff/12001/13013 File chrome/browser/chromeos/clock_menu_button.cc (right): http://codereview.chromium.org/251099/diff/12001/13013#newcode50 Line 50: SetText(base::TimeFormatTimeOfDay(base::Time::Now())); Cole was specific that he wanted the ...
11 years, 2 months ago (2009-10-07 16:21:34 UTC) #9
Charlie Lee (do not use)
Made fixes. I also added a change to not show the highlighted state for our ...
11 years, 2 months ago (2009-10-07 20:59:18 UTC) #10
sky
Almost there. http://codereview.chromium.org/251099/diff/17001/17014 File chrome/browser/chromeos/clock_menu_button.cc (right): http://codereview.chromium.org/251099/diff/17001/17014#newcode61 Line 61: now_exploded.hour < 12 ? L'p' : ...
11 years, 2 months ago (2009-10-07 21:15:48 UTC) #11
DaveMoore
THere were also several lint errors that should be looked at. http://codereview.chromium.org/251099/diff/17001/17017 File chrome/browser/chromeos/cros_power_library.h (right): ...
11 years, 2 months ago (2009-10-07 21:33:01 UTC) #12
Charlie Lee (do not use)
Made the fixes. The lint errors are not real problems as far as I know. ...
11 years, 2 months ago (2009-10-07 22:42:36 UTC) #13
sky
11 years, 2 months ago (2009-10-07 22:51:45 UTC) #14
LGTM

Powered by Google App Engine
This is Rietveld 408576698