| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/palette_delegate_chromeos.h" | 5 #include "chrome/browser/ui/ash/palette_delegate_chromeos.h" |
| 6 | 6 |
| 7 #include "ash/accelerators/accelerator_controller_delegate_aura.h" | 7 #include "ash/accelerators/accelerator_controller_delegate_aura.h" |
| 8 #include "ash/common/system/chromeos/palette/palette_utils.h" | |
| 9 #include "ash/screenshot_delegate.h" | 8 #include "ash/screenshot_delegate.h" |
| 10 #include "ash/shell.h" | 9 #include "ash/shell.h" |
| 10 #include "ash/system/palette/palette_utils.h" |
| 11 #include "ash/utility/screenshot_controller.h" | 11 #include "ash/utility/screenshot_controller.h" |
| 12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
| 13 #include "chrome/browser/chrome_notification_types.h" | 13 #include "chrome/browser/chrome_notification_types.h" |
| 14 #include "chrome/browser/chromeos/note_taking_helper.h" | 14 #include "chrome/browser/chromeos/note_taking_helper.h" |
| 15 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 15 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
| 16 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
| 17 #include "chrome/browser/profiles/profile_manager.h" | 17 #include "chrome/browser/profiles/profile_manager.h" |
| 18 #include "chrome/common/pref_names.h" | 18 #include "chrome/common/pref_names.h" |
| 19 #include "components/prefs/pref_change_registrar.h" | 19 #include "components/prefs/pref_change_registrar.h" |
| 20 #include "components/prefs/pref_service.h" | 20 #include "components/prefs/pref_service.h" |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 screenshot_controller->set_on_screenshot_session_done( | 151 screenshot_controller->set_on_screenshot_session_done( |
| 152 base::Bind(&PaletteDelegateChromeOS::OnPartialScreenshotDone, | 152 base::Bind(&PaletteDelegateChromeOS::OnPartialScreenshotDone, |
| 153 weak_factory_.GetWeakPtr(), done)); | 153 weak_factory_.GetWeakPtr(), done)); |
| 154 } | 154 } |
| 155 | 155 |
| 156 void PaletteDelegateChromeOS::CancelPartialScreenshot() { | 156 void PaletteDelegateChromeOS::CancelPartialScreenshot() { |
| 157 ash::Shell::GetInstance()->screenshot_controller()->CancelScreenshotSession(); | 157 ash::Shell::GetInstance()->screenshot_controller()->CancelScreenshotSession(); |
| 158 } | 158 } |
| 159 | 159 |
| 160 } // namespace chromeos | 160 } // namespace chromeos |
| OLD | NEW |