| 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_INSTANT_INSTANT_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_INSTANT_INSTANT_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_INSTANT_INSTANT_DELEGATE_H_ | 6 #define CHROME_BROWSER_INSTANT_INSTANT_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/string16.h" | 9 #include "base/string16.h" |
| 10 #include "chrome/common/instant_types.h" | 10 #include "chrome/common/instant_types.h" |
| 11 | 11 |
| 12 class TabContentsWrapper; | 12 class TabContents; |
| 13 typedef TabContents TabContentsWrapper; |
| 13 | 14 |
| 14 namespace gfx { | 15 namespace gfx { |
| 15 class Rect; | 16 class Rect; |
| 16 } | 17 } |
| 17 | 18 |
| 18 // InstantController's delegate. Normally the Browser implements this. See | 19 // InstantController's delegate. Normally the Browser implements this. See |
| 19 // InstantController for details. | 20 // InstantController for details. |
| 20 class InstantDelegate { | 21 class InstantDelegate { |
| 21 public: | 22 public: |
| 22 // Invoked when the instant TabContentsWrapper should be shown. | 23 // Invoked when the instant TabContentsWrapper should be shown. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 41 virtual void InstantPreviewFocused() = 0; | 42 virtual void InstantPreviewFocused() = 0; |
| 42 | 43 |
| 43 // Returns the tab contents over which the instant preview is overlaid. | 44 // Returns the tab contents over which the instant preview is overlaid. |
| 44 virtual TabContentsWrapper* GetInstantHostTabContents() const = 0; | 45 virtual TabContentsWrapper* GetInstantHostTabContents() const = 0; |
| 45 | 46 |
| 46 protected: | 47 protected: |
| 47 virtual ~InstantDelegate() {} | 48 virtual ~InstantDelegate() {} |
| 48 }; | 49 }; |
| 49 | 50 |
| 50 #endif // CHROME_BROWSER_INSTANT_INSTANT_DELEGATE_H_ | 51 #endif // CHROME_BROWSER_INSTANT_INSTANT_DELEGATE_H_ |
| OLD | NEW |