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

Side by Side Diff: ash/wm/overlay_event_filter.cc

Issue 224113005: Eliminate ash::internal namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « ash/wm/overlay_event_filter.h ('k') | ash/wm/overview/window_overview.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 (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/events/event.h" 10 #include "ui/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 {
15 14
16 OverlayEventFilter::OverlayEventFilter() 15 OverlayEventFilter::OverlayEventFilter()
17 : delegate_(NULL) { 16 : delegate_(NULL) {
18 } 17 }
19 18
20 OverlayEventFilter::~OverlayEventFilter() { 19 OverlayEventFilter::~OverlayEventFilter() {
21 delegate_ = NULL; 20 delegate_ = NULL;
22 } 21 }
23 22
24 void OverlayEventFilter::OnKeyEvent(ui::KeyEvent* event) { 23 void OverlayEventFilter::OnKeyEvent(ui::KeyEvent* event) {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 } 62 }
64 63
65 void OverlayEventFilter::Deactivate() { 64 void OverlayEventFilter::Deactivate() {
66 delegate_ = NULL; 65 delegate_ = NULL;
67 } 66 }
68 67
69 void OverlayEventFilter::Cancel() { 68 void OverlayEventFilter::Cancel() {
70 if (delegate_) 69 if (delegate_)
71 delegate_->Cancel(); 70 delegate_->Cancel();
72 } 71 }
73 } // namespace internal 72
74 } // namespace ash 73 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/overlay_event_filter.h ('k') | ash/wm/overview/window_overview.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698