OLD | NEW |
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_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 | 434 |
435 // Sends the response to an extension api call. | 435 // Sends the response to an extension api call. |
436 void SendExtensionResponse(int request_id, bool success, | 436 void SendExtensionResponse(int request_id, bool success, |
437 const std::string& response, | 437 const std::string& response, |
438 const std::string& error); | 438 const std::string& error); |
439 | 439 |
440 // Sends a response to an extension api call that it was blocked for lack of | 440 // Sends a response to an extension api call that it was blocked for lack of |
441 // permission. | 441 // permission. |
442 void BlockExtensionRequest(int request_id); | 442 void BlockExtensionRequest(int request_id); |
443 | 443 |
444 // Notifies the renderer that its view type has changed. | |
445 void ViewTypeChanged(ViewType::Type type); | |
446 | |
447 // Tells the renderer which browser window it is being attached to. | 444 // Tells the renderer which browser window it is being attached to. |
448 void UpdateBrowserWindowId(int window_id); | 445 void UpdateBrowserWindowId(int window_id); |
449 | 446 |
450 // Tells the render view that a custom context action has been selected. | 447 // Tells the render view that a custom context action has been selected. |
451 void PerformCustomContextMenuAction(unsigned action); | 448 void PerformCustomContextMenuAction(unsigned action); |
452 | 449 |
453 // Tells the renderer to translate the current page from one language to | 450 // Tells the renderer to translate the current page from one language to |
454 // another. If the current page id is not |page_id|, the request is ignored. | 451 // another. If the current page id is not |page_id|, the request is ignored. |
455 // |translate_script| is the script that should be injected in the page to | 452 // |translate_script| is the script that should be injected in the page to |
456 // perform the translation. | 453 // perform the translation. |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
736 int autofill_query_id_; | 733 int autofill_query_id_; |
737 std::vector<string16> autofill_values_; | 734 std::vector<string16> autofill_values_; |
738 std::vector<string16> autofill_labels_; | 735 std::vector<string16> autofill_labels_; |
739 std::vector<string16> autofill_icons_; | 736 std::vector<string16> autofill_icons_; |
740 std::vector<int> autofill_unique_ids_; | 737 std::vector<int> autofill_unique_ids_; |
741 | 738 |
742 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 739 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
743 }; | 740 }; |
744 | 741 |
745 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 742 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
OLD | NEW |