OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/tab_contents/navigation_entry.h" | 9 #include "chrome/browser/tab_contents/navigation_entry.h" |
10 #include "chrome/common/content_settings_types.h" | 10 #include "chrome/common/content_settings_types.h" |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 | 161 |
162 // Returns whether the bookmark bar is visible or not. | 162 // Returns whether the bookmark bar is visible or not. |
163 virtual bool IsBookmarkBarVisible() const = 0; | 163 virtual bool IsBookmarkBarVisible() const = 0; |
164 | 164 |
165 // Returns whether the bookmark bar is animating or not. | 165 // Returns whether the bookmark bar is animating or not. |
166 virtual bool IsBookmarkBarAnimating() const = 0; | 166 virtual bool IsBookmarkBarAnimating() const = 0; |
167 | 167 |
168 // Returns whether the tool bar is visible or not. | 168 // Returns whether the tool bar is visible or not. |
169 virtual bool IsToolbarVisible() const = 0; | 169 virtual bool IsToolbarVisible() const = 0; |
170 | 170 |
171 // Returns the rect where the resize corner should be drawn by the render | |
172 // widget host view (on top of what the renderer returns). We return an empty | |
173 // rect to identify that there shouldn't be a resize corner (in the cases | |
174 // where we take care of it ourselves at the browser level). | |
175 virtual gfx::Rect GetRootWindowResizerRect() const = 0; | |
176 | |
177 // Tells the frame not to render as inactive until the next activation change. | 171 // Tells the frame not to render as inactive until the next activation change. |
178 // This is required on Windows when dropdown selects are shown to prevent the | 172 // This is required on Windows when dropdown selects are shown to prevent the |
179 // select from deactivating the browser frame. A stub implementation is | 173 // select from deactivating the browser frame. A stub implementation is |
180 // provided here since the functionality is Windows-specific. | 174 // provided here since the functionality is Windows-specific. |
181 virtual void DisableInactiveFrame() {} | 175 virtual void DisableInactiveFrame() {} |
182 | 176 |
183 // Shows a confirmation dialog box for setting the default search engine | 177 // Shows a confirmation dialog box for setting the default search engine |
184 // described by |template_url|. Takes ownership of |template_url|. | 178 // described by |template_url|. Takes ownership of |template_url|. |
185 virtual void ConfirmSetDefaultSearchProvider( | 179 virtual void ConfirmSetDefaultSearchProvider( |
186 TabContents* tab_contents, | 180 TabContents* tab_contents, |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 | 369 |
376 // Returns the ToolbarView. | 370 // Returns the ToolbarView. |
377 virtual ToolbarView* GetToolbarView() const = 0; | 371 virtual ToolbarView* GetToolbarView() const = 0; |
378 #endif | 372 #endif |
379 | 373 |
380 protected: | 374 protected: |
381 virtual ~BrowserWindowTesting() {} | 375 virtual ~BrowserWindowTesting() {} |
382 }; | 376 }; |
383 | 377 |
384 #endif // CHROME_BROWSER_BROWSER_WINDOW_H_ | 378 #endif // CHROME_BROWSER_BROWSER_WINDOW_H_ |
OLD | NEW |