Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Side by Side Diff: ash/system/palette/tools/capture_region_mode.cc

Issue 2729363002: chromeos: Move files in //ash/common to //ash, part 3 (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/system/palette/palette_utils.cc ('k') | ash/system/palette/tools/capture_screen_action.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/system/palette/tools/capture_region_mode.h" 5 #include "ash/system/palette/tools/capture_region_mode.h"
6 6
7 #include "ash/accelerators/accelerator_controller.h" 7 #include "ash/accelerators/accelerator_controller.h"
8 #include "ash/common/palette_delegate.h" 8 #include "ash/palette_delegate.h"
9 #include "ash/common/wm_shell.h"
10 #include "ash/resources/vector_icons/vector_icons.h" 9 #include "ash/resources/vector_icons/vector_icons.h"
11 #include "ash/strings/grit/ash_strings.h" 10 #include "ash/strings/grit/ash_strings.h"
12 #include "ash/system/palette/palette_ids.h" 11 #include "ash/system/palette/palette_ids.h"
13 #include "ash/system/toast/toast_data.h" 12 #include "ash/system/toast/toast_data.h"
14 #include "ash/system/toast/toast_manager.h" 13 #include "ash/system/toast/toast_manager.h"
14 #include "ash/wm_shell.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
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
OLDNEW
« no previous file with comments | « ash/system/palette/palette_utils.cc ('k') | ash/system/palette/tools/capture_screen_action.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698