| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_WINDOW_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| 6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" | 9 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" |
| 10 #include "chrome/browser/ui/fullscreen_exit_bubble_type.h" | 10 #include "chrome/browser/ui/fullscreen_exit_bubble_type.h" |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 | 200 |
| 201 // Returns whether the bookmark bar is animating or not. | 201 // Returns whether the bookmark bar is animating or not. |
| 202 virtual bool IsBookmarkBarAnimating() const = 0; | 202 virtual bool IsBookmarkBarAnimating() const = 0; |
| 203 | 203 |
| 204 // Returns whether the tab strip is editable (for extensions). | 204 // Returns whether the tab strip is editable (for extensions). |
| 205 virtual bool IsTabStripEditable() const = 0; | 205 virtual bool IsTabStripEditable() const = 0; |
| 206 | 206 |
| 207 // Returns whether the tool bar is visible or not. | 207 // Returns whether the tool bar is visible or not. |
| 208 virtual bool IsToolbarVisible() const = 0; | 208 virtual bool IsToolbarVisible() const = 0; |
| 209 | 209 |
| 210 // Returns the rect where the resize corner should be drawn by the render |
| 211 // widget host view (on top of what the renderer returns). We return an empty |
| 212 // rect to identify that there shouldn't be a resize corner (in the cases |
| 213 // where we take care of it ourselves at the browser level). |
| 214 virtual gfx::Rect GetRootWindowResizerRect() const = 0; |
| 215 |
| 210 // Returns whether the window is a panel. This is not always synonomous | 216 // Returns whether the window is a panel. This is not always synonomous |
| 211 // with the associated browser having type panel since some environments | 217 // with the associated browser having type panel since some environments |
| 212 // may draw popups in panel windows. | 218 // may draw popups in panel windows. |
| 213 virtual bool IsPanel() const = 0; | 219 virtual bool IsPanel() const = 0; |
| 214 | 220 |
| 215 // Tells the frame not to render as inactive until the next activation change. | 221 // Tells the frame not to render as inactive until the next activation change. |
| 216 // This is required on Windows when dropdown selects are shown to prevent the | 222 // This is required on Windows when dropdown selects are shown to prevent the |
| 217 // select from deactivating the browser frame. A stub implementation is | 223 // select from deactivating the browser frame. A stub implementation is |
| 218 // provided here since the functionality is Windows-specific. | 224 // provided here since the functionality is Windows-specific. |
| 219 virtual void DisableInactiveFrame() {} | 225 virtual void DisableInactiveFrame() {} |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 | 413 |
| 408 // Returns the ToolbarView. | 414 // Returns the ToolbarView. |
| 409 virtual ToolbarView* GetToolbarView() const = 0; | 415 virtual ToolbarView* GetToolbarView() const = 0; |
| 410 #endif | 416 #endif |
| 411 | 417 |
| 412 protected: | 418 protected: |
| 413 virtual ~BrowserWindowTesting() {} | 419 virtual ~BrowserWindowTesting() {} |
| 414 }; | 420 }; |
| 415 | 421 |
| 416 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 422 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |