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.h" | 5 #include "ui/snapshot/snapshot.h" |
6 | 6 |
7 #include <gdk/gdkx.h> | 7 #include <gdk/gdkx.h> |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 return true; | 76 return true; |
77 } | 77 } |
78 | 78 |
79 bool GrabWindowSnapshot(gfx::NativeWindow window_handle, | 79 bool GrabWindowSnapshot(gfx::NativeWindow window_handle, |
80 std::vector<unsigned char>* png_representation, | 80 std::vector<unsigned char>* png_representation, |
81 const gfx::Rect& snapshot_bounds) { | 81 const gfx::Rect& snapshot_bounds) { |
82 return GrabViewSnapshot(GTK_WIDGET(window_handle), png_representation, | 82 return GrabViewSnapshot(GTK_WIDGET(window_handle), png_representation, |
83 snapshot_bounds); | 83 snapshot_bounds); |
84 } | 84 } |
85 | 85 |
86 SNAPSHOT_EXPORT void GrabWindowSnapshotAsync( | 86 void GrabWindowSnapshotAndScaleAsync( |
87 gfx::NativeWindow window, | 87 gfx::NativeWindow window, |
88 const gfx::Rect& snapshot_bounds, | 88 const gfx::Rect& snapshot_bounds, |
89 const gfx::Size& target_size, | 89 const gfx::Size& target_size, |
90 scoped_refptr<base::TaskRunner> background_task_runner, | 90 scoped_refptr<base::TaskRunner> background_task_runner, |
91 GrabWindowSnapshotAsyncCallback callback) { | 91 GrabWindowSnapshotAsyncCallback callback) { |
92 NOTIMPLEMENTED(); | 92 NOTIMPLEMENTED(); |
93 } | 93 } |
94 | 94 |
| 95 void GrabWindowSnapshotAsync( |
| 96 gfx::NativeWindow window, |
| 97 const gfx::Rect& source_rect, |
| 98 scoped_refptr<base::TaskRunner> background_task_runner, |
| 99 const GrabWindowSnapshotAsyncCallback& callback) { |
| 100 NOTIMPLEMENTED(); |
| 101 } |
| 102 |
95 } // namespace ui | 103 } // namespace ui |
OLD | NEW |