| 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 "ash/common/system/chromeos/palette/tools/capture_region_mode.h" | 5 #include "ash/system/palette/tools/capture_region_mode.h" |
| 6 | 6 |
| 7 #include "ash/common/accelerators/accelerator_controller.h" | 7 #include "ash/common/accelerators/accelerator_controller.h" |
| 8 #include "ash/common/palette_delegate.h" | 8 #include "ash/common/palette_delegate.h" |
| 9 #include "ash/common/system/chromeos/palette/palette_ids.h" | |
| 10 #include "ash/common/system/toast/toast_data.h" | |
| 11 #include "ash/common/system/toast/toast_manager.h" | |
| 12 #include "ash/common/wm_shell.h" | 9 #include "ash/common/wm_shell.h" |
| 13 #include "ash/resources/vector_icons/vector_icons.h" | 10 #include "ash/resources/vector_icons/vector_icons.h" |
| 14 #include "ash/strings/grit/ash_strings.h" | 11 #include "ash/strings/grit/ash_strings.h" |
| 12 #include "ash/system/palette/palette_ids.h" |
| 13 #include "ash/system/toast/toast_data.h" |
| 14 #include "ash/system/toast/toast_manager.h" |
| 15 #include "ui/base/l10n/l10n_util.h" | 15 #include "ui/base/l10n/l10n_util.h" |
| 16 | 16 |
| 17 namespace ash { | 17 namespace ash { |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 const char kToastId[] = "palette_capture_region"; | 21 const char kToastId[] = "palette_capture_region"; |
| 22 const int kToastDurationMs = 2500; | 22 const int kToastDurationMs = 2500; |
| 23 | 23 |
| 24 } // namespace | 24 } // namespace |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 const gfx::VectorIcon& CaptureRegionMode::GetPaletteIcon() const { | 69 const gfx::VectorIcon& CaptureRegionMode::GetPaletteIcon() const { |
| 70 return kPaletteActionCaptureRegionIcon; | 70 return kPaletteActionCaptureRegionIcon; |
| 71 } | 71 } |
| 72 | 72 |
| 73 void CaptureRegionMode::OnScreenshotDone() { | 73 void CaptureRegionMode::OnScreenshotDone() { |
| 74 // The screenshot finished, so disable the tool. | 74 // The screenshot finished, so disable the tool. |
| 75 delegate()->DisableTool(GetToolId()); | 75 delegate()->DisableTool(GetToolId()); |
| 76 } | 76 } |
| 77 | 77 |
| 78 } // namespace ash | 78 } // namespace ash |
| OLD | NEW |