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 13 matching lines...) Expand all Loading... |
24 #include "chrome/browser/browser_process.h" | 24 #include "chrome/browser/browser_process.h" |
25 #include "chrome/browser/download/download_prefs.h" | 25 #include "chrome/browser/download/download_prefs.h" |
26 #include "chrome/browser/notifications/notification_ui_manager.h" | 26 #include "chrome/browser/notifications/notification_ui_manager.h" |
27 #include "chrome/browser/profiles/profile.h" | 27 #include "chrome/browser/profiles/profile.h" |
28 #include "chrome/browser/profiles/profile_manager.h" | 28 #include "chrome/browser/profiles/profile_manager.h" |
29 #include "chrome/common/pref_names.h" | 29 #include "chrome/common/pref_names.h" |
30 #include "content/public/browser/browser_thread.h" | 30 #include "content/public/browser/browser_thread.h" |
31 #include "content/public/browser/user_metrics.h" | 31 #include "content/public/browser/user_metrics.h" |
32 #include "grit/ash_strings.h" | 32 #include "grit/ash_strings.h" |
33 #include "grit/theme_resources.h" | 33 #include "grit/theme_resources.h" |
34 #include "grit/ui_strings.h" | |
35 #include "ui/aura/window.h" | 34 #include "ui/aura/window.h" |
36 #include "ui/aura/window_event_dispatcher.h" | 35 #include "ui/aura/window_event_dispatcher.h" |
37 #include "ui/base/clipboard/clipboard.h" | 36 #include "ui/base/clipboard/clipboard.h" |
38 #include "ui/base/clipboard/scoped_clipboard_writer.h" | 37 #include "ui/base/clipboard/scoped_clipboard_writer.h" |
39 #include "ui/base/l10n/l10n_util.h" | 38 #include "ui/base/l10n/l10n_util.h" |
40 #include "ui/base/resource/resource_bundle.h" | 39 #include "ui/base/resource/resource_bundle.h" |
41 #include "ui/gfx/image/image.h" | 40 #include "ui/gfx/image/image.h" |
42 #include "ui/snapshot/snapshot.h" | 41 #include "ui/snapshot/snapshot.h" |
| 42 #include "ui/strings/grit/ui_strings.h" |
43 | 43 |
44 #if defined(OS_CHROMEOS) | 44 #if defined(OS_CHROMEOS) |
45 #include "chrome/browser/chromeos/drive/file_system_interface.h" | 45 #include "chrome/browser/chromeos/drive/file_system_interface.h" |
46 #include "chrome/browser/chromeos/drive/file_system_util.h" | 46 #include "chrome/browser/chromeos/drive/file_system_util.h" |
47 #include "chrome/browser/chromeos/file_manager/open_util.h" | 47 #include "chrome/browser/chromeos/file_manager/open_util.h" |
48 #include "chrome/browser/notifications/desktop_notification_service.h" | 48 #include "chrome/browser/notifications/desktop_notification_service.h" |
49 #include "chrome/browser/notifications/desktop_notification_service_factory.h" | 49 #include "chrome/browser/notifications/desktop_notification_service_factory.h" |
50 #include "chromeos/login/login_state.h" | 50 #include "chromeos/login/login_state.h" |
51 #endif | 51 #endif |
52 | 52 |
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 } | 626 } |
627 | 627 |
628 void ScreenshotTaker::SetScreenshotBasenameForTest( | 628 void ScreenshotTaker::SetScreenshotBasenameForTest( |
629 const std::string& basename) { | 629 const std::string& basename) { |
630 screenshot_basename_for_test_ = basename; | 630 screenshot_basename_for_test_ = basename; |
631 } | 631 } |
632 | 632 |
633 void ScreenshotTaker::SetScreenshotProfileForTest(Profile* profile) { | 633 void ScreenshotTaker::SetScreenshotProfileForTest(Profile* profile) { |
634 profile_for_test_ = profile; | 634 profile_for_test_ = profile; |
635 } | 635 } |
OLD | NEW |