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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 virtual void HandleMediaNextTrack() OVERRIDE; | 59 virtual void HandleMediaNextTrack() OVERRIDE; |
60 virtual void HandleMediaPlayPause() OVERRIDE; | 60 virtual void HandleMediaPlayPause() OVERRIDE; |
61 virtual void HandleMediaPrevTrack() OVERRIDE; | 61 virtual void HandleMediaPrevTrack() OVERRIDE; |
62 virtual string16 GetTimeRemainingString(base::TimeDelta delta) OVERRIDE; | 62 virtual string16 GetTimeRemainingString(base::TimeDelta delta) OVERRIDE; |
63 virtual string16 GetTimeDurationLongString(base::TimeDelta delta) OVERRIDE; | 63 virtual string16 GetTimeDurationLongString(base::TimeDelta delta) OVERRIDE; |
64 virtual void SaveScreenMagnifierScale(double scale) OVERRIDE; | 64 virtual void SaveScreenMagnifierScale(double scale) OVERRIDE; |
65 virtual double GetSavedScreenMagnifierScale() OVERRIDE; | 65 virtual double GetSavedScreenMagnifierScale() OVERRIDE; |
66 virtual ui::MenuModel* CreateContextMenu(aura::RootWindow* root) OVERRIDE; | 66 virtual ui::MenuModel* CreateContextMenu(aura::RootWindow* root) OVERRIDE; |
67 virtual aura::client::StackingClient* CreateStackingClient() OVERRIDE; | 67 virtual aura::client::StackingClient* CreateStackingClient() OVERRIDE; |
68 virtual bool IsSearchKeyActingAsFunctionKey() const OVERRIDE; | 68 virtual bool IsSearchKeyActingAsFunctionKey() const OVERRIDE; |
| 69 virtual RootWindowHostFactory* CreateRootWindowHostFactory() OVERRIDE; |
69 | 70 |
70 int num_exit_requests() const { return num_exit_requests_; } | 71 int num_exit_requests() const { return num_exit_requests_; } |
71 void set_is_search_key_acting_as_function_key(bool b) { | 72 void set_is_search_key_acting_as_function_key(bool b) { |
72 is_search_key_acting_as_function_key_ = b; | 73 is_search_key_acting_as_function_key_ = b; |
73 } | 74 } |
74 private: | 75 private: |
75 friend class ash::test::AshTestBase; | 76 friend class ash::test::AshTestBase; |
76 | 77 |
77 // Given |session_started| will update internal state. | 78 // Given |session_started| will update internal state. |
78 // If |session_started| is true this method will also set | 79 // If |session_started| is true this method will also set |
(...skipping 25 matching lines...) Expand all Loading... |
104 | 105 |
105 scoped_ptr<content::BrowserContext> current_browser_context_; | 106 scoped_ptr<content::BrowserContext> current_browser_context_; |
106 | 107 |
107 DISALLOW_COPY_AND_ASSIGN(TestShellDelegate); | 108 DISALLOW_COPY_AND_ASSIGN(TestShellDelegate); |
108 }; | 109 }; |
109 | 110 |
110 } // namespace test | 111 } // namespace test |
111 } // namespace ash | 112 } // namespace ash |
112 | 113 |
113 #endif // ASH_TEST_TEST_SHELL_DELEGATE_H_ | 114 #endif // ASH_TEST_TEST_SHELL_DELEGATE_H_ |
OLD | NEW |