| 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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 | 385 |
| 386 // Tells the renderer whether it should allow window.close. This is initially | 386 // Tells the renderer whether it should allow window.close. This is initially |
| 387 // set to false when creating a renderer-initiated window via window.open. | 387 // set to false when creating a renderer-initiated window via window.open. |
| 388 void AllowScriptToClose(bool visible); | 388 void AllowScriptToClose(bool visible); |
| 389 | 389 |
| 390 // Called by the AutoFillManager when the list of suggestions is ready. | 390 // Called by the AutoFillManager when the list of suggestions is ready. |
| 391 void AutoFillSuggestionsReturned( | 391 void AutoFillSuggestionsReturned( |
| 392 int query_id, | 392 int query_id, |
| 393 const std::vector<string16>& values, | 393 const std::vector<string16>& values, |
| 394 const std::vector<string16>& labels, | 394 const std::vector<string16>& labels, |
| 395 const std::vector<string16>& icons, |
| 395 const std::vector<int>& unique_ids); | 396 const std::vector<int>& unique_ids); |
| 396 | 397 |
| 397 // Called by the AutocompleteHistoryManager when the list of suggestions is | 398 // Called by the AutocompleteHistoryManager when the list of suggestions is |
| 398 // ready. | 399 // ready. |
| 399 void AutocompleteSuggestionsReturned( | 400 void AutocompleteSuggestionsReturned( |
| 400 int query_id, | 401 int query_id, |
| 401 const std::vector<string16>& suggestions); | 402 const std::vector<string16>& suggestions); |
| 402 | 403 |
| 403 // Called by the AutoFillManager when the FormData has been filled out. | 404 // Called by the AutoFillManager when the FormData has been filled out. |
| 404 void AutoFillFormDataFilled(int query_id, const webkit_glue::FormData& form); | 405 void AutoFillFormDataFilled(int query_id, const webkit_glue::FormData& form); |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 721 | 722 |
| 722 // Whether this render view will be used for extensions. This controls | 723 // Whether this render view will be used for extensions. This controls |
| 723 // what process type we use. | 724 // what process type we use. |
| 724 bool is_extension_process_; | 725 bool is_extension_process_; |
| 725 | 726 |
| 726 // AutoFill and Autocomplete suggestions. We accumulate these separately and | 727 // AutoFill and Autocomplete suggestions. We accumulate these separately and |
| 727 // send them back to the renderer together. | 728 // send them back to the renderer together. |
| 728 int autofill_query_id_; | 729 int autofill_query_id_; |
| 729 std::vector<string16> autofill_values_; | 730 std::vector<string16> autofill_values_; |
| 730 std::vector<string16> autofill_labels_; | 731 std::vector<string16> autofill_labels_; |
| 732 std::vector<string16> autofill_icons_; |
| 731 std::vector<int> autofill_unique_ids_; | 733 std::vector<int> autofill_unique_ids_; |
| 732 | 734 |
| 733 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 735 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 734 }; | 736 }; |
| 735 | 737 |
| 736 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 738 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |