test_overlay_delegate.cc 703 B

12345678910111213141516171819202122232425262728293031
  1. // Copyright 2014 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "ash/wm/test_overlay_delegate.h"
  5. namespace ash {
  6. TestOverlayDelegate::TestOverlayDelegate() : cancel_count_(0) {}
  7. TestOverlayDelegate::~TestOverlayDelegate() = default;
  8. int TestOverlayDelegate::GetCancelCountAndReset() {
  9. int count = cancel_count_;
  10. cancel_count_ = 0;
  11. return count;
  12. }
  13. void TestOverlayDelegate::Cancel() {
  14. ++cancel_count_;
  15. }
  16. bool TestOverlayDelegate::IsCancelingKeyEvent(ui::KeyEvent* event) {
  17. return false;
  18. }
  19. aura::Window* TestOverlayDelegate::GetWindow() {
  20. return NULL;
  21. }
  22. } // namespace ash