| 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_UI_BROWSER_INSTANT_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 // Returns the InstantController or NULL if there is no InstantController for | 47 // Returns the InstantController or NULL if there is no InstantController for |
| 48 // this BrowserInstantController. | 48 // this BrowserInstantController. |
| 49 InstantController* instant() const { return instant_.get(); } | 49 InstantController* instant() const { return instant_.get(); } |
| 50 | 50 |
| 51 private: | 51 private: |
| 52 // Overridden from InstantControllerDelegate: | 52 // Overridden from InstantControllerDelegate: |
| 53 virtual void ShowInstant() OVERRIDE; | 53 virtual void ShowInstant() OVERRIDE; |
| 54 virtual void HideInstant() OVERRIDE; | 54 virtual void HideInstant() OVERRIDE; |
| 55 virtual void CommitInstant(TabContents* preview) OVERRIDE; | 55 virtual void CommitInstant(TabContents* preview) OVERRIDE; |
| 56 virtual void SetInstantPreviewHeight(int height, |
| 57 InstantSizeUnits units) OVERRIDE; |
| 56 virtual void SetSuggestedText(const string16& text, | 58 virtual void SetSuggestedText(const string16& text, |
| 57 InstantCompleteBehavior behavior) OVERRIDE; | 59 InstantCompleteBehavior behavior) OVERRIDE; |
| 58 virtual gfx::Rect GetInstantBounds() OVERRIDE; | 60 virtual gfx::Rect GetInstantBounds() OVERRIDE; |
| 59 virtual void InstantPreviewFocused() OVERRIDE; | 61 virtual void InstantPreviewFocused() OVERRIDE; |
| 60 virtual TabContents* GetActiveTabContents() const OVERRIDE; | 62 virtual TabContents* GetActiveTabContents() const OVERRIDE; |
| 61 | 63 |
| 62 // Overridden from content::NotificationObserver: | 64 // Overridden from content::NotificationObserver: |
| 63 virtual void Observe(int type, | 65 virtual void Observe(int type, |
| 64 const content::NotificationSource& source, | 66 const content::NotificationSource& source, |
| 65 const content::NotificationDetails& details) OVERRIDE; | 67 const content::NotificationDetails& details) OVERRIDE; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 77 scoped_ptr<InstantUnloadHandler> instant_unload_handler_; | 79 scoped_ptr<InstantUnloadHandler> instant_unload_handler_; |
| 78 | 80 |
| 79 PrefChangeRegistrar profile_pref_registrar_; | 81 PrefChangeRegistrar profile_pref_registrar_; |
| 80 | 82 |
| 81 DISALLOW_COPY_AND_ASSIGN(BrowserInstantController); | 83 DISALLOW_COPY_AND_ASSIGN(BrowserInstantController); |
| 82 }; | 84 }; |
| 83 | 85 |
| 84 } // namespace chrome | 86 } // namespace chrome |
| 85 | 87 |
| 86 #endif // CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_ | 88 #endif // CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_ |
| OLD | NEW |