OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |