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/views/aura/screenshot_taker.h" | 5 #include "chrome/browser/ui/views/ash/screenshot_taker.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/memory/ref_counted_memory.h" | 13 #include "base/memory/ref_counted_memory.h" |
14 #include "base/stringprintf.h" | 14 #include "base/stringprintf.h" |
15 #include "base/time.h" | 15 #include "base/time.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 content::BrowserThread::FILE, FROM_HERE, | 85 content::BrowserThread::FILE, FROM_HERE, |
86 base::Bind(&SaveScreenshot, is_logged_in, png_data)); | 86 base::Bind(&SaveScreenshot, is_logged_in, png_data)); |
87 } else { | 87 } else { |
88 LOG(ERROR) << "Failed to grab the window screenshot"; | 88 LOG(ERROR) << "Failed to grab the window screenshot"; |
89 } | 89 } |
90 } | 90 } |
91 | 91 |
92 void ScreenshotTaker::HandleTakeScreenshot(aura::Window* window) { | 92 void ScreenshotTaker::HandleTakeScreenshot(aura::Window* window) { |
93 HandleTakePartialScreenshot(window, window->bounds()); | 93 HandleTakePartialScreenshot(window, window->bounds()); |
94 } | 94 } |
OLD | NEW |