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

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: GrabDesktopSnapshot is now available only to tests 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
Index: ui/snapshot/snapshot.gyp
diff --git a/ui/snapshot/snapshot.gyp b/ui/snapshot/snapshot.gyp
index 40744bfc768359129ecd467b2a9810dace3d3aeb..927765a68ed0e74ef64fc98d6ee45c4b59c5a987 100644
--- a/ui/snapshot/snapshot.gyp
+++ b/ui/snapshot/snapshot.gyp
@@ -24,6 +24,8 @@
'snapshot_aura.cc',
'snapshot_export.h',
'snapshot_gtk.cc',
+ 'snapshot_hwnd_win.cc',
sky 2013/04/22 16:25:19 Why is this file both here and in test support?
grt (UTC plus 2) 2013/04/22 19:14:03 The desktop snapshotting code (in 'snapshot_test_s
+ 'snapshot_hwnd_win.h',
'snapshot_ios.mm',
'snapshot_mac.mm',
'snapshot_win.cc',
@@ -39,8 +41,10 @@
],
}],
['use_aura==1 and OS=="win"', {
- 'sources/': [
- ['exclude', 'snapshot_win.cc'],
+ 'sources!': [
+ 'snapshot_hwnd_win.cc',
+ 'snapshot_hwnd_win.h',
+ 'snapshot_win.cc',
],
}],
],
@@ -62,4 +66,33 @@
]
},
],
+ 'conditions': [
+ ['OS=="win"', {
+ 'targets': [
+ {
+ 'target_name': 'snapshot_test_support',
+ 'type': 'static_library',
+ 'sources': [
+ 'snapshot_desktop.h',
+ 'snapshot_desktop_win.cc',
+ 'snapshot_hwnd_win.cc',
+ 'snapshot_hwnd_win.h',
+ ],
+ 'dependencies': [
+ '../../base/base.gyp:base',
+ '../../skia/skia.gyp:skia',
+ '../ui.gyp:ui',
+ ],
+ },
+ ],
+ }, { # else (OS!="win")
+ 'targets': [
+ {
+ 'target_name': 'snapshot_test_support',
+ 'type': 'none',
+ 'sources': [],
+ },
+ ],
+ }],
+ ],
}

Powered by Google App Engine
This is Rietveld 408576698