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

Side by Side Diff: chrome/browser/tab_contents/tab_contents_delegate.h

Issue 3312017: Plumbs through window.chrome.setSuggestResult. (Closed)
Patch Set: more comments Created 10 years, 3 months 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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 // Notifies the delegate that something has changed about what content the 283 // Notifies the delegate that something has changed about what content the
284 // TabContents is displaying. Currently this is only fired when displaying 284 // TabContents is displaying. Currently this is only fired when displaying
285 // PDF using the internal PDF plugin. 285 // PDF using the internal PDF plugin.
286 virtual void ContentTypeChanged(TabContents* source); 286 virtual void ContentTypeChanged(TabContents* source);
287 287
288 // Sent when the user does a gesture that results in committing the match 288 // Sent when the user does a gesture that results in committing the match
289 // preview. The delegate should replace |source| with the |source|'s match 289 // preview. The delegate should replace |source| with the |source|'s match
290 // preview TabContents. 290 // preview TabContents.
291 virtual void CommitMatchPreview(TabContents* source); 291 virtual void CommitMatchPreview(TabContents* source);
292 292
293 // Notifies the delegate that the page has a suggest result.
294 virtual void OnSetSuggestResult(int32 page_id, const std::string& result);
295
293 protected: 296 protected:
294 virtual ~TabContentsDelegate(); 297 virtual ~TabContentsDelegate();
295 }; 298 };
296 299
297 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 300 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698