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 #ifndef ASH_TEST_TEST_SHELL_DELEGATE_H_ | 5 #ifndef ASH_TEST_TEST_SHELL_DELEGATE_H_ |
6 #define ASH_TEST_TEST_SHELL_DELEGATE_H_ | 6 #define ASH_TEST_TEST_SHELL_DELEGATE_H_ |
7 | 7 |
8 #include "ash/shell_delegate.h" | 8 #include "ash/shell_delegate.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 virtual aura::client::UserActionClient* CreateUserActionClient() OVERRIDE; | 48 virtual aura::client::UserActionClient* CreateUserActionClient() OVERRIDE; |
49 virtual void OpenFeedbackPage() OVERRIDE; | 49 virtual void OpenFeedbackPage() OVERRIDE; |
50 virtual void RecordUserMetricsAction(UserMetricsAction action) OVERRIDE; | 50 virtual void RecordUserMetricsAction(UserMetricsAction action) OVERRIDE; |
51 virtual void HandleMediaNextTrack() OVERRIDE; | 51 virtual void HandleMediaNextTrack() OVERRIDE; |
52 virtual void HandleMediaPlayPause() OVERRIDE; | 52 virtual void HandleMediaPlayPause() OVERRIDE; |
53 virtual void HandleMediaPrevTrack() OVERRIDE; | 53 virtual void HandleMediaPrevTrack() OVERRIDE; |
54 virtual string16 GetTimeRemainingString(base::TimeDelta delta) OVERRIDE; | 54 virtual string16 GetTimeRemainingString(base::TimeDelta delta) OVERRIDE; |
55 virtual void SaveScreenMagnifierScale(double scale) OVERRIDE; | 55 virtual void SaveScreenMagnifierScale(double scale) OVERRIDE; |
56 virtual double GetSavedScreenMagnifierScale() OVERRIDE; | 56 virtual double GetSavedScreenMagnifierScale() OVERRIDE; |
57 | 57 |
| 58 int num_exit_requests() const { return num_exit_requests_; } |
58 private: | 59 private: |
59 bool locked_; | 60 bool locked_; |
60 bool spoken_feedback_enabled_; | 61 bool spoken_feedback_enabled_; |
| 62 int num_exit_requests_; |
| 63 |
61 scoped_ptr<content::BrowserContext> current_browser_context_; | 64 scoped_ptr<content::BrowserContext> current_browser_context_; |
62 | 65 |
63 DISALLOW_COPY_AND_ASSIGN(TestShellDelegate); | 66 DISALLOW_COPY_AND_ASSIGN(TestShellDelegate); |
64 }; | 67 }; |
65 | 68 |
66 } // namespace test | 69 } // namespace test |
67 } // namespace ash | 70 } // namespace ash |
68 | 71 |
69 #endif // ASH_TEST_TEST_SHELL_DELEGATE_H_ | 72 #endif // ASH_TEST_TEST_SHELL_DELEGATE_H_ |
OLD | NEW |