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

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

Issue 10383108: Adding four bezel gestures (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixing build breakage Created 8 years, 7 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
« no previous file with comments | « ash/accelerators/accelerator_controller_unittest.cc ('k') | ash/test/test_launcher_delegate.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 #ifndef ASH_TEST_TEST_LAUNCHER_DELEGATE_H_ 5 #ifndef ASH_TEST_TEST_LAUNCHER_DELEGATE_H_
6 #define ASH_TEST_TEST_LAUNCHER_DELEGATE_H_ 6 #define ASH_TEST_TEST_LAUNCHER_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 10 matching lines...) Expand all
21 21
22 // Test implementation of LauncherDelegate. 22 // Test implementation of LauncherDelegate.
23 // Tests may create icons for windows by calling AddLauncherItem 23 // Tests may create icons for windows by calling AddLauncherItem
24 class TestLauncherDelegate : public LauncherDelegate, 24 class TestLauncherDelegate : public LauncherDelegate,
25 public aura::WindowObserver { 25 public aura::WindowObserver {
26 public: 26 public:
27 explicit TestLauncherDelegate(LauncherModel* model); 27 explicit TestLauncherDelegate(LauncherModel* model);
28 virtual ~TestLauncherDelegate(); 28 virtual ~TestLauncherDelegate();
29 29
30 void AddLauncherItem(aura::Window* window); 30 void AddLauncherItem(aura::Window* window);
31 void AddLauncherItem(aura::Window* window, LauncherItemStatus status);
31 32
32 static TestLauncherDelegate* instance() { return instance_; } 33 static TestLauncherDelegate* instance() { return instance_; }
33 34
34 // WindowObserver implementation 35 // WindowObserver implementation
35 virtual void OnWillRemoveWindow(aura::Window* window) OVERRIDE; 36 virtual void OnWillRemoveWindow(aura::Window* window) OVERRIDE;
36 37
37 // LauncherDelegate implementation. 38 // LauncherDelegate implementation.
38 virtual void CreateNewTab() OVERRIDE; 39 virtual void CreateNewTab() OVERRIDE;
39 virtual void CreateNewWindow() OVERRIDE; 40 virtual void CreateNewWindow() OVERRIDE;
40 virtual void ItemClicked(const LauncherItem& item, 41 virtual void ItemClicked(const LauncherItem& item,
(...skipping 21 matching lines...) Expand all
62 // Parent windows we are watching. 63 // Parent windows we are watching.
63 ObservedWindows observed_windows_; 64 ObservedWindows observed_windows_;
64 65
65 DISALLOW_COPY_AND_ASSIGN(TestLauncherDelegate); 66 DISALLOW_COPY_AND_ASSIGN(TestLauncherDelegate);
66 }; 67 };
67 68
68 } // namespace test 69 } // namespace test
69 } // namespace ash 70 } // namespace ash
70 71
71 #endif // ASH_TEST_TEST_LAUNCHER_DELEGATE 72 #endif // ASH_TEST_TEST_LAUNCHER_DELEGATE
OLDNEW
« no previous file with comments | « ash/accelerators/accelerator_controller_unittest.cc ('k') | ash/test/test_launcher_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698