| 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_CONTROLLER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_DELEGATE_H_ | 6 #define CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/string16.h" | 8 #include "base/string16.h" |
| 9 #include "chrome/common/instant_types.h" | 9 #include "chrome/common/instant_types.h" |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 virtual void SetSuggestedText(const string16& text, | 37 virtual void SetSuggestedText(const string16& text, |
| 38 InstantCompleteBehavior behavior) = 0; | 38 InstantCompleteBehavior behavior) = 0; |
| 39 | 39 |
| 40 // Return the bounds that the preview is placed at, in screen coordinates. | 40 // Return the bounds that the preview is placed at, in screen coordinates. |
| 41 virtual gfx::Rect GetInstantBounds() = 0; | 41 virtual gfx::Rect GetInstantBounds() = 0; |
| 42 | 42 |
| 43 // Notification that the preview gained focus, usually due to the user | 43 // Notification that the preview gained focus, usually due to the user |
| 44 // clicking on it. | 44 // clicking on it. |
| 45 virtual void InstantPreviewFocused() = 0; | 45 virtual void InstantPreviewFocused() = 0; |
| 46 | 46 |
| 47 // Resize the Instant preview to the given |height|, interpreting the height |
| 48 // to be in the given |units| (see instant_types.h for details). |
| 49 virtual void SetInstantPreviewHeight(int height, InstantSizeUnits units) = 0; |
| 50 |
| 47 // Return the currently active tab, over which any preview would be shown. | 51 // Return the currently active tab, over which any preview would be shown. |
| 48 virtual TabContents* GetActiveTabContents() const = 0; | 52 virtual TabContents* GetActiveTabContents() const = 0; |
| 49 | 53 |
| 50 protected: | 54 protected: |
| 51 virtual ~InstantControllerDelegate() {} | 55 virtual ~InstantControllerDelegate() {} |
| 52 }; | 56 }; |
| 53 | 57 |
| 54 #endif // CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_DELEGATE_H_ | 58 #endif // CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_DELEGATE_H_ |
| OLD | NEW |