| 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 "ui/snapshot/snapshot_win.h" | 5 #include "ui/snapshot/snapshot_win.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/win/scoped_gdi_object.h" | 8 #include "base/win/scoped_gdi_object.h" |
| 9 #include "base/win/scoped_hdc.h" | 9 #include "base/win/scoped_hdc.h" |
| 10 #include "base/win/scoped_select_object.h" | 10 #include "base/win/scoped_select_object.h" |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 DCHECK(window_handle); | 117 DCHECK(window_handle); |
| 118 return internal::GrabHwndSnapshot(window_handle, snapshot_bounds, | 118 return internal::GrabHwndSnapshot(window_handle, snapshot_bounds, |
| 119 png_representation); | 119 png_representation); |
| 120 } | 120 } |
| 121 | 121 |
| 122 void GrapWindowSnapshotAsync( | 122 void GrapWindowSnapshotAsync( |
| 123 gfx::NativeWindow window, | 123 gfx::NativeWindow window, |
| 124 const gfx::Rect& snapshot_bounds, | 124 const gfx::Rect& snapshot_bounds, |
| 125 const gfx::Size& target_size, | 125 const gfx::Size& target_size, |
| 126 scoped_refptr<base::TaskRunner> background_task_runner, | 126 scoped_refptr<base::TaskRunner> background_task_runner, |
| 127 GrapWindowSnapshotAsyncCallback callback) { | 127 GrabWindowSnapshotAsyncCallback callback) { |
| 128 NOTIMPLEMENTED(); | 128 NOTIMPLEMENTED(); |
| 129 } | 129 } |
| 130 | 130 |
| 131 void GrabWindowSnapshotAsync( | 131 void GrabWindowSnapshotAsync( |
| 132 gfx::NativeWindow window, | 132 gfx::NativeWindow window, |
| 133 const gfx::Rect& source_rect, | 133 const gfx::Rect& source_rect, |
| 134 scoped_refptr<base::TaskRunner> background_task_runner, | 134 scoped_refptr<base::TaskRunner> background_task_runner, |
| 135 const GrabWindowSnapshotAsyncCallback& callback) { | 135 const GrabWindowSnapshotAsyncPNGCallback& callback) { |
| 136 NOTIMPLEMENTED(); | 136 NOTIMPLEMENTED(); |
| 137 } | 137 } |
| 138 | 138 |
| 139 #endif // !defined(USE_AURA) | 139 #endif // !defined(USE_AURA) |
| 140 | 140 |
| 141 } // namespace ui | 141 } // namespace ui |
| OLD | NEW |