| 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/wm/overlay_event_filter.h" | 5 #include "ash/wm/overlay_event_filter.h" |
| 6 | 6 |
| 7 #include "ash/wm/partial_screenshot_view.h" | 7 #include "ash/wm/partial_screenshot_view.h" |
| 8 #include "ui/aura/window.h" | 8 #include "ui/aura/window.h" |
| 9 #include "ui/aura/window_delegate.h" | 9 #include "ui/aura/window_delegate.h" |
| 10 #include "ui/base/event.h" | 10 #include "ui/base/events/event.h" |
| 11 #include "ui/views/widget/widget.h" | 11 #include "ui/views/widget/widget.h" |
| 12 | 12 |
| 13 namespace ash { | 13 namespace ash { |
| 14 namespace internal { | 14 namespace internal { |
| 15 | 15 |
| 16 OverlayEventFilter::OverlayEventFilter() | 16 OverlayEventFilter::OverlayEventFilter() |
| 17 : delegate_(NULL) { | 17 : delegate_(NULL) { |
| 18 } | 18 } |
| 19 | 19 |
| 20 OverlayEventFilter::~OverlayEventFilter() { | 20 OverlayEventFilter::~OverlayEventFilter() { |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 void OverlayEventFilter::Deactivate() { | 89 void OverlayEventFilter::Deactivate() { |
| 90 delegate_ = NULL; | 90 delegate_ = NULL; |
| 91 } | 91 } |
| 92 | 92 |
| 93 void OverlayEventFilter::Cancel() { | 93 void OverlayEventFilter::Cancel() { |
| 94 if (delegate_) | 94 if (delegate_) |
| 95 delegate_->Cancel(); | 95 delegate_->Cancel(); |
| 96 } | 96 } |
| 97 } // namespace internal | 97 } // namespace internal |
| 98 } // namespace ash | 98 } // namespace ash |
| OLD | NEW |