| 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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 // Opens the tabpose view. | 311 // Opens the tabpose view. |
| 312 virtual void OpenTabpose() = 0; | 312 virtual void OpenTabpose() = 0; |
| 313 #endif | 313 #endif |
| 314 | 314 |
| 315 // Invoked when the match preview's tab contents should be shown. | 315 // Invoked when the match preview's tab contents should be shown. |
| 316 virtual void ShowMatchPreview() = 0; | 316 virtual void ShowMatchPreview() = 0; |
| 317 | 317 |
| 318 // Invoked when the match preview's tab contents should be hidden. | 318 // Invoked when the match preview's tab contents should be hidden. |
| 319 virtual void HideMatchPreview() = 0; | 319 virtual void HideMatchPreview() = 0; |
| 320 | 320 |
| 321 // Returns the desired bounds for match preview in screen coordinates. Note |
| 322 // that if match preview isn't currently visible this returns the bounds the |
| 323 // match preview would be placed at. |
| 324 virtual gfx::Rect GetMatchPreviewBounds() = 0; |
| 325 |
| 321 // Construct a BrowserWindow implementation for the specified |browser|. | 326 // Construct a BrowserWindow implementation for the specified |browser|. |
| 322 static BrowserWindow* CreateBrowserWindow(Browser* browser); | 327 static BrowserWindow* CreateBrowserWindow(Browser* browser); |
| 323 | 328 |
| 324 // Construct a FindBar implementation for the specified |browser|. | 329 // Construct a FindBar implementation for the specified |browser|. |
| 325 static FindBar* CreateFindBar(Browser* browser_window); | 330 static FindBar* CreateFindBar(Browser* browser_window); |
| 326 | 331 |
| 327 protected: | 332 protected: |
| 328 friend class BrowserList; | 333 friend class BrowserList; |
| 329 friend class BrowserView; | 334 friend class BrowserView; |
| 330 virtual void DestroyBrowser() = 0; | 335 virtual void DestroyBrowser() = 0; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 360 | 365 |
| 361 // Returns the ToolbarView. | 366 // Returns the ToolbarView. |
| 362 virtual ToolbarView* GetToolbarView() const = 0; | 367 virtual ToolbarView* GetToolbarView() const = 0; |
| 363 #endif | 368 #endif |
| 364 | 369 |
| 365 protected: | 370 protected: |
| 366 virtual ~BrowserWindowTesting() {} | 371 virtual ~BrowserWindowTesting() {} |
| 367 }; | 372 }; |
| 368 | 373 |
| 369 #endif // CHROME_BROWSER_BROWSER_WINDOW_H_ | 374 #endif // CHROME_BROWSER_BROWSER_WINDOW_H_ |
| OLD | NEW |