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

Issue 6904160: Implement new gray mock. (Closed)

Created:
9 years, 7 months ago by DaveMoore
Modified:
9 years, 7 months ago
Reviewers:
sky
CC:
chromium-reviews, nkostylev+cc_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Implement new gray mock. BUG=chromium-os:14276 TEST=Login, examine both regular and OTR, and test with and without themes. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=83729

Patch Set 1 #

Patch Set 2 : Fixed up resources #

Patch Set 3 : Fixed power test #

Total comments: 18

Patch Set 4 : Review nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+457 lines, -182 lines) Patch
M chrome/app/theme/statusbar_battery10c.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_battery10d.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_battery11c.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_battery11d.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_battery12c.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_battery12d.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_battery13c.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_battery13d.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_battery14c.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_battery14d.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_battery15c.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_battery15d.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_battery16c.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_battery16d.png View Binary file 0 comments Download
D chrome/app/theme/statusbar_battery17d.png View 1 Binary file 0 comments Download
M chrome/app/theme/statusbar_battery1c.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_battery1d.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_battery2c.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_battery2d.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_battery3c.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_battery3d.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_battery4c.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_battery4d.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_battery5c.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_battery5d.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_battery6c.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_battery6d.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_battery7c.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_battery7d.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_battery8c.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_battery8d.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_battery9c.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_battery9d.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_battery_charged.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_battery_missing.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_battery_unknown.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_bug.png View Binary file 0 comments Download
A chrome/app/theme/statusbar_divider.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_network_3g.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_network_3g_error.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_network_3g_warn.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_network_bars0.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_network_bars0b.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_network_bars1.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_network_bars1b.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_network_bars1o.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_network_bars1r.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_network_bars2.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_network_bars2b.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_network_bars2o.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_network_bars2r.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_network_bars3.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_network_bars3b.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_network_bars3o.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_network_bars3r.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_network_bars4.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_network_bars4b.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_network_bars4o.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_network_bars4r.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_network_disconnected.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_network_edge.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_network_secure.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_network_warning.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_window_switcher.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_wired.png View Binary file 0 comments Download
M chrome/app/theme/statusbar_wiredb.png View Binary file 0 comments Download
M chrome/app/theme/theme_frame_default2.png View Binary file 0 comments Download
A chrome/app/theme/theme_frame_default2-incognito.png View Binary file 0 comments Download
M chrome/app/theme/theme_resources.grd View 1 2 4 chunks +17 lines, -3 lines 0 comments Download
M chrome/app/theme/theme_resources_standard.grd View 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/app/theme/toolbar_divider.png View Binary file 0 comments Download
M chrome/browser/chromeos/cros/power_library.cc View 2 chunks +4 lines, -4 lines 0 comments Download
A chrome/browser/chromeos/frame/browser_frame_view_chromeos.h View 1 2 3 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/frame/browser_frame_view_chromeos.cc View 1 2 3 1 chunk +79 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/frame/browser_non_client_frame_view_factory_chromeos.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/frame/browser_view.h View 1 1 chunk +20 lines, -19 lines 0 comments Download
M chrome/browser/chromeos/frame/browser_view.cc View 1 2 3 4 chunks +17 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/background_view.h View 1 1 chunk +11 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/login/background_view.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/status/clock_menu_button.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/status/clock_menu_button.cc View 1 4 chunks +26 lines, -23 lines 0 comments Download
M chrome/browser/chromeos/status/input_method_menu_button.h View 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/status/input_method_menu_button.cc View 3 chunks +2 lines, -19 lines 0 comments Download
M chrome/browser/chromeos/status/network_menu.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/status/network_menu_button.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/status/network_menu_button.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/status/power_menu_button.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/status/power_menu_button.cc View 1 2 3 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/status/power_menu_button_browsertest.cc View 1 2 4 chunks +10 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/status/status_area_button.h View 1 2 3 5 chunks +16 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/status/status_area_button.cc View 1 2 3 4 chunks +63 lines, -22 lines 0 comments Download
M chrome/browser/chromeos/status/status_area_host.h View 1 2 3 3 chunks +17 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/status/status_area_view.cc View 1 6 chunks +12 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/status/window_switcher_button.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/status/window_switcher_button.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/gtk/gtk_theme_service.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.h View 1 2 3 2 chunks +21 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.cc View 1 2 3 4 chunks +45 lines, -22 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gfx/resources/chromeos_scroll_arrow_down.png View Binary file 0 comments Download
M ui/gfx/resources/chromeos_scroll_arrow_down_h.png View Binary file 0 comments Download
M ui/gfx/resources/chromeos_scroll_arrow_down_p.png View Binary file 0 comments Download
M ui/gfx/resources/chromeos_scroll_arrow_up.png View Binary file 0 comments Download
M ui/gfx/resources/chromeos_scroll_arrow_up_h.png View Binary file 0 comments Download
M ui/gfx/resources/chromeos_scroll_arrow_up_p.png View Binary file 0 comments Download
M ui/gfx/resources/chromeos_scroll_background.png View Binary file 0 comments Download
M ui/gfx/resources/chromeos_scroll_background_border_down.png View Binary file 0 comments Download
M ui/gfx/resources/chromeos_scroll_background_border_up.png View Binary file 0 comments Download
M ui/gfx/resources/chromeos_scroll_thumb.png View Binary file 0 comments Download
M ui/gfx/resources/chromeos_scroll_thumb_h.png View Binary file 0 comments Download
M ui/gfx/resources/chromeos_scroll_thumb_p.png View Binary file 0 comments Download
M views/controls/button/text_button.h View 1 3 chunks +6 lines, -0 lines 0 comments Download
M views/controls/button/text_button.cc View 1 2 3 4 chunks +12 lines, -2 lines 0 comments Download
M views/window/non_client_view.h View 2 chunks +4 lines, -3 lines 0 comments Download
M views/window/non_client_view.cc View 1 2 3 3 chunks +6 lines, -6 lines 0 comments Download
M views/window/window_gtk.cc View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
DaveMoore
9 years, 7 months ago (2011-05-02 13:27:51 UTC) #1
sky
9 years, 7 months ago (2011-05-02 14:26:27 UTC) #2
LGTM with the following changes

