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

Side by Side Diff: chrome/browser/renderer_host/render_view_host_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_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 const string16& contents, 274 const string16& contents,
275 const std::string& language, 275 const std::string& language,
276 bool page_translatable) = 0; 276 bool page_translatable) = 0;
277 277
278 // Notification that the page has been translated. 278 // Notification that the page has been translated.
279 virtual void OnPageTranslated(int32 page_id, 279 virtual void OnPageTranslated(int32 page_id,
280 const std::string& original_lang, 280 const std::string& original_lang,
281 const std::string& translated_lang, 281 const std::string& translated_lang,
282 TranslateErrors::Type error_type) = 0; 282 TranslateErrors::Type error_type) = 0;
283 283
284 // Notification that the page has a suggest result.
285 virtual void OnSetSuggestResult(int32 page_id,
286 const std::string& result) = 0;
287
284 protected: 288 protected:
285 virtual ~BrowserIntegration() {} 289 virtual ~BrowserIntegration() {}
286 }; 290 };
287 291
288 // Resource ------------------------------------------------------------------ 292 // Resource ------------------------------------------------------------------
289 // Notifications of resource loading events. 293 // Notifications of resource loading events.
290 294
291 class Resource { 295 class Resource {
292 public: 296 public:
293 // The RenderView is starting a provisional load. 297 // The RenderView is starting a provisional load.
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 virtual void FocusedNodeChanged() {} 822 virtual void FocusedNodeChanged() {}
819 823
820 // The content being displayed is a PDF. 824 // The content being displayed is a PDF.
821 virtual void SetDisplayingPDFContent() {} 825 virtual void SetDisplayingPDFContent() {}
822 826
823 protected: 827 protected:
824 virtual ~RenderViewHostDelegate() {} 828 virtual ~RenderViewHostDelegate() {}
825 }; 829 };
826 830
827 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 831 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698