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

Side by Side Diff: chrome/test/base/test_browser_window.h

Issue 877413004: Refactor away the Browser* dependency in exclusive_access (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix broken mac change Created 5 years, 9 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 | « chrome/chrome_browser_ui.gypi ('k') | chrome/test/base/test_browser_window.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 CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ 5 #ifndef CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_
6 #define CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ 6 #define CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 gfx::Rect GetBounds() const override; 59 gfx::Rect GetBounds() const override;
60 bool IsMaximized() const override; 60 bool IsMaximized() const override;
61 bool IsMinimized() const override; 61 bool IsMinimized() const override;
62 void Maximize() override {} 62 void Maximize() override {}
63 void Minimize() override {} 63 void Minimize() override {}
64 void Restore() override {} 64 void Restore() override {}
65 void EnterFullscreen(const GURL& url, 65 void EnterFullscreen(const GURL& url,
66 ExclusiveAccessBubbleType type, 66 ExclusiveAccessBubbleType type,
67 bool with_toolbar) override {} 67 bool with_toolbar) override {}
68 void ExitFullscreen() override {} 68 void ExitFullscreen() override {}
69 void UpdateFullscreenExitBubbleContent( 69 void UpdateExclusiveAccessExitBubbleContent(
70 const GURL& url, 70 const GURL& url,
71 ExclusiveAccessBubbleType bubble_type) override {} 71 ExclusiveAccessBubbleType bubble_type) override {}
72 bool ShouldHideUIForFullscreen() const override; 72 bool ShouldHideUIForFullscreen() const override;
73 bool IsFullscreen() const override; 73 bool IsFullscreen() const override;
74 bool IsFullscreenBubbleVisible() const override; 74 bool IsFullscreenBubbleVisible() const override;
75 bool SupportsFullscreenWithToolbar() const override; 75 bool SupportsFullscreenWithToolbar() const override;
76 void UpdateFullscreenWithToolbar(bool with_toolbar) override; 76 void UpdateFullscreenWithToolbar(bool with_toolbar) override;
77 bool IsFullscreenWithToolbar() const override; 77 bool IsFullscreenWithToolbar() const override;
78 #if defined(OS_WIN) 78 #if defined(OS_WIN)
79 virtual void SetMetroSnapMode(bool enable) override {} 79 virtual void SetMetroSnapMode(bool enable) override {}
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 const gfx::Rect& bounds) override; 143 const gfx::Rect& bounds) override;
144 FindBar* CreateFindBar() override; 144 FindBar* CreateFindBar() override;
145 web_modal::WebContentsModalDialogHost* GetWebContentsModalDialogHost() 145 web_modal::WebContentsModalDialogHost* GetWebContentsModalDialogHost()
146 override; 146 override;
147 void ShowAvatarBubbleFromAvatarButton( 147 void ShowAvatarBubbleFromAvatarButton(
148 AvatarBubbleMode mode, 148 AvatarBubbleMode mode,
149 const signin::ManageAccountsParams& manage_accounts_params) override {} 149 const signin::ManageAccountsParams& manage_accounts_params) override {}
150 int GetRenderViewHeightInsetWithDetachedBookmarkBar() override; 150 int GetRenderViewHeightInsetWithDetachedBookmarkBar() override;
151 void ExecuteExtensionCommand(const extensions::Extension* extension, 151 void ExecuteExtensionCommand(const extensions::Extension* extension,
152 const extensions::Command& command) override; 152 const extensions::Command& command) override;
153 ExclusiveAccessContext* GetExclusiveAccessContext() override;
153 154
154 protected: 155 protected:
155 void DestroyBrowser() override {} 156 void DestroyBrowser() override {}
156 157
157 private: 158 private:
158 class TestLocationBar : public LocationBar { 159 class TestLocationBar : public LocationBar {
159 public: 160 public:
160 TestLocationBar() : LocationBar(NULL) {} 161 TestLocationBar() : LocationBar(NULL) {}
161 ~TestLocationBar() override {} 162 ~TestLocationBar() override {}
162 163
(...skipping 30 matching lines...) Expand all
193 }; 194 };
194 195
195 namespace chrome { 196 namespace chrome {
196 197
197 // Helper that handle the lifetime of TestBrowserWindow instances. 198 // Helper that handle the lifetime of TestBrowserWindow instances.
198 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params); 199 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params);
199 200
200 } // namespace chrome 201 } // namespace chrome
201 202
202 #endif // CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ 203 #endif // CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/chrome_browser_ui.gypi ('k') | chrome/test/base/test_browser_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698