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

Unified Diff: ui/snapshot/BUILD.gn

Issue 2752373002: Use PrintWindow() to implement snapshots on windows 8.1+ (Closed)
Patch Set: rebase Created 3 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 | « ui/gl/gl_surface_osmesa_win.cc ('k') | ui/snapshot/snapshot_aura.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/snapshot/BUILD.gn
diff --git a/ui/snapshot/BUILD.gn b/ui/snapshot/BUILD.gn
index 4685e1b6844ea5e5c0509c7db496433780fab788..7e2c28806ef3d5221ffe3430ff04998931914d4b 100644
--- a/ui/snapshot/BUILD.gn
+++ b/ui/snapshot/BUILD.gn
@@ -16,14 +16,17 @@ component("snapshot") {
"snapshot_async.cc",
"snapshot_async.h",
"snapshot_aura.cc",
- "snapshot_export.h",
+ "snapshot_aura.h",
"snapshot_ios.mm",
"snapshot_mac.mm",
+ "snapshot_win.cc",
]
defines = [ "SNAPSHOT_IMPLEMENTATION" ]
deps = [
+ ":snapshot_export",
+ ":snapshot_win",
"//base",
"//skia",
"//ui/base",
@@ -58,7 +61,10 @@ component("snapshot") {
"//ui/compositor",
]
} else {
- sources -= [ "snapshot_aura.cc" ]
+ sources -= [
+ "snapshot_aura.cc",
+ "snapshot_aura.h",
+ ]
}
if (is_mac) {
@@ -69,6 +75,23 @@ component("snapshot") {
}
}
+source_set("snapshot_win") {
+ sources = [
+ "snapshot_win.h",
+ ]
+ deps = [
+ ":snapshot_export",
+ ]
+ visibility = [ ":*" ]
+}
+
+source_set("snapshot_export") {
+ sources = [
+ "snapshot_export.h",
+ ]
+ visibility = [ ":*" ]
+}
+
test("snapshot_unittests") {
sources = [
"snapshot_aura_unittest.cc",
« no previous file with comments | « ui/gl/gl_surface_osmesa_win.cc ('k') | ui/snapshot/snapshot_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698