| 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 "ui/gfx/rect.h" | 7 #include "ui/gfx/rect.h" |
| 8 | 8 |
| 9 namespace ui { | 9 namespace ui { |
| 10 | 10 |
| 11 bool GrabViewSnapshot(gfx::NativeView view, | 11 bool GrabViewSnapshot(gfx::NativeView view, |
| 12 std::vector<unsigned char>* png_representation, | 12 std::vector<unsigned char>* png_representation, |
| 13 const gfx::Rect& snapshot_bounds) { | 13 const gfx::Rect& snapshot_bounds) { |
| 14 // TODO(bajones): Implement iOS snapshot functionality | 14 // TODO(bajones): Implement iOS snapshot functionality |
| 15 return false; | 15 return false; |
| 16 } | 16 } |
| 17 | 17 |
| 18 bool GrabWindowSnapshot(gfx::NativeWindow window, | 18 bool GrabWindowSnapshot(gfx::NativeWindow window, |
| 19 std::vector<unsigned char>* png_representation, | 19 std::vector<unsigned char>* png_representation, |
| 20 const gfx::Rect& snapshot_bounds) { | 20 const gfx::Rect& snapshot_bounds) { |
| 21 // TODO(bajones): Implement iOS snapshot functionality | 21 // TODO(bajones): Implement iOS snapshot functionality |
| 22 return false; | 22 return false; |
| 23 } | 23 } |
| 24 | 24 |
| 25 SNAPSHOT_EXPORT void GrapWindowSnapshotAsync( |
| 26 gfx::NativeWindow window, |
| 27 const gfx::Rect& snapshot_bounds, |
| 28 const gfx::Size& target_size, |
| 29 scoped_refptr<base::TaskRunner> background_task_runner, |
| 30 GrapWindowSnapshotAsyncCallback callback) { |
| 31 NOTIMPLEMENTED(); |
| 32 } |
| 33 |
| 25 } // namespace ui | 34 } // namespace ui |
| OLD | NEW |