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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 } | 112 } |
113 | 113 |
114 bool GrabWindowSnapshot(gfx::NativeWindow window_handle, | 114 bool GrabWindowSnapshot(gfx::NativeWindow window_handle, |
115 std::vector<unsigned char>* png_representation, | 115 std::vector<unsigned char>* png_representation, |
116 const gfx::Rect& snapshot_bounds) { | 116 const gfx::Rect& snapshot_bounds) { |
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 SNAPSHOT_EXPORT 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 GrapWindowSnapshotAsyncCallback callback) { |
128 NOTIMPLEMENTED(); | 128 NOTIMPLEMENTED(); |
129 } | 129 } |
130 | 130 |
| 131 void GrabWindowSnapshotAsync( |
| 132 gfx::NativeWindow window, |
| 133 const gfx::Rect& source_rect, |
| 134 scoped_refptr<base::TaskRunner> background_task_runner, |
| 135 const GrabWindowSnapshotAsyncCallback& callback) { |
| 136 NOTIMPLEMENTED(); |
| 137 } |
| 138 |
131 #endif // !defined(USE_AURA) | 139 #endif // !defined(USE_AURA) |
132 | 140 |
133 } // namespace ui | 141 } // namespace ui |
OLD | NEW |