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_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/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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 virtual void OpenTabpose() = 0; | 316 virtual void OpenTabpose() = 0; |
317 #endif | 317 #endif |
318 | 318 |
319 // See InstantDelegate for details. | 319 // See InstantDelegate for details. |
320 virtual void PrepareForInstant() = 0; | 320 virtual void PrepareForInstant() = 0; |
321 | 321 |
322 // Invoked when instant's tab contents should be shown. | 322 // Invoked when instant's tab contents should be shown. |
323 virtual void ShowInstant(TabContents* preview_contents) = 0; | 323 virtual void ShowInstant(TabContents* preview_contents) = 0; |
324 | 324 |
325 // Invoked when the instant's tab contents should be hidden. | 325 // Invoked when the instant's tab contents should be hidden. |
326 virtual void HideInstant() = 0; | 326 // |instant_is_active| indicates if instant is still active. |
| 327 virtual void HideInstant(bool instant_is_active) = 0; |
327 | 328 |
328 // Returns the desired bounds for instant in screen coordinates. Note that if | 329 // Returns the desired bounds for instant in screen coordinates. Note that if |
329 // instant isn't currently visible this returns the bounds instant would be | 330 // instant isn't currently visible this returns the bounds instant would be |
330 // placed at. | 331 // placed at. |
331 virtual gfx::Rect GetInstantBounds() = 0; | 332 virtual gfx::Rect GetInstantBounds() = 0; |
332 | 333 |
333 // Construct a BrowserWindow implementation for the specified |browser|. | 334 // Construct a BrowserWindow implementation for the specified |browser|. |
334 static BrowserWindow* CreateBrowserWindow(Browser* browser); | 335 static BrowserWindow* CreateBrowserWindow(Browser* browser); |
335 | 336 |
336 // Construct a FindBar implementation for the specified |browser|. | 337 // Construct a FindBar implementation for the specified |browser|. |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 | 373 |
373 // Returns the ToolbarView. | 374 // Returns the ToolbarView. |
374 virtual ToolbarView* GetToolbarView() const = 0; | 375 virtual ToolbarView* GetToolbarView() const = 0; |
375 #endif | 376 #endif |
376 | 377 |
377 protected: | 378 protected: |
378 virtual ~BrowserWindowTesting() {} | 379 virtual ~BrowserWindowTesting() {} |
379 }; | 380 }; |
380 | 381 |
381 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 382 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |