Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: chrome/browser/instant/instant_loader.h

Issue 11369137: Implement {Start,Stop}CapturingKeyStrokes for Instant. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase. Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 private: 105 private:
106 class WebContentsDelegateImpl; 106 class WebContentsDelegateImpl;
107 107
108 // Overridden from InstantClient::Delegate: 108 // Overridden from InstantClient::Delegate:
109 virtual void SetSuggestions( 109 virtual void SetSuggestions(
110 const std::vector<InstantSuggestion>& suggestions) OVERRIDE; 110 const std::vector<InstantSuggestion>& suggestions) OVERRIDE;
111 virtual void InstantSupportDetermined(bool supports_instant) OVERRIDE; 111 virtual void InstantSupportDetermined(bool supports_instant) OVERRIDE;
112 virtual void ShowInstantPreview(InstantShownReason reason, 112 virtual void ShowInstantPreview(InstantShownReason reason,
113 int height, 113 int height,
114 InstantSizeUnits units) OVERRIDE; 114 InstantSizeUnits units) OVERRIDE;
115 virtual void StartCapturingKeyStrokes() OVERRIDE;
116 virtual void StopCapturingKeyStrokes() OVERRIDE;
115 117
116 // Overridden from content::NotificationObserver: 118 // Overridden from content::NotificationObserver:
117 virtual void Observe(int type, 119 virtual void Observe(int type,
118 const content::NotificationSource& source, 120 const content::NotificationSource& source,
119 const content::NotificationDetails& details) OVERRIDE; 121 const content::NotificationDetails& details) OVERRIDE;
120 122
121 void SetupPreviewContents(); 123 void SetupPreviewContents();
122 void CleanupPreviewContents(); 124 void CleanupPreviewContents();
123 void ReplacePreviewContents(content::WebContents* old_contents, 125 void ReplacePreviewContents(content::WebContents* old_contents,
124 content::WebContents* new_contents); 126 content::WebContents* new_contents);
(...skipping 11 matching lines...) Expand all
136 bool is_pointer_down_from_activate_; 138 bool is_pointer_down_from_activate_;
137 history::HistoryAddPageArgs last_navigation_; 139 history::HistoryAddPageArgs last_navigation_;
138 140
139 // Used to get notifications about renderers coming and going. 141 // Used to get notifications about renderers coming and going.
140 content::NotificationRegistrar registrar_; 142 content::NotificationRegistrar registrar_;
141 143
142 DISALLOW_COPY_AND_ASSIGN(InstantLoader); 144 DISALLOW_COPY_AND_ASSIGN(InstantLoader);
143 }; 145 };
144 146
145 #endif // CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_ 147 #endif // CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698