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/ash/screenshot_taker.h" | 5 #include "chrome/browser/ui/ash/screenshot_taker.h" |
6 | 6 |
7 #include <climits> | 7 #include <climits> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "grit/ash_strings.h" | 27 #include "grit/ash_strings.h" |
28 #include "grit/theme_resources.h" | 28 #include "grit/theme_resources.h" |
29 #include "ui/aura/root_window.h" | 29 #include "ui/aura/root_window.h" |
30 #include "ui/aura/window.h" | 30 #include "ui/aura/window.h" |
31 #include "ui/base/l10n/l10n_util.h" | 31 #include "ui/base/l10n/l10n_util.h" |
32 #include "ui/base/resource/resource_bundle.h" | 32 #include "ui/base/resource/resource_bundle.h" |
33 #include "ui/gfx/image/image.h" | 33 #include "ui/gfx/image/image.h" |
34 | 34 |
35 #if defined(OS_CHROMEOS) | 35 #if defined(OS_CHROMEOS) |
36 #include "chrome/browser/chromeos/drive/drive_file_system_util.h" | 36 #include "chrome/browser/chromeos/drive/drive_file_system_util.h" |
37 #include "chrome/browser/chromeos/extensions/file_manager_util.h" | 37 #include "chrome/browser/chromeos/extensions/file_manager/file_manager_util.h" |
38 #include "chrome/browser/chromeos/login/user_manager.h" | 38 #include "chrome/browser/chromeos/login/user_manager.h" |
39 #endif | 39 #endif |
40 | 40 |
41 namespace { | 41 namespace { |
42 // The minimum interval between two screenshot commands. It has to be | 42 // The minimum interval between two screenshot commands. It has to be |
43 // more than 1000 to prevent the conflict of filenames. | 43 // more than 1000 to prevent the conflict of filenames. |
44 const int kScreenshotMinimumIntervalInMS = 1000; | 44 const int kScreenshotMinimumIntervalInMS = 1000; |
45 | 45 |
46 const char kNotificationOriginUrl[] = "chrome://screenshot"; | 46 const char kNotificationOriginUrl[] = "chrome://screenshot"; |
47 | 47 |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 | 370 |
371 void ScreenshotTaker::SetScreenshotDirectoryForTest( | 371 void ScreenshotTaker::SetScreenshotDirectoryForTest( |
372 const base::FilePath& directory) { | 372 const base::FilePath& directory) { |
373 screenshot_directory_for_test_ = directory; | 373 screenshot_directory_for_test_ = directory; |
374 } | 374 } |
375 | 375 |
376 void ScreenshotTaker::SetScreenshotBasenameForTest( | 376 void ScreenshotTaker::SetScreenshotBasenameForTest( |
377 const std::string& basename){ | 377 const std::string& basename){ |
378 screenshot_basename_for_test_ = basename; | 378 screenshot_basename_for_test_ = basename; |
379 } | 379 } |
OLD | NEW |