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

Issue 8539035: Fix 3 panel related bugs. (Closed)

Created:
9 years, 1 month ago by jianli
Modified:
9 years, 1 month ago
Reviewers:
Dmitry Titov
CC:
chromium-reviews, jennb, jianli, Dmitry Titov, dcheng, prasadt
Visibility:
Public.

Description

Fix 3 panel related bugs. Bug 99270: Panels: Changing themes sometimes causes title text to become invisible The fix is to get the title text when we create the title label because PanelBrowserFrameView will be recreated when the theme is changed. Bug 102730: Panels on Win: Need an explanatory comment in NativePanelTestingWin::DragTitlebar() Changed the dragging code to use screen's coordinate system to improve code readability and updated the comments. Bug 102742: Handle closing the Panel by extension while the settings menu is active Updated the comments. BUG=99270, 102730, 102742 TEST=existing tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110148

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -16 lines) Patch
M chrome/browser/ui/panels/panel_browser_frame_view.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_frame_view.cc View 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_view.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_view.cc View 3 chunks +22 lines, -9 lines 2 comments Download
M chrome/browser/ui/panels/panel_settings_menu_model.cc View 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
jianli
9 years, 1 month ago (2011-11-12 00:56:58 UTC) #1
Dmitry Titov
LGTM with a nit: http://codereview.chromium.org/8539035/diff/1/chrome/browser/ui/panels/panel_browser_view.cc File chrome/browser/ui/panels/panel_browser_view.cc (right): http://codereview.chromium.org/8539035/diff/1/chrome/browser/ui/panels/panel_browser_view.cc#newcode403 chrome/browser/ui/panels/panel_browser_view.cc:403: mouse_location_ = location; The way ...
9 years, 1 month ago (2011-11-12 01:34:53 UTC) #2
jianli
9 years, 1 month ago (2011-11-15 19:26:24 UTC) #3
http://codereview.chromium.org/8539035/diff/1/chrome/browser/ui/panels/panel_...
File chrome/browser/ui/panels/panel_browser_view.cc (right):

http://codereview.chromium.org/8539035/diff/1/chrome/browser/ui/panels/panel_...
chrome/browser/ui/panels/panel_browser_view.cc:403: mouse_location_ = location;
On 2011/11/12 01:34:54, Dmitry Titov wrote:
> The way it's written it can easily look like mixing of coordinate systems,
> because mouse_location_ initially is assigned in the view's coordinate system.
> Maybe changing order makes it easier to read?
> 
> views::View::ConvertPointToScreen(this, &location);
> mouse_location_ = location;

'location' is passed by const reference. So I can't change it.

Powered by Google App Engine
This is Rietveld 408576698