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

Issue 10821104: Support GrabWindowSnapshot with no g_browser_process (Closed)

Created:
8 years, 4 months ago by qfel
Modified:
8 years, 4 months ago
CC:
chromium-reviews, grt+watch_chromium.org, amit, robertshield, Mattias Nissler (ping if slow), Sergey Ulanov, Ben Goodger (Google)
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Support calling GrabWindowSnapshot when no BrowserProcess instance is avaliable (eg. tests) BUG=139694 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149604

Patch Set 1 #

Patch Set 2 : GrabWindowSnapshot split into ui:: and chrome:: flavours #

Patch Set 3 : SaveScreenSnapshotToDirectory uses ui::GrabWindowSnapshot #

Total comments: 1

Patch Set 4 : Corrected endif comment, removed crbug comments, restored FAILS prefix #

Patch Set 5 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -411 lines) Patch
M chrome/browser/ui/window_snapshot/window_snapshot.h View 1 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/ui/window_snapshot/window_snapshot.cc View 1 1 chunk +2 lines, -7 lines 0 comments Download
D chrome/browser/ui/window_snapshot/window_snapshot_aura.cc View 1 1 chunk +0 lines, -51 lines 0 comments Download
D chrome/browser/ui/window_snapshot/window_snapshot_gtk.cc View 1 1 chunk +0 lines, -78 lines 0 comments Download
D chrome/browser/ui/window_snapshot/window_snapshot_mac.mm View 1 1 chunk +0 lines, -61 lines 0 comments Download
D chrome/browser/ui/window_snapshot/window_snapshot_mac_unittest.mm View 1 1 chunk +0 lines, -56 lines 0 comments Download
D chrome/browser/ui/window_snapshot/window_snapshot_win.cc View 1 1 chunk +0 lines, -100 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download
M chrome/test/base/ui_test_utils_win.cc View 1 2 2 chunks +5 lines, -4 lines 0 comments Download
M chrome_frame/test/test_with_web_server.cc View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M ui/ui.gyp View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
A + ui/window_snapshot/window_snapshot.h View 1 2 3 1 chunk +11 lines, -10 lines 0 comments Download
A + ui/window_snapshot/window_snapshot_aura.cc View 1 3 chunks +6 lines, -6 lines 0 comments Download
A + ui/window_snapshot/window_snapshot_gtk.cc View 1 3 chunks +6 lines, -6 lines 0 comments Download
A + ui/window_snapshot/window_snapshot_mac.mm View 1 3 chunks +6 lines, -6 lines 0 comments Download
A + ui/window_snapshot/window_snapshot_mac_unittest.mm View 1 2 chunks +3 lines, -10 lines 0 comments Download
A + ui/window_snapshot/window_snapshot_win.cc View 1 3 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
qfel
It'd nice if some BrowserProcess instance was setup during the tests so we wouldn't need ...
8 years, 4 months ago (2012-07-31 17:22:13 UTC) #1
grt (UTC plus 2)
On 2012/07/31 17:22:13, qfel wrote: > It'd nice if some BrowserProcess instance was setup during ...
8 years, 4 months ago (2012-07-31 19:50:18 UTC) #2
sky
On Tue, Jul 31, 2012 at 12:50 PM, <grt@chromium.org> wrote: > On 2012/07/31 17:22:13, qfel ...
8 years, 4 months ago (2012-07-31 23:38:42 UTC) #3
qfel
> Said function could be moved to the ui directory. Do you mean to move ...
8 years, 4 months ago (2012-08-01 08:34:53 UTC) #4
grt (UTC plus 2)
On 2012/08/01 08:34:53, qfel wrote: > > Said function could be moved to the ui ...
8 years, 4 months ago (2012-08-01 10:07:27 UTC) #5
qfel
Split GrabWindowSnapshot. CC ben: I have no idea why (only) window_snapshot_win.cc was excluded from build ...
8 years, 4 months ago (2012-08-01 13:17:10 UTC) #6
grt (UTC plus 2)
lgtm. please send up a tryjob. thanks.
8 years, 4 months ago (2012-08-01 13:39:04 UTC) #7
qfel
> lgtm. please send up a tryjob. thanks. There are tryjobs on patch set #2 ...
8 years, 4 months ago (2012-08-01 13:56:29 UTC) #8
grt (UTC plus 2)
On 2012/08/01 13:56:29, qfel wrote: > > lgtm. please send up a tryjob. thanks. > ...
8 years, 4 months ago (2012-08-01 13:59:25 UTC) #9
sky
LGTM http://codereview.chromium.org/10821104/diff/3002/ui/window_snapshot/window_snapshot.h File ui/window_snapshot/window_snapshot.h (right): http://codereview.chromium.org/10821104/diff/3002/ui/window_snapshot/window_snapshot.h#newcode34 ui/window_snapshot/window_snapshot.h:34: #endif // CHROME_BROWSER_UI_WINDOW_SNAPSHOT_WINDOW_SNAPSHOT_H_ Update this too.
8 years, 4 months ago (2012-08-01 15:49:36 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qfel@google.com/10821104/11019
8 years, 4 months ago (2012-08-02 08:15:31 UTC) #11
commit-bot: I haz the power
Failed to apply patch for ui/ui.gyp: While running patch -p1 --forward --force; patching file ui/ui.gyp ...
8 years, 4 months ago (2012-08-02 08:15:36 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qfel@google.com/10821104/7040
8 years, 4 months ago (2012-08-02 08:29:53 UTC) #13
commit-bot: I haz the power
Change committed as 149604
8 years, 4 months ago (2012-08-02 09:52:25 UTC) #14
Joao da Silva
This broke the win aura build.
8 years, 4 months ago (2012-08-02 10:33:54 UTC) #15
qfel
window_snapshot_aura.cc uses compositor, and so aura build with shared library breaks on Windows. On the ...
8 years, 4 months ago (2012-08-02 11:53:48 UTC) #16
sky
8 years, 4 months ago (2012-08-02 15:08:05 UTC) #17
You could make the actual snapshot function settable so that aura
could set it. Screen does similar things. That said, I'm fine with
moving this back to chrome and using a friend to get at the internal
function for testing. Probably less error prone that way.

  -Scott

On Thu, Aug 2, 2012 at 4:53 AM,  <qfel@google.com> wrote:
> window_snapshot_aura.cc uses compositor, and so aura build with shared
> library
> breaks on Windows. On the other hand, GrabWindowSnapshot is supposed to work
> on
> every platform, so moving it to aura (which uses compositor) is a no-no.
> I could move it back to the browser and rename, but since it does not use
> browser code at all, I'm not fully happy with such solution (though it's
> what is
> used to be).
> Any better suggestions anyone?
>
> https://chromiumcodereview.appspot.com/10821104/

Powered by Google App Engine
This is Rietveld 408576698