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

Unified Diff: ui/snapshot/snapshot.gyp

Issue 13926006: Add ui::GrabDesktopSnapshot for Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Always include GrabHwndSnapshot Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/base/ui_test_utils.cc ('k') | ui/snapshot/snapshot_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/snapshot/snapshot.gyp
diff --git a/ui/snapshot/snapshot.gyp b/ui/snapshot/snapshot.gyp
index 40744bfc768359129ecd467b2a9810dace3d3aeb..8712e01c106652a84b6026b900a09e6568870809 100644
--- a/ui/snapshot/snapshot.gyp
+++ b/ui/snapshot/snapshot.gyp
@@ -27,6 +27,7 @@
'snapshot_ios.mm',
'snapshot_mac.mm',
'snapshot_win.cc',
+ 'snapshot_win.h',
],
'include_dirs': [
'..',
@@ -38,11 +39,6 @@
'../compositor/compositor.gyp:compositor',
],
}],
- ['use_aura==1 and OS=="win"', {
- 'sources/': [
- ['exclude', 'snapshot_win.cc'],
- ],
- }],
],
},
{
@@ -62,4 +58,32 @@
]
},
],
+ 'conditions': [
+ ['OS=="win"', {
+ 'targets': [
+ {
+ 'target_name': 'snapshot_test_support',
+ 'type': 'static_library',
+ 'sources': [
+ 'test/snapshot_desktop.h',
+ 'test/snapshot_desktop_win.cc',
+ ],
+ 'dependencies': [
+ 'snapshot'
+ ],
+ 'include_dirs': [
+ '../..',
+ ],
+ },
+ ],
+ }, { # else (OS!="win")
+ 'targets': [
sky 2013/04/24 14:49:11 Shouldn't we only include this target on windows s
grt (UTC plus 2) 2013/04/24 17:44:47 There's only the Windows implementation for now, b
+ {
+ 'target_name': 'snapshot_test_support',
+ 'type': 'none',
+ 'sources': [],
+ },
+ ],
+ }],
+ ],
}
« no previous file with comments | « chrome/test/base/ui_test_utils.cc ('k') | ui/snapshot/snapshot_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698