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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 const std::string& target); | 404 const std::string& target); |
405 | 405 |
406 // Message the renderer that we should be counted as a new document and not | 406 // Message the renderer that we should be counted as a new document and not |
407 // as a popup. | 407 // as a popup. |
408 void DisassociateFromPopupCount(); | 408 void DisassociateFromPopupCount(); |
409 | 409 |
410 // Tells the renderer whether it should allow window.close. This is initially | 410 // Tells the renderer whether it should allow window.close. This is initially |
411 // set to false when creating a renderer-initiated window via window.open. | 411 // set to false when creating a renderer-initiated window via window.open. |
412 void AllowScriptToClose(bool visible); | 412 void AllowScriptToClose(bool visible); |
413 | 413 |
| 414 // Resets the stored AutoFill state. |
| 415 void ResetAutoFillState(int query_id); |
| 416 |
414 // Called by the AutoFillManager when the list of suggestions is ready. | 417 // Called by the AutoFillManager when the list of suggestions is ready. |
415 void AutoFillSuggestionsReturned( | 418 void AutoFillSuggestionsReturned(const std::vector<string16>& values, |
416 int query_id, | 419 const std::vector<string16>& labels, |
417 const std::vector<string16>& values, | 420 const std::vector<string16>& icons, |
418 const std::vector<string16>& labels, | 421 const std::vector<int>& unique_ids); |
419 const std::vector<string16>& icons, | |
420 const std::vector<int>& unique_ids); | |
421 | 422 |
422 // Called by the AutocompleteHistoryManager when the list of suggestions is | 423 // Called by the AutocompleteHistoryManager when the list of suggestions is |
423 // ready. | 424 // ready. |
424 void AutocompleteSuggestionsReturned( | 425 void AutocompleteSuggestionsReturned( |
425 int query_id, | |
426 const std::vector<string16>& suggestions); | 426 const std::vector<string16>& suggestions); |
427 | 427 |
428 // Called by the AutoFillManager when the FormData has been filled out. | 428 // Called by the AutoFillManager when the FormData has been filled out. |
429 void AutoFillFormDataFilled(int query_id, const webkit_glue::FormData& form); | 429 void AutoFillFormDataFilled(int query_id, const webkit_glue::FormData& form); |
430 | 430 |
431 // Notifies the Renderer that a move or resize of its containing window has | 431 // Notifies the Renderer that a move or resize of its containing window has |
432 // started (this is used to hide the autocomplete popups if any). | 432 // started (this is used to hide the autocomplete popups if any). |
433 void WindowMoveOrResizeStarted(); | 433 void WindowMoveOrResizeStarted(); |
434 | 434 |
435 // RenderWidgetHost public overrides. | 435 // RenderWidgetHost public overrides. |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
795 // True if the render view can be shut down suddenly. | 795 // True if the render view can be shut down suddenly. |
796 bool sudden_termination_allowed_; | 796 bool sudden_termination_allowed_; |
797 | 797 |
798 // The session storage namespace to be used by the associated render view. | 798 // The session storage namespace to be used by the associated render view. |
799 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; | 799 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; |
800 | 800 |
801 // Whether this render view will get extension api bindings. This controls | 801 // Whether this render view will get extension api bindings. This controls |
802 // what process type we use. | 802 // what process type we use. |
803 bool is_extension_process_; | 803 bool is_extension_process_; |
804 | 804 |
| 805 // TODO(isherman): Consider splitting these off into a helper class. |
805 // AutoFill and Autocomplete suggestions. We accumulate these separately and | 806 // AutoFill and Autocomplete suggestions. We accumulate these separately and |
806 // send them back to the renderer together. | 807 // send them back to the renderer together. |
807 std::vector<string16> autofill_values_; | 808 std::vector<string16> autofill_values_; |
808 std::vector<string16> autofill_labels_; | 809 std::vector<string16> autofill_labels_; |
809 std::vector<string16> autofill_icons_; | 810 std::vector<string16> autofill_icons_; |
810 std::vector<int> autofill_unique_ids_; | 811 std::vector<int> autofill_unique_ids_; |
| 812 int autofill_query_id_; |
811 | 813 |
812 // Whether the accessibility tree should be saved, for unit testing. | 814 // Whether the accessibility tree should be saved, for unit testing. |
813 bool save_accessibility_tree_for_testing_; | 815 bool save_accessibility_tree_for_testing_; |
814 | 816 |
815 // The most recently received accessibility tree - for unit testing only. | 817 // The most recently received accessibility tree - for unit testing only. |
816 webkit_glue::WebAccessibility accessibility_tree_; | 818 webkit_glue::WebAccessibility accessibility_tree_; |
817 | 819 |
818 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 820 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
819 }; | 821 }; |
820 | 822 |
821 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 823 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
OLD | NEW |