| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "chrome/browser/lifetime/application_lifetime.h" | 9 #include "chrome/browser/lifetime/application_lifetime.h" |
| 10 #include "chrome/browser/ui/base_window.h" | 10 #include "chrome/browser/ui/base_window.h" |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 | 176 |
| 177 // Returns whether the tool bar is visible or not. | 177 // Returns whether the tool bar is visible or not. |
| 178 virtual bool IsToolbarVisible() const = 0; | 178 virtual bool IsToolbarVisible() const = 0; |
| 179 | 179 |
| 180 // Returns the rect where the resize corner should be drawn by the render | 180 // Returns the rect where the resize corner should be drawn by the render |
| 181 // widget host view (on top of what the renderer returns). We return an empty | 181 // widget host view (on top of what the renderer returns). We return an empty |
| 182 // rect to identify that there shouldn't be a resize corner (in the cases | 182 // rect to identify that there shouldn't be a resize corner (in the cases |
| 183 // where we take care of it ourselves at the browser level). | 183 // where we take care of it ourselves at the browser level). |
| 184 virtual gfx::Rect GetRootWindowResizerRect() const = 0; | 184 virtual gfx::Rect GetRootWindowResizerRect() const = 0; |
| 185 | 185 |
| 186 // Returns whether the window is a panel. This is not always synonomous | |
| 187 // with the associated browser having type panel since some environments | |
| 188 // may draw popups in panel windows. | |
| 189 virtual bool IsPanel() const = 0; | |
| 190 | |
| 191 // Tells the frame not to render as inactive until the next activation change. | 186 // Tells the frame not to render as inactive until the next activation change. |
| 192 // This is required on Windows when dropdown selects are shown to prevent the | 187 // This is required on Windows when dropdown selects are shown to prevent the |
| 193 // select from deactivating the browser frame. A stub implementation is | 188 // select from deactivating the browser frame. A stub implementation is |
| 194 // provided here since the functionality is Windows-specific. | 189 // provided here since the functionality is Windows-specific. |
| 195 virtual void DisableInactiveFrame() {} | 190 virtual void DisableInactiveFrame() {} |
| 196 | 191 |
| 197 // Shows a confirmation dialog box for adding a search engine described by | 192 // Shows a confirmation dialog box for adding a search engine described by |
| 198 // |template_url|. Takes ownership of |template_url|. | 193 // |template_url|. Takes ownership of |template_url|. |
| 199 virtual void ConfirmAddSearchProvider(TemplateURL* template_url, | 194 virtual void ConfirmAddSearchProvider(TemplateURL* template_url, |
| 200 Profile* profile) = 0; | 195 Profile* profile) = 0; |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 | 384 |
| 390 // Returns the ToolbarView. | 385 // Returns the ToolbarView. |
| 391 virtual ToolbarView* GetToolbarView() const = 0; | 386 virtual ToolbarView* GetToolbarView() const = 0; |
| 392 #endif | 387 #endif |
| 393 | 388 |
| 394 protected: | 389 protected: |
| 395 virtual ~BrowserWindowTesting() {} | 390 virtual ~BrowserWindowTesting() {} |
| 396 }; | 391 }; |
| 397 | 392 |
| 398 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 393 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |