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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 // Sets the starred state for the current tab. | 76 // Sets the starred state for the current tab. |
77 virtual void SetStarredState(bool is_starred) = 0; | 77 virtual void SetStarredState(bool is_starred) = 0; |
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() = 0; | 86 virtual bool IsMaximized() const = 0; |
87 | 87 |
88 // Returns the location bar. | 88 // Returns the location bar. |
89 virtual LocationBar* GetLocationBar() const = 0; | 89 virtual LocationBar* GetLocationBar() const = 0; |
90 | 90 |
91 // Informs the view whether or not a load is in progress for the current tab. | 91 // Informs the view whether or not a load is in progress for the current tab. |
92 // The view can use this notification to update the go/stop button. | 92 // The view can use this notification to update the go/stop button. |
93 virtual void UpdateStopGoState(bool is_loading) = 0; | 93 virtual void UpdateStopGoState(bool is_loading) = 0; |
94 | 94 |
95 // Updates the toolbar with the state for the specified |contents|. | 95 // Updates the toolbar with the state for the specified |contents|. |
96 virtual void UpdateToolbar(TabContents* contents, | 96 virtual void UpdateToolbar(TabContents* contents, |
97 bool should_restore_state) = 0; | 97 bool should_restore_state) = 0; |
98 | 98 |
99 // Focuses the toolbar (for accessibility). | 99 // Focuses the toolbar (for accessibility). |
100 virtual void FocusToolbar() = 0; | 100 virtual void FocusToolbar() = 0; |
101 | 101 |
102 // Returns whether the bookmark bar is visible or not. | 102 // Returns whether the bookmark bar is visible or not. |
103 virtual bool IsBookmarkBarVisible() const = 0; | 103 virtual bool IsBookmarkBarVisible() const = 0; |
104 | 104 |
| 105 // Returns the rect where the resize corner should be drawn by the render |
| 106 // widget host view (on top of what the renderer returns). We return an empty |
| 107 // rect to identify that there shouldn't be a resize corner (in the cases |
| 108 // where we take care of it ourselves at the browser level). |
| 109 virtual gfx::Rect GetRootWindowResizerRect() const = 0; |
| 110 |
105 // Shows or hides the bookmark bar depending on its current visibility. | 111 // Shows or hides the bookmark bar depending on its current visibility. |
106 virtual void ToggleBookmarkBar() = 0; | 112 virtual void ToggleBookmarkBar() = 0; |
107 | 113 |
108 // Shows the About Chrome dialog box. | 114 // Shows the About Chrome dialog box. |
109 virtual void ShowAboutChromeDialog() = 0; | 115 virtual void ShowAboutChromeDialog() = 0; |
110 | 116 |
111 // Shows the Bookmark Manager window. | 117 // Shows the Bookmark Manager window. |
112 virtual void ShowBookmarkManager() = 0; | 118 virtual void ShowBookmarkManager() = 0; |
113 | 119 |
114 // Returns true if the Bookmark bubble is visible. | 120 // Returns true if the Bookmark bubble is visible. |
115 virtual bool IsBookmarkBubbleVisible() const = 0; | 121 virtual bool IsBookmarkBubbleVisible() const = 0; |
116 | 122 |
117 // Shows the Bookmark bubble. |url| is the URL being bookmarked, | 123 // Shows the Bookmark bubble. |url| is the URL being bookmarked, |
118 // |already_bookmarked| is true if the url is already bookmarked. | 124 // |already_bookmarked| is true if the url is already bookmarked. |
119 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) = 0; | 125 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) = 0; |
120 | 126 |
121 // Shows the Report a Bug dialog box. | 127 // Shows the Report a Bug dialog box. |
122 virtual void ShowReportBugDialog() = 0; | 128 virtual void ShowReportBugDialog() = 0; |
123 | 129 |
124 // Shows the Clear Browsing Data dialog box. | 130 // Shows the Clear Browsing Data dialog box. |
125 virtual void ShowClearBrowsingDataDialog() = 0; | 131 virtual void ShowClearBrowsingDataDialog() = 0; |
126 | 132 |
127 // Shows the Import Bookmarks & Settings dialog box. | 133 // Shows the Import Bookmarks & Settings dialog box. |
128 virtual void ShowImportDialog() = 0; | 134 virtual void ShowImportDialog() = 0; |
129 | 135 |
130 // Shows the Search Engines dialog box. | 136 // Shows the Search Engines dialog box. |
131 virtual void ShowSearchEnginesDialog() = 0; | 137 virtual void ShowSearchEnginesDialog() = 0; |
132 | 138 |
133 // Shows the Password Manager dialog box. | 139 // Shows the Password Manager dialog box. |
134 virtual void ShowPasswordManager() = 0; | 140 virtual void ShowPasswordManager() = 0; |
135 | 141 |
136 // Shows the Select Profile dialog box. | 142 // Shows the Select Profile dialog box. |
137 virtual void ShowSelectProfileDialog() = 0; | 143 virtual void ShowSelectProfileDialog() = 0; |
138 | 144 |
139 // Shows the New Profile dialog box. | 145 // Shows the New Profile dialog box. |
(...skipping 24 matching lines...) Expand all Loading... |
164 #if defined(OS_WIN) | 170 #if defined(OS_WIN) |
165 // Returns the BookmarkBarView. | 171 // Returns the BookmarkBarView. |
166 virtual BookmarkBarView* GetBookmarkBarView() = 0; | 172 virtual BookmarkBarView* GetBookmarkBarView() = 0; |
167 | 173 |
168 // Returns the LocationBarView. | 174 // Returns the LocationBarView. |
169 virtual LocationBarView* GetLocationBarView() const = 0; | 175 virtual LocationBarView* GetLocationBarView() const = 0; |
170 #endif | 176 #endif |
171 }; | 177 }; |
172 | 178 |
173 #endif // CHROME_BROWSER_BROWSER_WINDOW_H__ | 179 #endif // CHROME_BROWSER_BROWSER_WINDOW_H__ |
OLD | NEW |