| 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_LOADER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_INSTANT_INSTANT_LOADER_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_INSTANT_INSTANT_LOADER_DELEGATE_H_ | 6 #define CHROME_BROWSER_INSTANT_INSTANT_LOADER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "chrome/common/instant_types.h" | 10 #include "chrome/common/instant_types.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 const std::vector<InstantSuggestion>& suggestions) = 0; | 21 const std::vector<InstantSuggestion>& suggestions) = 0; |
| 22 | 22 |
| 23 // Commit the preview. | 23 // Commit the preview. |
| 24 virtual void CommitInstantLoader(InstantLoader* loader) = 0; | 24 virtual void CommitInstantLoader(InstantLoader* loader) = 0; |
| 25 | 25 |
| 26 // Resize the preview. | 26 // Resize the preview. |
| 27 virtual void SetInstantPreviewHeight(InstantLoader* loader, | 27 virtual void SetInstantPreviewHeight(InstantLoader* loader, |
| 28 int height, | 28 int height, |
| 29 InstantSizeUnits units) = 0; | 29 InstantSizeUnits units) = 0; |
| 30 | 30 |
| 31 // Indicates whether the search provider would like to show a custom logo on |
| 32 // the NTP. |
| 33 virtual void SetHasCustomLogo(InstantLoader* loader, bool has_logo) = 0; |
| 34 |
| 31 // Notification that the first page load (of the Instant URL) completed. | 35 // Notification that the first page load (of the Instant URL) completed. |
| 32 virtual void InstantLoaderPreviewLoaded(InstantLoader* loader) = 0; | 36 virtual void InstantLoaderPreviewLoaded(InstantLoader* loader) = 0; |
| 33 | 37 |
| 34 // Notification when the loader has determined whether or not the page | 38 // Notification when the loader has determined whether or not the page |
| 35 // supports the Instant API. | 39 // supports the Instant API. |
| 36 virtual void InstantSupportDetermined(InstantLoader* loader, | 40 virtual void InstantSupportDetermined(InstantLoader* loader, |
| 37 bool supports_instant) = 0; | 41 bool supports_instant) = 0; |
| 38 | 42 |
| 39 // Notification that the loader swapped a different TabContents into the | 43 // Notification that the loader swapped a different TabContents into the |
| 40 // preview, usually because a prerendered page was navigated to. | 44 // preview, usually because a prerendered page was navigated to. |
| 41 virtual void SwappedTabContents(InstantLoader* loader) = 0; | 45 virtual void SwappedTabContents(InstantLoader* loader) = 0; |
| 42 | 46 |
| 43 // Notification that the preview gained focus, usually due to the user | 47 // Notification that the preview gained focus, usually due to the user |
| 44 // clicking on it. | 48 // clicking on it. |
| 45 virtual void InstantLoaderContentsFocused(InstantLoader* loader) = 0; | 49 virtual void InstantLoaderContentsFocused(InstantLoader* loader) = 0; |
| 46 | 50 |
| 47 protected: | 51 protected: |
| 48 virtual ~InstantLoaderDelegate() {} | 52 virtual ~InstantLoaderDelegate() {} |
| 49 }; | 53 }; |
| 50 | 54 |
| 51 #endif // CHROME_BROWSER_INSTANT_INSTANT_LOADER_DELEGATE_H_ | 55 #endif // CHROME_BROWSER_INSTANT_INSTANT_LOADER_DELEGATE_H_ |
| OLD | NEW |