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

Issue 10795005: views: Inherit from views::WidgetDelegateView in more places. (Closed)

Created:
8 years, 5 months ago by tfarina
Modified:
8 years, 5 months ago
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

views: Inherit from views::WidgetDelegateView in more places. That way the clients don't need to reimplement the GetWidget() function everytime, to do the same thing that the WidgetDelegateView implementation already does. R=pkasting@chromium.org

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -48 lines) Patch
M chrome/browser/ui/views/ash/panel_view_aura.h View 2 chunks +2 lines, -4 lines 1 comment Download
M chrome/browser/ui/views/ash/panel_view_aura.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/constrained_web_dialog_delegate_views.cc View 5 chunks +5 lines, -12 lines 1 comment Download
M chrome/browser/ui/views/frame/browser_view.h View 3 chunks +2 lines, -4 lines 1 comment Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/web_dialog_view.h View 3 chunks +2 lines, -4 lines 1 comment Download
M chrome/browser/ui/views/web_dialog_view.cc View 1 chunk +0 lines, -8 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
tfarina
Does this looks right?
8 years, 5 months ago (2012-07-18 02:56:23 UTC) #1
Peter Kasting
Nice! LGTM
8 years, 5 months ago (2012-07-18 03:09:02 UTC) #2
tfarina
On Wed, Jul 18, 2012 at 12:09 AM, <pkasting@chromium.org> wrote: > Nice! LGTM > Do'h, ...
8 years, 5 months ago (2012-07-18 03:27:06 UTC) #3
Peter Kasting
On 2012/07/18 03:27:06, tfarina wrote: > On Wed, Jul 18, 2012 at 12:09 AM, <mailto:pkasting@chromium.org> ...
8 years, 5 months ago (2012-07-18 03:35:33 UTC) #4
tfarina
On Wed, Jul 18, 2012 at 12:35 AM, <pkasting@chromium.org> wrote: > On 2012/07/18 03:27:06, tfarina ...
8 years, 5 months ago (2012-07-18 04:46:25 UTC) #5
Ben Goodger (Google)
8 years, 5 months ago (2012-07-23 21:17:54 UTC) #6
etc etc.

you can't use WDV in a place where the class already subclasses View by some
other method.

http://codereview.chromium.org/10795005/diff/1/chrome/browser/ui/views/ash/pa...
File chrome/browser/ui/views/ash/panel_view_aura.h (right):

http://codereview.chromium.org/10795005/diff/1/chrome/browser/ui/views/ash/pa...
chrome/browser/ui/views/ash/panel_view_aura.h:40: public
views::WidgetDelegateView,
This is wrong. If you do this, you'll end up subclassing View via both
NativeViewHost and WDV.

WDV is intended to mean "A View which is a WidgetDelegate" not "Something that
implements GetWidget()".

http://codereview.chromium.org/10795005/diff/1/chrome/browser/ui/views/constr...
File chrome/browser/ui/views/constrained_web_dialog_delegate_views.cc (right):

http://codereview.chromium.org/10795005/diff/1/chrome/browser/ui/views/constr...
chrome/browser/ui/views/constrained_web_dialog_delegate_views.cc:75: public
views::WidgetDelegateView {
again, wrong.

http://codereview.chromium.org/10795005/diff/1/chrome/browser/ui/views/frame/...
File chrome/browser/ui/views/frame/browser_view.h (right):

http://codereview.chromium.org/10795005/diff/1/chrome/browser/ui/views/frame/...
chrome/browser/ui/views/frame/browser_view.h:86: public
views::WidgetDelegateView,
wrong

http://codereview.chromium.org/10795005/diff/1/chrome/browser/ui/views/web_di...
File chrome/browser/ui/views/web_dialog_view.h (right):

http://codereview.chromium.org/10795005/diff/1/chrome/browser/ui/views/web_di...
chrome/browser/ui/views/web_dialog_view.h:43: public views::WidgetDelegateView {
wrong

Powered by Google App Engine
This is Rietveld 408576698