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

Side by Side Diff: ash/test/test_activation_delegate.h

Issue 9033007: Rename the aura_shell namespace to ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef ASH_TEST_TEST_ACTIVATION_DELEGATE_H_ 5 #ifndef ASH_TEST_TEST_ACTIVATION_DELEGATE_H_
6 #define ASH_TEST_TEST_ACTIVATION_DELEGATE_H_ 6 #define ASH_TEST_TEST_ACTIVATION_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "ui/aura/client/activation_delegate.h" 11 #include "ui/aura/client/activation_delegate.h"
12 12
13 namespace aura { 13 namespace aura {
14 class Window; 14 class Window;
15 } 15 }
16 16
17 namespace aura_shell { 17 namespace ash {
18 namespace test { 18 namespace test {
19 19
20 // A test ActivationDelegate that can be used to track activation changes for 20 // A test ActivationDelegate that can be used to track activation changes for
21 // an aura::Window. 21 // an aura::Window.
22 class TestActivationDelegate : public aura::client::ActivationDelegate { 22 class TestActivationDelegate : public aura::client::ActivationDelegate {
23 public: 23 public:
24 TestActivationDelegate(); 24 TestActivationDelegate();
25 explicit TestActivationDelegate(bool activate); 25 explicit TestActivationDelegate(bool activate);
26 26
27 // Associates this delegate with a Window. 27 // Associates this delegate with a Window.
(...skipping 19 matching lines...) Expand all
47 bool window_was_active_; 47 bool window_was_active_;
48 bool activate_; 48 bool activate_;
49 int activated_count_; 49 int activated_count_;
50 int lost_active_count_; 50 int lost_active_count_;
51 int should_activate_count_; 51 int should_activate_count_;
52 52
53 DISALLOW_COPY_AND_ASSIGN(TestActivationDelegate); 53 DISALLOW_COPY_AND_ASSIGN(TestActivationDelegate);
54 }; 54 };
55 55
56 } // namespace test 56 } // namespace test
57 } // namespace aura_shell 57 } // namespace ash
58 58
59 #endif // ASH_TEST_TEST_ACTIVATION_DELEGATE_H_ 59 #endif // ASH_TEST_TEST_ACTIVATION_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698