| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_H_ | 5 #ifndef CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_ |
| 6 #define CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_ | 6 #define CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 virtual void SetSuggestions( | 110 virtual void SetSuggestions( |
| 111 const std::vector<InstantSuggestion>& suggestions) OVERRIDE; | 111 const std::vector<InstantSuggestion>& suggestions) OVERRIDE; |
| 112 virtual void InstantSupportDetermined(bool supports_instant) OVERRIDE; | 112 virtual void InstantSupportDetermined(bool supports_instant) OVERRIDE; |
| 113 virtual void ShowInstantPreview(InstantShownReason reason, | 113 virtual void ShowInstantPreview(InstantShownReason reason, |
| 114 int height, | 114 int height, |
| 115 InstantSizeUnits units) OVERRIDE; | 115 InstantSizeUnits units) OVERRIDE; |
| 116 virtual void StartCapturingKeyStrokes() OVERRIDE; | 116 virtual void StartCapturingKeyStrokes() OVERRIDE; |
| 117 virtual void StopCapturingKeyStrokes() OVERRIDE; | 117 virtual void StopCapturingKeyStrokes() OVERRIDE; |
| 118 virtual void RenderViewGone() OVERRIDE; | 118 virtual void RenderViewGone() OVERRIDE; |
| 119 virtual void AboutToNavigateMainFrame(const GURL& url) OVERRIDE; | 119 virtual void AboutToNavigateMainFrame(const GURL& url) OVERRIDE; |
| 120 virtual void NavigateToURL(const GURL& url, |
| 121 content::PageTransition transition) OVERRIDE; |
| 120 | 122 |
| 121 // Overridden from content::NotificationObserver: | 123 // Overridden from content::NotificationObserver: |
| 122 virtual void Observe(int type, | 124 virtual void Observe(int type, |
| 123 const content::NotificationSource& source, | 125 const content::NotificationSource& source, |
| 124 const content::NotificationDetails& details) OVERRIDE; | 126 const content::NotificationDetails& details) OVERRIDE; |
| 125 | 127 |
| 126 void SetupPreviewContents(); | 128 void SetupPreviewContents(); |
| 127 void CleanupPreviewContents(); | 129 void CleanupPreviewContents(); |
| 128 void ReplacePreviewContents(content::WebContents* old_contents, | 130 void ReplacePreviewContents(content::WebContents* old_contents, |
| 129 content::WebContents* new_contents); | 131 content::WebContents* new_contents); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 141 bool is_pointer_down_from_activate_; | 143 bool is_pointer_down_from_activate_; |
| 142 history::HistoryAddPageArgs last_navigation_; | 144 history::HistoryAddPageArgs last_navigation_; |
| 143 | 145 |
| 144 // Used to get notifications about renderers coming and going. | 146 // Used to get notifications about renderers coming and going. |
| 145 content::NotificationRegistrar registrar_; | 147 content::NotificationRegistrar registrar_; |
| 146 | 148 |
| 147 DISALLOW_COPY_AND_ASSIGN(InstantLoader); | 149 DISALLOW_COPY_AND_ASSIGN(InstantLoader); |
| 148 }; | 150 }; |
| 149 | 151 |
| 150 #endif // CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_ | 152 #endif // CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_ |
| OLD | NEW |