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

Issue 9581003: Get rid of chrome dependencies from tab_contents_drag_win.cc. After this I'll move it to content\br… (Closed)

Created:
8 years, 9 months ago by jam
Modified:
8 years, 9 months ago
Reviewers:
dcheng
CC:
chromium-reviews, Avi (use Gerrit), creis+watch_chromium.org, ajwong+watch_chromium.org, jam, dcheng, joi+watch-content_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Get rid of chrome dependencies from tab_contents_drag_win.cc. After this I'll move it to content\browser\tab_contents. BUG=98716 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=124701

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -40 lines) Patch
M chrome/browser/tab_contents/web_drag_bookmark_handler_win.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/web_drag_bookmark_handler_win.cc View 2 chunks +26 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tab_contents/native_tab_contents_view_win.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/tab_contents/native_tab_contents_view_win.cc View 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/ui/views/tab_contents/tab_contents_drag_win.h View 4 chunks +16 lines, -4 lines 6 comments Download
M chrome/browser/ui/views/tab_contents/tab_contents_drag_win.cc View 9 chunks +23 lines, -33 lines 0 comments Download
M content/browser/tab_contents/web_drag_dest_delegate.h View 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
jam
8 years, 9 months ago (2012-03-02 07:29:25 UTC) #1
dcheng
http://codereview.chromium.org/9581003/diff/1/chrome/browser/ui/views/tab_contents/tab_contents_drag_win.h File chrome/browser/ui/views/tab_contents/tab_contents_drag_win.h (right): http://codereview.chromium.org/9581003/diff/1/chrome/browser/ui/views/tab_contents/tab_contents_drag_win.h#newcode88 chrome/browser/ui/views/tab_contents/tab_contents_drag_win.h:88: gfx::NativeWindow source_wnd_; Seems a little unfortunate that we turn ...
8 years, 9 months ago (2012-03-02 18:54:47 UTC) #2
jam
http://codereview.chromium.org/9581003/diff/1/chrome/browser/ui/views/tab_contents/tab_contents_drag_win.h File chrome/browser/ui/views/tab_contents/tab_contents_drag_win.h (right): http://codereview.chromium.org/9581003/diff/1/chrome/browser/ui/views/tab_contents/tab_contents_drag_win.h#newcode88 chrome/browser/ui/views/tab_contents/tab_contents_drag_win.h:88: gfx::NativeWindow source_wnd_; On 2012/03/02 18:54:47, dcheng wrote: > Seems ...
8 years, 9 months ago (2012-03-02 18:56:37 UTC) #3
dcheng
lgtm http://codereview.chromium.org/9581003/diff/1/chrome/browser/ui/views/tab_contents/tab_contents_drag_win.h File chrome/browser/ui/views/tab_contents/tab_contents_drag_win.h (right): http://codereview.chromium.org/9581003/diff/1/chrome/browser/ui/views/tab_contents/tab_contents_drag_win.h#newcode88 chrome/browser/ui/views/tab_contents/tab_contents_drag_win.h:88: gfx::NativeWindow source_wnd_; On 2012/03/02 18:56:37, John Abd-El-Malek wrote: ...
8 years, 9 months ago (2012-03-02 19:04:17 UTC) #4
jam
8 years, 9 months ago (2012-03-02 19:09:59 UTC) #5
http://codereview.chromium.org/9581003/diff/1/chrome/browser/ui/views/tab_con...
File chrome/browser/ui/views/tab_contents/tab_contents_drag_win.h (right):

http://codereview.chromium.org/9581003/diff/1/chrome/browser/ui/views/tab_con...
chrome/browser/ui/views/tab_contents/tab_contents_drag_win.h:88:
gfx::NativeWindow source_wnd_;
On 2012/03/02 19:04:17, dcheng wrote:
> Minor nit: window_ instead of wnd_. Similar for other places that use wnd.

Done.

http://codereview.chromium.org/9581003/diff/1/chrome/browser/ui/views/tab_con...
chrome/browser/ui/views/tab_contents/tab_contents_drag_win.h:88:
gfx::NativeWindow source_wnd_;
On 2012/03/02 19:04:17, dcheng wrote:
> On 2012/03/02 18:56:37, John Abd-El-Malek wrote:
> > On 2012/03/02 18:54:47, dcheng wrote:
> > > Seems a little unfortunate that we turn 1 pointer into 3 closely related
> > > pointers. Would it make sense to put a thin content interface around this
so
> > we
> > > carry these pointers around together?
> > 
> > I prefer not adding a new interface just to carry three pointers. the more
> files
> > we have in content\public, the more daunting it seems to newcomers.
> 
> OK, I'm not too thrilled with this part of the change but I won't block it
based
> on that.

I think this may be a personal style difference :) I think classes that take 3
or 4 arguments is quite normal. an interface would be useful if this value can
change later and so a cache won't work. but in this situation, it would make the
code less readable imo.

Powered by Google App Engine
This is Rietveld 408576698