http://codereview.chromium.org/6904160/diff/167/chrome/browser/chromeos/frame...
File chrome/browser/chromeos/frame/browser_frame_view_chromeos.cc (right):

http://codereview.chromium.org/6904160/diff/167/chrome/browser/chromeos/frame...
chrome/browser/chromeos/frame/browser_frame_view_chromeos.cc:24: //
BrowserFrameViewChromeos adds some a few pixels of pad to the top of the
remove some

http://codereview.chromium.org/6904160/diff/167/chrome/browser/chromeos/frame...
chrome/browser/chromeos/frame/browser_frame_view_chromeos.cc:36: int
BrowserFrameViewChromeos::GetHorizontalTabStripVerticalOffset(
order doesn't match header.

http://codereview.chromium.org/6904160/diff/167/chrome/browser/chromeos/frame...
chrome/browser/chromeos/frame/browser_frame_view_chromeos.cc:53: views::View*
BrowserFrameViewChromeos::GetEventHandlerForPoint(const gfx::Point& point) {
> 80

http://codereview.chromium.org/6904160/diff/167/chrome/browser/chromeos/frame...
File chrome/browser/chromeos/frame/browser_frame_view_chromeos.h (right):

http://codereview.chromium.org/6904160/diff/167/chrome/browser/chromeos/frame...
chrome/browser/chromeos/frame/browser_frame_view_chromeos.h:21: virtual
views::View* GetEventHandlerForPoint(const gfx::Point& point)
wrap at const so that last param and OVERRIDE on on the same line.

http://codereview.chromium.org/6904160/diff/167/chrome/browser/chromeos/frame...
chrome/browser/chromeos/frame/browser_frame_view_chromeos.h:28: int* top_offset,
SkBitmap** left_corner, SkBitmap** right_corner)
each param on its own line.

http://codereview.chromium.org/6904160/diff/167/chrome/browser/chromeos/frame...
File
chrome/browser/chromeos/frame/browser_non_client_frame_view_factory_chromeos.cc
(right):

http://codereview.chromium.org/6904160/diff/167/chrome/browser/chromeos/frame...
chrome/browser/chromeos/frame/browser_non_client_frame_view_factory_chromeos.cc:8:
#include "chrome/browser/chromeos/frame/browser_frame_view_chromeos.h"
sort

http://codereview.chromium.org/6904160/diff/167/chrome/browser/chromeos/frame...
File chrome/browser/chromeos/frame/browser_view.cc (right):

http://codereview.chromium.org/6904160/diff/167/chrome/browser/chromeos/frame...
chrome/browser/chromeos/frame/browser_view.cc:401: StatusAreaHost::kWhiteHaloed
: IsOffTheRecord() ?
Oi. Can you use () around the first conditional to this a bit more readable.

http://codereview.chromium.org/6904160/diff/167/chrome/browser/chromeos/statu...
File chrome/browser/chromeos/status/status_area_button.cc (right):

http://codereview.chromium.org/6904160/diff/167/chrome/browser/chromeos/statu...
chrome/browser/chromeos/status/status_area_button.cc:33: menu_delegate, false),
indent to make clear part of MenuButton.

