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

Issue 10828201: (Views only) Create a separate class for the contents of the Website Settings UI that is displayed … (Closed)

Created:
8 years, 4 months ago by markusheintz_
Modified:
8 years, 4 months ago
Reviewers:
msw, tfarina
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

(Views only) Create a separate class for the contents of the Website Settings UI that is displayed for internal Chrome pages. BUG=113688 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150790

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments #

Total comments: 14

Patch Set 3 : Address comments. #

Total comments: 4

Patch Set 4 : Address Comments. #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -49 lines) Patch
M chrome/browser/ui/views/website_settings/website_settings_popup_view.cc View 1 2 3 6 chunks +59 lines, -49 lines 10 comments Download

Messages

Total messages: 15 (0 generated)
markusheintz_
Please review this CL. Thanks :) This refactoring is a follow up for CL https://chromiumcodereview.appspot.com/10826185/.
8 years, 4 months ago (2012-08-07 21:23:35 UTC) #1
msw
https://chromiumcodereview.appspot.com/10828201/diff/1/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc File chrome/browser/ui/views/website_settings/website_settings_popup_view.cc (right): https://chromiumcodereview.appspot.com/10828201/diff/1/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc#newcode232 chrome/browser/ui/views/website_settings/website_settings_popup_view.cc:232: views::GridLayout* layout = new views::GridLayout(this); GridLayout seems overkill here, ...
8 years, 4 months ago (2012-08-07 22:21:49 UTC) #2
tfarina
http://codereview.chromium.org/10828201/diff/1/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc File chrome/browser/ui/views/website_settings/website_settings_popup_view.cc (right): http://codereview.chromium.org/10828201/diff/1/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc#newcode146 chrome/browser/ui/views/website_settings/website_settings_popup_view.cc:146: virtual gfx::Rect GetAnchorRect() OVERRIDE; nit: can this be private? ...
8 years, 4 months ago (2012-08-08 02:32:46 UTC) #3
markusheintz_
https://chromiumcodereview.appspot.com/10828201/diff/1/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc File chrome/browser/ui/views/website_settings/website_settings_popup_view.cc (right): https://chromiumcodereview.appspot.com/10828201/diff/1/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc#newcode146 chrome/browser/ui/views/website_settings/website_settings_popup_view.cc:146: virtual gfx::Rect GetAnchorRect() OVERRIDE; On 2012/08/08 02:32:46, tfarina wrote: ...
8 years, 4 months ago (2012-08-08 13:20:13 UTC) #4
msw
LGTM with nits. https://chromiumcodereview.appspot.com/10828201/diff/1003/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc File chrome/browser/ui/views/website_settings/website_settings_popup_view.cc (right): https://chromiumcodereview.appspot.com/10828201/diff/1003/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc#newcode138 chrome/browser/ui/views/website_settings/website_settings_popup_view.cc:138: // |WebsiteSettingsPopupView| the |WebsiteSettingsInternalPageView| is nit: ...
8 years, 4 months ago (2012-08-08 17:27:08 UTC) #5
markusheintz_
https://chromiumcodereview.appspot.com/10828201/diff/1003/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc File chrome/browser/ui/views/website_settings/website_settings_popup_view.cc (right): https://chromiumcodereview.appspot.com/10828201/diff/1003/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc#newcode138 chrome/browser/ui/views/website_settings/website_settings_popup_view.cc:138: // |WebsiteSettingsPopupView| the |WebsiteSettingsInternalPageView| is On 2012/08/08 17:27:08, msw ...
8 years, 4 months ago (2012-08-08 18:00:34 UTC) #6
msw
LGTM with nits; thanks! https://chromiumcodereview.appspot.com/10828201/diff/1003/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc File chrome/browser/ui/views/website_settings/website_settings_popup_view.cc (right): https://chromiumcodereview.appspot.com/10828201/diff/1003/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc#newcode226 chrome/browser/ui/views/website_settings/website_settings_popup_view.cc:226: // WebsiteSettingsInternalPageView On 2012/08/08 18:00:35, ...
8 years, 4 months ago (2012-08-08 18:34:10 UTC) #7
markusheintz_
https://chromiumcodereview.appspot.com/10828201/diff/1003/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc File chrome/browser/ui/views/website_settings/website_settings_popup_view.cc (right): https://chromiumcodereview.appspot.com/10828201/diff/1003/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc#newcode226 chrome/browser/ui/views/website_settings/website_settings_popup_view.cc:226: // WebsiteSettingsInternalPageView On 2012/08/08 18:34:10, msw wrote: > On ...
8 years, 4 months ago (2012-08-08 22:10:02 UTC) #8
msw
LGTM; thanks!
8 years, 4 months ago (2012-08-08 23:16:34 UTC) #9
markusheintz_
On 2012/08/08 23:16:34, msw wrote: > LGTM; thanks! Hey Thiago, I'll land this CL now. ...
8 years, 4 months ago (2012-08-09 12:29:50 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/markusheintz@chromium.org/10828201/11001
8 years, 4 months ago (2012-08-09 12:30:04 UTC) #11
commit-bot: I haz the power
Change committed as 150790
8 years, 4 months ago (2012-08-09 14:02:33 UTC) #12
tfarina
https://chromiumcodereview.appspot.com/10828201/diff/11001/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc File chrome/browser/ui/views/website_settings/website_settings_popup_view.cc (right): https://chromiumcodereview.appspot.com/10828201/diff/11001/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc#newcode157 chrome/browser/ui/views/website_settings/website_settings_popup_view.cc:157: : name_(NULL), status_(NULL) { indent 4 spaces https://chromiumcodereview.appspot.com/10828201/diff/11001/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc#newcode220 chrome/browser/ui/views/website_settings/website_settings_popup_view.cc:220: ...
8 years, 4 months ago (2012-08-09 16:37:40 UTC) #13
tfarina
Also TEST=none is not usefull, there was a recent thread on chromium-dev about this line! ...
8 years, 4 months ago (2012-08-09 16:38:43 UTC) #14
markusheintz_
8 years, 4 months ago (2012-08-09 21:14:43 UTC) #15
Thanks a lot for the comments. 

I addressed them in CL http://codereview.chromium.org/10854079/

https://chromiumcodereview.appspot.com/10828201/diff/11001/chrome/browser/ui/...
File chrome/browser/ui/views/website_settings/website_settings_popup_view.cc
(right):

https://chromiumcodereview.appspot.com/10828201/diff/11001/chrome/browser/ui/...
chrome/browser/ui/views/website_settings/website_settings_popup_view.cc:157: :
name_(NULL), status_(NULL) {
On 2012/08/09 16:37:40, tfarina wrote:
> indent 4 spaces

Done.

https://chromiumcodereview.appspot.com/10828201/diff/11001/chrome/browser/ui/...
chrome/browser/ui/views/website_settings/website_settings_popup_view.cc:220:
SkColor text_color) {
On 2012/08/09 16:37:40, tfarina wrote:
> wrong indentation here

Done.

https://chromiumcodereview.appspot.com/10828201/diff/11001/chrome/browser/ui/...
chrome/browser/ui/views/website_settings/website_settings_popup_view.cc:239:
string16 text = l10n_util::GetStringUTF16(IDS_PAGE_INFO_INTERNAL_PAGE);
On 2012/08/09 16:37:40, tfarina wrote:
> could you avoid this temporary variable and fold it below? Looks like you did
> created the temp var for readability ;)

Done.

https://chromiumcodereview.appspot.com/10828201/diff/11001/chrome/browser/ui/...
chrome/browser/ui/views/website_settings/website_settings_popup_view.cc:278: new
WebsiteSettingsPopupView(anchor_view, profile, tab_contents, url, ssl);
On 2012/08/09 16:37:40, tfarina wrote:
> Looking now, and seeing that this inherits from BubbleDelegateView, would be
> more appropriate to name it WebsiteSettingsBubbleView? For me popups are the
> irritating windows that we usually block. Same thing for
> InternalPageInfoPopupView (may be InternalWebsiteSettingsBubbleView or
> something). 
I see that inheriting from BubbleDelegetView suggest to name that
WebsiteSettings thingy bubble.

But :) :

1) Some people think bubble is confusing because of the notification bubbles and
other small bubbles that are used to notify users about ...things :). I agree
with that :)
2) We also have an ExtensionPopup (which is also a bubble delegate - if I
remember correctly ) and we call it popup in the UI  and in the Extension
documentation. 
3) I tried to find a name that everybody likes. At one point in time I just gave
up on this. I call it a popup and try to use that term consistently. :-)
4) Also renaming it now would be such a pain as there are also GTK and cocoa
implementations. :(

https://chromiumcodereview.appspot.com/10828201/diff/11001/chrome/browser/ui/...
chrome/browser/ui/views/website_settings/website_settings_popup_view.cc:364:
presenter_->OnUIClosing();
On 2012/08/09 16:37:40, tfarina wrote:
> Is the comment about |presenter_| being NULL still true, in another form, will
> be possible for |presenter_| to be NULL after this refactoring? If not, can
you
> update it?

Good catch. Fixed.

Powered by Google App Engine
This is Rietveld 408576698