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

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

Issue 11091023: ash : Decouple power button controller and session state controller. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix power button cancel behaviour + unittest Created 8 years, 2 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/shell.cc ('k') | ash/test/test_shell_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_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
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_
OLDNEW
« no previous file with comments | « ash/shell.cc ('k') | ash/test/test_shell_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698