http://codereview.chromium.org/6904160/diff/167/chrome/browser/chromeos/statu...
File chrome/browser/chromeos/status/status_area_button.h (right):

http://codereview.chromium.org/6904160/diff/167/chrome/browser/chromeos/statu...
chrome/browser/chromeos/status/status_area_button.h:20: StatusAreaHost* host,
views::ViewMenuDelegate* menu_delegate);
each param on its own line.

http://codereview.chromium.org/6904160/diff/167/chrome/browser/chromeos/statu...
chrome/browser/chromeos/status/status_area_button.h:45: 
no newline here.

http://codereview.chromium.org/6904160/diff/167/chrome/browser/chromeos/statu...
File chrome/browser/chromeos/status/status_area_host.h (right):

http://codereview.chromium.org/6904160/diff/167/chrome/browser/chromeos/statu...
chrome/browser/chromeos/status/status_area_host.h:42: enum TextStyle {
enums should be first in a section.

http://codereview.chromium.org/6904160/diff/167/chrome/browser/ui/views/frame...
File chrome/browser/ui/views/frame/opaque_browser_frame_view.cc (right):

http://codereview.chromium.org/6904160/diff/167/chrome/browser/ui/views/frame...
chrome/browser/ui/views/frame/opaque_browser_frame_view.cc:708: DCHECK(left &&
right);
The DCHECK and if don't match.

http://codereview.chromium.org/6904160/diff/167/chrome/browser/ui/views/frame...
File chrome/browser/ui/views/frame/opaque_browser_frame_view.h (left):

http://codereview.chromium.org/6904160/diff/167/chrome/browser/ui/views/frame...
chrome/browser/ui/views/frame/opaque_browser_frame_view.h:97: int
NonClientTopBorderHeight(bool restored, bool ignore_vertical_tabs) const;
move implementation to match new position in header.

http://codereview.chromium.org/6904160/diff/167/chrome/browser/ui/views/frame...
File chrome/browser/ui/views/frame/opaque_browser_frame_view.h (right):

http://codereview.chromium.org/6904160/diff/167/chrome/browser/ui/views/frame...
chrome/browser/ui/views/frame/opaque_browser_frame_view.h:78: // Returns the
height of the entire nonclient top border, including the window
Most these before other overrides in the section.

http://codereview.chromium.org/6904160/diff/167/chrome/browser/ui/views/frame...
chrome/browser/ui/views/frame/opaque_browser_frame_view.h:89: int* theme_offset,
SkBitmap** left_corner, SkBitmap** right_corner);
each param on its own line. Also, document what this does.

http://codereview.chromium.org/6904160/diff/167/chrome/browser/ui/views/tabs/...
File chrome/browser/ui/views/tabs/tab.cc (right):

http://codereview.chromium.org/6904160/diff/167/chrome/browser/ui/views/tabs/...
chrome/browser/ui/views/tabs/tab.cc:473: //  bg_offset_y = 0;
Nuke this.

http://codereview.chromium.org/6904160/diff/167/views/controls/button/text_bu...
File views/controls/button/text_button.cc (right):

http://codereview.chromium.org/6904160/diff/167/views/controls/button/text_bu...
views/controls/button/text_button.cc:334: shadow_offset_ = gfx::Point(x, y);
SetPoint

http://codereview.chromium.org/6904160/diff/167/views/window/non_client_view.h
File views/window/non_client_view.h (right):

http://codereview.chromium.org/6904160/diff/167/views/window/non_client_view....
views/window/non_client_view.h:221: virtual views::View*
GetEventHandlerForPoint(const gfx::Point& point)
Move implementation to match new position.

Powered by Google App Engine
This is Rietveld 408576698