OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ui/window_snapshot/window_snapshot.h" | 5 #include "chrome/browser/ui/window_snapshot/window_snapshot.h" |
6 | 6 |
7 #include "base/win/scoped_gdi_object.h" | 7 #include "base/win/scoped_gdi_object.h" |
8 #include "base/win/scoped_hdc.h" | 8 #include "base/win/scoped_hdc.h" |
9 #include "base/win/scoped_select_object.h" | 9 #include "base/win/scoped_select_object.h" |
10 #include "ui/gfx/codec/png_codec.h" | 10 #include "ui/gfx/codec/png_codec.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 snapshot_bounds.width() * 4, true, | 91 snapshot_bounds.width() * 4, true, |
92 std::vector<gfx::PNGCodec::Comment>(), | 92 std::vector<gfx::PNGCodec::Comment>(), |
93 png_representation); | 93 png_representation); |
94 | 94 |
95 ReleaseDC(window_handle, window_hdc); | 95 ReleaseDC(window_handle, window_hdc); |
96 | 96 |
97 return true; | 97 return true; |
98 } | 98 } |
99 | 99 |
100 } // namespace chrome | 100 } // namespace chrome |
OLD | NEW |