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

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

Issue 11578044: Enable Search-key modifiers for extended key shortcuts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 8 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
« no previous file with comments | « ash/shell_delegate.h ('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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 virtual void RecordUserMetricsAction(UserMetricsAction action) OVERRIDE; 59 virtual void RecordUserMetricsAction(UserMetricsAction action) OVERRIDE;
60 virtual void HandleMediaNextTrack() OVERRIDE; 60 virtual void HandleMediaNextTrack() OVERRIDE;
61 virtual void HandleMediaPlayPause() OVERRIDE; 61 virtual void HandleMediaPlayPause() OVERRIDE;
62 virtual void HandleMediaPrevTrack() OVERRIDE; 62 virtual void HandleMediaPrevTrack() OVERRIDE;
63 virtual string16 GetTimeRemainingString(base::TimeDelta delta) OVERRIDE; 63 virtual string16 GetTimeRemainingString(base::TimeDelta delta) OVERRIDE;
64 virtual string16 GetTimeDurationLongString(base::TimeDelta delta) OVERRIDE; 64 virtual string16 GetTimeDurationLongString(base::TimeDelta delta) OVERRIDE;
65 virtual void SaveScreenMagnifierScale(double scale) OVERRIDE; 65 virtual void SaveScreenMagnifierScale(double scale) OVERRIDE;
66 virtual double GetSavedScreenMagnifierScale() OVERRIDE; 66 virtual double GetSavedScreenMagnifierScale() OVERRIDE;
67 virtual ui::MenuModel* CreateContextMenu(aura::RootWindow* root) OVERRIDE; 67 virtual ui::MenuModel* CreateContextMenu(aura::RootWindow* root) OVERRIDE;
68 virtual aura::client::StackingClient* CreateStackingClient() OVERRIDE; 68 virtual aura::client::StackingClient* CreateStackingClient() OVERRIDE;
69 virtual bool IsSearchKeyActingAsFunctionKey() const OVERRIDE;
70 virtual RootWindowHostFactory* CreateRootWindowHostFactory() OVERRIDE; 69 virtual RootWindowHostFactory* CreateRootWindowHostFactory() OVERRIDE;
71 70
72 int num_exit_requests() const { return num_exit_requests_; } 71 int num_exit_requests() const { return num_exit_requests_; }
73 void set_is_search_key_acting_as_function_key(bool b) {
74 is_search_key_acting_as_function_key_ = b;
75 }
76 private: 72 private:
77 friend class ash::test::AshTestBase; 73 friend class ash::test::AshTestBase;
78 74
79 // Given |session_started| will update internal state. 75 // Given |session_started| will update internal state.
80 // If |session_started| is true this method will also set 76 // If |session_started| is true this method will also set
81 // |user_logged_in_| to true. 77 // |user_logged_in_| to true.
82 // When session is started it always means that user has logged in. 78 // When session is started it always means that user has logged in.
83 // Possible situation is that user has already logged in but session has not 79 // Possible situation is that user has already logged in but session has not
84 // been started (user selects avatar and login window is still open). 80 // been started (user selects avatar and login window is still open).
85 void SetSessionStarted(bool session_started); 81 void SetSessionStarted(bool session_started);
86 82
87 // Given |user_logged_in| will update internal state. 83 // Given |user_logged_in| will update internal state.
88 // If |user_logged_in| is false this method will also set |session_started_| 84 // If |user_logged_in| is false this method will also set |session_started_|
89 // to false. When user is not logged in it always means that session 85 // to false. When user is not logged in it always means that session
90 // hasn't been started too. 86 // hasn't been started too.
91 void SetUserLoggedIn(bool user_logged_in); 87 void SetUserLoggedIn(bool user_logged_in);
92 88
93 // Sets the internal state that indicates whether the user can lock the 89 // Sets the internal state that indicates whether the user can lock the
94 // screen. 90 // screen.
95 void SetCanLockScreen(bool can_lock_screen); 91 void SetCanLockScreen(bool can_lock_screen);
96 92
97 bool locked_; 93 bool locked_;
98 bool session_started_; 94 bool session_started_;
99 bool spoken_feedback_enabled_; 95 bool spoken_feedback_enabled_;
100 bool high_contrast_enabled_; 96 bool high_contrast_enabled_;
101 MagnifierType screen_magnifier_type_; 97 MagnifierType screen_magnifier_type_;
102 bool user_logged_in_; 98 bool user_logged_in_;
103 bool can_lock_screen_; 99 bool can_lock_screen_;
104 bool is_search_key_acting_as_function_key_;
105 int num_exit_requests_; 100 int num_exit_requests_;
106 101
107 scoped_ptr<content::BrowserContext> current_browser_context_; 102 scoped_ptr<content::BrowserContext> current_browser_context_;
108 103
109 DISALLOW_COPY_AND_ASSIGN(TestShellDelegate); 104 DISALLOW_COPY_AND_ASSIGN(TestShellDelegate);
110 }; 105 };
111 106
112 } // namespace test 107 } // namespace test
113 } // namespace ash 108 } // namespace ash
114 109
115 #endif // ASH_TEST_TEST_SHELL_DELEGATE_H_ 110 #endif // ASH_TEST_TEST_SHELL_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/shell_delegate.h ('k') | ash/test/test_shell_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698