| 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 "ash/accelerators/accelerator_controller.h" | 5 #include "ash/accelerators/accelerator_controller.h" |
| 6 #include "ash/accelerators/accelerator_table.h" | 6 #include "ash/accelerators/accelerator_table.h" |
| 7 #include "ash/caps_lock_delegate.h" | 7 #include "ash/caps_lock_delegate.h" |
| 8 #include "ash/ime_control_delegate.h" | 8 #include "ash/ime_control_delegate.h" |
| 9 #include "ash/screenshot_delegate.h" | 9 #include "ash/screenshot_delegate.h" |
| 10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 virtual void HandleTakeScreenshot(aura::Window* window) OVERRIDE { | 74 virtual void HandleTakeScreenshot(aura::Window* window) OVERRIDE { |
| 75 if (window != NULL) | 75 if (window != NULL) |
| 76 ++handle_take_screenshot_count_; | 76 ++handle_take_screenshot_count_; |
| 77 } | 77 } |
| 78 | 78 |
| 79 virtual void HandleTakePartialScreenshot( | 79 virtual void HandleTakePartialScreenshot( |
| 80 aura::Window* window, const gfx::Rect& rect) OVERRIDE { | 80 aura::Window* window, const gfx::Rect& rect) OVERRIDE { |
| 81 ++handle_take_partial_screenshot_count_; | 81 ++handle_take_partial_screenshot_count_; |
| 82 } | 82 } |
| 83 | 83 |
| 84 virtual bool CanTakeScreenshot() OVERRIDE { |
| 85 return true; |
| 86 } |
| 87 |
| 84 int handle_take_screenshot_count() const { | 88 int handle_take_screenshot_count() const { |
| 85 return handle_take_screenshot_count_; | 89 return handle_take_screenshot_count_; |
| 86 } | 90 } |
| 87 | 91 |
| 88 int handle_take_partial_screenshot_count() const { | 92 int handle_take_partial_screenshot_count() const { |
| 89 return handle_take_partial_screenshot_count_; | 93 return handle_take_partial_screenshot_count_; |
| 90 } | 94 } |
| 91 | 95 |
| 92 private: | 96 private: |
| 93 int handle_take_screenshot_count_; | 97 int handle_take_screenshot_count_; |
| (...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 980 EXPECT_FALSE(GetController()->IsReservedAccelerator( | 984 EXPECT_FALSE(GetController()->IsReservedAccelerator( |
| 981 ui::Accelerator(ui::VKEY_PRINT, ui::EF_NONE))); | 985 ui::Accelerator(ui::VKEY_PRINT, ui::EF_NONE))); |
| 982 EXPECT_FALSE(GetController()->IsReservedAccelerator( | 986 EXPECT_FALSE(GetController()->IsReservedAccelerator( |
| 983 ui::Accelerator(ui::VKEY_TAB, ui::EF_NONE))); | 987 ui::Accelerator(ui::VKEY_TAB, ui::EF_NONE))); |
| 984 EXPECT_FALSE(GetController()->IsReservedAccelerator( | 988 EXPECT_FALSE(GetController()->IsReservedAccelerator( |
| 985 ui::Accelerator(ui::VKEY_A, ui::EF_NONE))); | 989 ui::Accelerator(ui::VKEY_A, ui::EF_NONE))); |
| 986 } | 990 } |
| 987 | 991 |
| 988 } // namespace test | 992 } // namespace test |
| 989 } // namespace ash | 993 } // namespace ash |
| OLD | NEW |