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_screen_action.h" | 5 #include "ash/common/system/chromeos/palette/tools/capture_screen_action.h" |
6 | 6 |
7 #include "ash/common/palette_delegate.h" | 7 #include "ash/common/palette_delegate.h" |
8 #include "ash/common/system/chromeos/palette/palette_ids.h" | 8 #include "ash/common/system/chromeos/palette/palette_ids.h" |
9 #include "ash/common/wm_shell.h" | 9 #include "ash/common/wm_shell.h" |
10 #include "grit/ash_strings.h" | 10 #include "grit/ash_strings.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 void CaptureScreenAction::OnEnable() { | 28 void CaptureScreenAction::OnEnable() { |
29 CommonPaletteTool::OnEnable(); | 29 CommonPaletteTool::OnEnable(); |
30 | 30 |
31 WmShell::Get()->palette_delegate()->TakeScreenshot(); | 31 WmShell::Get()->palette_delegate()->TakeScreenshot(); |
32 delegate()->DisableTool(GetToolId()); | 32 delegate()->DisableTool(GetToolId()); |
33 delegate()->HidePalette(); | 33 delegate()->HidePalette(); |
34 } | 34 } |
35 | 35 |
36 views::View* CaptureScreenAction::CreateView() { | 36 views::View* CaptureScreenAction::CreateView() { |
37 return CreateDefaultView( | 37 return CreateDefaultView( |
38 l10n_util::GetStringUTF16(IDS_ASH_PALETTE_CAPTURE_SCREEN_ACTION)); | 38 l10n_util::GetStringUTF16(IDS_ASH_STYLUS_TOOLS_CAPTURE_SCREEN_ACTION)); |
39 } | 39 } |
40 | 40 |
41 gfx::VectorIconId CaptureScreenAction::GetPaletteIconId() { | 41 gfx::VectorIconId CaptureScreenAction::GetPaletteIconId() { |
42 return gfx::VectorIconId::PALETTE_ACTION_CAPTURE_SCREEN; | 42 return gfx::VectorIconId::PALETTE_ACTION_CAPTURE_SCREEN; |
43 } | 43 } |
44 | 44 |
45 } // namespace ash | 45 } // namespace ash |
OLD | NEW |