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

Issue 8780001: aura: Make aura::TooltipClient completely static? (Closed)

Created:
9 years ago by varunjain
Modified:
9 years ago
CC:
chromium-reviews, sadrul, yusukes+watch_chromium.org, ben+watch_chromium.org, dhollowa+watch_chromium.org, jam, penghuang+watch_chromium.org, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, tfarina, James Su
Visibility:
Public.

Description

aura: Make aura::TooltipClient completely static? BUG=none TEST=none

Patch Set 1 : patch #

Patch Set 2 : merged with upstream #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -120 lines) Patch
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 1 chunk +1 line, -6 lines 0 comments Download
M content/content_tests.gypi View 1 1 chunk +5 lines, -0 lines 0 comments Download
M ui/aura/aura.gyp View 1 chunk +14 lines, -0 lines 2 comments Download
M ui/aura/client/aura_constants.h View 1 chunk +0 lines, -4 lines 0 comments Download
M ui/aura/client/aura_constants.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ui/aura/client/tooltip_client.h View 1 chunk +1 line, -1 line 0 comments Download
A ui/aura/test/test_tooltip_client.cc View 1 chunk +24 lines, -0 lines 0 comments Download
M ui/aura_shell/shell.cc View 1 3 chunks +1 line, -6 lines 0 comments Download
M ui/aura_shell/shell_tooltip_manager.h View 1 chunk +2 lines, -3 lines 0 comments Download
M ui/aura_shell/shell_tooltip_manager.cc View 3 chunks +11 lines, -2 lines 0 comments Download
D ui/views/test/test_tooltip_client.h View 1 chunk +0 lines, -32 lines 0 comments Download
M ui/views/test/test_tooltip_client.cc View 1 chunk +0 lines, -28 lines 0 comments Download
M ui/views/views.gyp View 1 3 chunks +1 line, -3 lines 0 comments Download
M ui/views/widget/tooltip_manager_aura.cc View 1 chunk +24 lines, -34 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
varunjain
9 years ago (2011-12-03 20:54:39 UTC) #1
Ben Goodger (Google)
http://codereview.chromium.org/8780001/diff/6001/ui/aura/aura.gyp File ui/aura/aura.gyp (right): http://codereview.chromium.org/8780001/diff/6001/ui/aura/aura.gyp#newcode58 ui/aura/aura.gyp:58: 'target_name': 'non_shell_test_support_aura', what does non-shell mean?
9 years ago (2011-12-05 22:01:16 UTC) #2
varunjain
http://codereview.chromium.org/8780001/diff/6001/ui/aura/aura.gyp File ui/aura/aura.gyp (right): http://codereview.chromium.org/8780001/diff/6001/ui/aura/aura.gyp#newcode58 ui/aura/aura.gyp:58: 'target_name': 'non_shell_test_support_aura', On 2011/12/05 22:01:16, Ben Goodger (Google) wrote: ...
9 years ago (2011-12-05 22:11:36 UTC) #3
Ben Goodger (Google)
A layer below another layer should never refer to the layer above it. -Ben On ...
9 years ago (2011-12-05 22:14:54 UTC) #4
varunjain
9 years ago (2011-12-05 22:43:51 UTC) #5
On 2011/12/05 22:14:54, Ben Goodger (Google) wrote:
> A layer below another layer should never refer to the layer above it.

Its not really a reference.. I just wanted the name to be indicative. Perhaps
"static_test_support_aura" is better because this target mostly provides tests
support for static/global methods declared in aura. So if its just the name, I'd
be happy to change it.

If you dont think that this should be a separate target, then I am open to
suggestions. My use case is as follows:

Need to provide test support for static functions declared in
aura::TooltipManager, defined in aura_shell::ShellTooltipManager to
views_unittests and content_unittests.
I tried putting the test definitions in ui/base/tests and expose them using
ui/ui.gyp:ui_test_support. But that does not work because chrome.gyp:unit_tests
depend on both ui_test_suport and aura_shell so the definitions conflict.

> 
> -Ben
> 
> On Mon, Dec 5, 2011 at 2:11 PM, <mailto:varunjain@chromium.org> wrote:
> 
> >
> >
>
http://codereview.chromium.**org/8780001/diff/6001/ui/aura/**aura.gyp%3Chttp:...>
> > File ui/aura/aura.gyp (right):
> >
> > http://codereview.chromium.**org/8780001/diff/6001/ui/aura/**
> >
>
aura.gyp#newcode58<http://codereview.chromium.org/8780001/diff/6001/ui/aura/aura.gyp#newcode58>
> > ui/aura/aura.gyp:58: 'target_name': 'non_shell_test_support_aura',
> > On 2011/12/05 22:01:16, Ben Goodger (Google) wrote:
> >
> >> what does non-shell mean?
> >>
> >
> > I know the name is weird.. the intention is that this target provides
> > tests support for un-defined methods in aura client, but
> > aura_shell_unittests cannot depend on this because those methods are
> > defined in aura_shell. The sources in this target should really be in
> > test_support_aura.. but I cannot put it there because
> > aura_shell_unittests depends on it.
> >
> >
>
http://codereview.chromium.**org/8780001/%3Chttp://codereview.chromium.org/87...>
> >

Powered by Google App Engine
This is Rietveld 408576698