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 #if defined(OS_CHROMEOS) | 334 #if defined(OS_CHROMEOS) |
334 // Shows the keyboard overlay dialog box. | 335 // Shows the keyboard overlay dialog box. |
335 virtual void ShowKeyboardOverlay(gfx::NativeWindow owning_window) = 0; | 336 virtual void ShowKeyboardOverlay(gfx::NativeWindow owning_window) = 0; |
336 #endif | 337 #endif |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 | 378 |
378 // Returns the ToolbarView. | 379 // Returns the ToolbarView. |
379 virtual ToolbarView* GetToolbarView() const = 0; | 380 virtual ToolbarView* GetToolbarView() const = 0; |
380 #endif | 381 #endif |
381 | 382 |
382 protected: | 383 protected: |
383 virtual ~BrowserWindowTesting() {} | 384 virtual ~BrowserWindowTesting() {} |
384 }; | 385 }; |
385 | 386 |
386 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 387 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |