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

Side by Side Diff: chrome/browser/ui/exclusive_access/exclusive_access_context.h

Issue 1650483002: Refactor: Untangle Mac's ExclusiveAccessContext from BrowserWindow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename accessor Created 4 years, 10 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
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_H_ 5 #ifndef CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_H_
6 #define CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_H_ 6 #define CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h" 9 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h"
10 10
(...skipping 25 matching lines...) Expand all
36 // fullscreen. 36 // fullscreen.
37 // Currently only supported on Mac. 37 // Currently only supported on Mac.
38 virtual void UpdateFullscreenWithToolbar(bool with_toolbar); 38 virtual void UpdateFullscreenWithToolbar(bool with_toolbar);
39 39
40 // Toggles the toolbar state to be hidden or shown in fullscreen. 40 // Toggles the toolbar state to be hidden or shown in fullscreen.
41 // Currently only supported on Mac. 41 // Currently only supported on Mac.
42 virtual void ToggleFullscreenToolbar(); 42 virtual void ToggleFullscreenToolbar();
43 43
44 // Returns true if the window is fullscreen with additional UI elements. See 44 // Returns true if the window is fullscreen with additional UI elements. See
45 // EnterFullscreen |with_toolbar|. 45 // EnterFullscreen |with_toolbar|.
46 virtual bool IsFullscreenWithToolbar() const = 0; 46 virtual bool IsFullscreenWithToolbar() const;
47 47
48 // Enters fullscreen and update exit bubble. 48 // Enters fullscreen and update exit bubble.
49 // On Mac, the tab strip and toolbar will be shown if |with_toolbar| is true, 49 // On Mac, the tab strip and toolbar will be shown if |with_toolbar| is true,
50 // |with_toolbar| is ignored on other platforms. 50 // |with_toolbar| is ignored on other platforms.
51 virtual void EnterFullscreen(const GURL& url, 51 virtual void EnterFullscreen(const GURL& url,
52 ExclusiveAccessBubbleType bubble_type, 52 ExclusiveAccessBubbleType bubble_type,
53 bool with_toolbar) = 0; 53 bool with_toolbar) = 0;
54 54
55 // Exits fullscreen and update exit bubble. 55 // Exits fullscreen and update exit bubble.
56 virtual void ExitFullscreen() = 0; 56 virtual void ExitFullscreen() = 0;
(...skipping 16 matching lines...) Expand all
73 #endif // defined(OS_WIN) 73 #endif // defined(OS_WIN)
74 74
75 // Returns the currently active WebContents, or nullptr if there is none. 75 // Returns the currently active WebContents, or nullptr if there is none.
76 virtual content::WebContents* GetActiveWebContents() = 0; 76 virtual content::WebContents* GetActiveWebContents() = 0;
77 77
78 // TODO(sriramsr): This is abstraction violation as the following two function 78 // TODO(sriramsr): This is abstraction violation as the following two function
79 // does not apply to a platform app window. Ideally, the BrowserView should 79 // does not apply to a platform app window. Ideally, the BrowserView should
80 // hide/unhide its download shelf widget when it is instructed to enter/exit 80 // hide/unhide its download shelf widget when it is instructed to enter/exit
81 // fullscreen mode. 81 // fullscreen mode.
82 // Displays the download shelf associated with currently active window. 82 // Displays the download shelf associated with currently active window.
83 virtual void UnhideDownloadShelf(); 83 virtual void UnhideDownloadShelf() = 0;
84 84
85 // Hides download shelf associated with currently active window. 85 // Hides download shelf associated with currently active window.
86 virtual void HideDownloadShelf(); 86 virtual void HideDownloadShelf() = 0;
87 }; 87 };
88 88
89 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_H_ 89 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698