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

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

Issue 48523010: [Refactor] Introduce MediaDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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
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 <string> 8 #include <string>
9 9
10 #include "ash/shell_delegate.h" 10 #include "ash/shell_delegate.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 virtual content::BrowserContext* GetCurrentBrowserContext() OVERRIDE; 42 virtual content::BrowserContext* GetCurrentBrowserContext() OVERRIDE;
43 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE; 43 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE;
44 virtual LauncherDelegate* CreateLauncherDelegate( 44 virtual LauncherDelegate* CreateLauncherDelegate(
45 ash::LauncherModel* model) OVERRIDE; 45 ash::LauncherModel* model) OVERRIDE;
46 virtual SystemTrayDelegate* CreateSystemTrayDelegate() OVERRIDE; 46 virtual SystemTrayDelegate* CreateSystemTrayDelegate() OVERRIDE;
47 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() OVERRIDE; 47 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() OVERRIDE;
48 virtual CapsLockDelegate* CreateCapsLockDelegate() OVERRIDE; 48 virtual CapsLockDelegate* CreateCapsLockDelegate() OVERRIDE;
49 virtual SessionStateDelegate* CreateSessionStateDelegate() OVERRIDE; 49 virtual SessionStateDelegate* CreateSessionStateDelegate() OVERRIDE;
50 virtual AccessibilityDelegate* CreateAccessibilityDelegate() OVERRIDE; 50 virtual AccessibilityDelegate* CreateAccessibilityDelegate() OVERRIDE;
51 virtual NewWindowDelegate* CreateNewWindowDelegate() OVERRIDE; 51 virtual NewWindowDelegate* CreateNewWindowDelegate() OVERRIDE;
52 virtual MediaDelegate* CreateMediaDelegate() OVERRIDE;
52 virtual aura::client::UserActionClient* CreateUserActionClient() OVERRIDE; 53 virtual aura::client::UserActionClient* CreateUserActionClient() OVERRIDE;
53 virtual void RecordUserMetricsAction(UserMetricsAction action) OVERRIDE; 54 virtual void RecordUserMetricsAction(UserMetricsAction action) OVERRIDE;
54 virtual void HandleMediaNextTrack() OVERRIDE;
55 virtual void HandleMediaPlayPause() OVERRIDE;
56 virtual void HandleMediaPrevTrack() OVERRIDE;
57 virtual ui::MenuModel* CreateContextMenu(aura::Window* root) OVERRIDE; 55 virtual ui::MenuModel* CreateContextMenu(aura::Window* root) OVERRIDE;
58 virtual RootWindowHostFactory* CreateRootWindowHostFactory() OVERRIDE; 56 virtual RootWindowHostFactory* CreateRootWindowHostFactory() OVERRIDE;
59 virtual base::string16 GetProductName() const OVERRIDE; 57 virtual base::string16 GetProductName() const OVERRIDE;
60 58
61 int num_exit_requests() const { return num_exit_requests_; } 59 int num_exit_requests() const { return num_exit_requests_; }
62 60
63 TestSessionStateDelegate* test_session_state_delegate(); 61 TestSessionStateDelegate* test_session_state_delegate();
64 62
65 private: 63 private:
66 int num_exit_requests_; 64 int num_exit_requests_;
67 bool multi_profiles_enabled_; 65 bool multi_profiles_enabled_;
68 66
69 scoped_ptr<content::BrowserContext> current_browser_context_; 67 scoped_ptr<content::BrowserContext> current_browser_context_;
70 68
71 TestSessionStateDelegate* test_session_state_delegate_; // Not owned. 69 TestSessionStateDelegate* test_session_state_delegate_; // Not owned.
72 70
73 DISALLOW_COPY_AND_ASSIGN(TestShellDelegate); 71 DISALLOW_COPY_AND_ASSIGN(TestShellDelegate);
74 }; 72 };
75 73
76 } // namespace test 74 } // namespace test
77 } // namespace ash 75 } // namespace ash
78 76
79 #endif // ASH_TEST_TEST_SHELL_DELEGATE_H_ 77 #endif // ASH_TEST_TEST_SHELL_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698