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

Side by Side Diff: ash/test/test_overlay_delegate.cc

Issue 461093003: Fix the bug of multiple overlays. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win fix Created 6 years, 4 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/test/test_overlay_delegate.h ('k') | ash/wm/overlay_event_filter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
5 #include "ash/test/test_overlay_delegate.h"
6
7 namespace ash {
8 namespace test {
9
10 TestOverlayDelegate::TestOverlayDelegate()
11 : cancel_count_(0) {}
12 TestOverlayDelegate::~TestOverlayDelegate() {}
13
14 int TestOverlayDelegate::GetCancelCountAndReset() {
15 int count = cancel_count_;
16 cancel_count_ = 0;
17 return count;
18 }
19
20 void TestOverlayDelegate::Cancel() {
21 ++cancel_count_;
22 }
23
24 bool TestOverlayDelegate::IsCancelingKeyEvent(ui::KeyEvent* event) {
25 return false;
26 }
27
28 aura::Window* TestOverlayDelegate::GetWindow() {
29 return NULL;
30 }
31
32 } // namespace test
33 } // namespace ash
OLDNEW
« no previous file with comments | « ash/test/test_overlay_delegate.h ('k') | ash/wm/overlay_event_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698