OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_BROWSER_WINDOW_H_ | 5 #ifndef CHROME_BROWSER_BROWSER_WINDOW_H_ |
6 #define CHROME_BROWSER_BROWSER_WINDOW_H_ | 6 #define CHROME_BROWSER_BROWSER_WINDOW_H_ |
7 | 7 |
8 class Browser; | 8 class Browser; |
9 class BrowserList; | 9 class BrowserList; |
10 class BrowserWindowTesting; | 10 class BrowserWindowTesting; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 78 |
79 // TODO(beng): RENAME (GetRestoredBounds) | 79 // TODO(beng): RENAME (GetRestoredBounds) |
80 // Returns the nonmaximized bounds of the frame (even if the frame is | 80 // Returns the nonmaximized bounds of the frame (even if the frame is |
81 // currently maximized or minimized) in terms of the screen coordinates. | 81 // currently maximized or minimized) in terms of the screen coordinates. |
82 virtual gfx::Rect GetNormalBounds() const = 0; | 82 virtual gfx::Rect GetNormalBounds() const = 0; |
83 | 83 |
84 // TODO(beng): REMOVE? | 84 // TODO(beng): REMOVE? |
85 // Returns true if the frame is maximized (aka zoomed). | 85 // Returns true if the frame is maximized (aka zoomed). |
86 virtual bool IsMaximized() const = 0; | 86 virtual bool IsMaximized() const = 0; |
87 | 87 |
| 88 // Accessors for fullscreen mode state. |
| 89 virtual void SetFullscreen(bool fullscreen) = 0; |
| 90 virtual bool IsFullscreen() const = 0; |
| 91 |
88 // Returns the location bar. | 92 // Returns the location bar. |
89 virtual LocationBar* GetLocationBar() const = 0; | 93 virtual LocationBar* GetLocationBar() const = 0; |
90 | 94 |
91 // Tries to focus the location bar. Clears the window focus (to avoid | 95 // Tries to focus the location bar. Clears the window focus (to avoid |
92 // inconsistent state) if this fails. | 96 // inconsistent state) if this fails. |
93 virtual void SetFocusToLocationBar() = 0; | 97 virtual void SetFocusToLocationBar() = 0; |
94 | 98 |
95 // Informs the view whether or not a load is in progress for the current tab. | 99 // Informs the view whether or not a load is in progress for the current tab. |
96 // The view can use this notification to update the go/stop button. | 100 // The view can use this notification to update the go/stop button. |
97 virtual void UpdateStopGoState(bool is_loading) = 0; | 101 virtual void UpdateStopGoState(bool is_loading) = 0; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 #if defined(OS_WIN) | 178 #if defined(OS_WIN) |
175 // Returns the BookmarkBarView. | 179 // Returns the BookmarkBarView. |
176 virtual BookmarkBarView* GetBookmarkBarView() const = 0; | 180 virtual BookmarkBarView* GetBookmarkBarView() const = 0; |
177 | 181 |
178 // Returns the LocationBarView. | 182 // Returns the LocationBarView. |
179 virtual LocationBarView* GetLocationBarView() const = 0; | 183 virtual LocationBarView* GetLocationBarView() const = 0; |
180 #endif | 184 #endif |
181 }; | 185 }; |
182 | 186 |
183 #endif // CHROME_BROWSER_BROWSER_WINDOW_H__ | 187 #endif // CHROME_BROWSER_BROWSER_WINDOW_H__ |
OLD | NEW |