| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 int enabled_bindings() const { return enabled_bindings_; } | 356 int enabled_bindings() const { return enabled_bindings_; } |
| 357 | 357 |
| 358 // See variable comment. | 358 // See variable comment. |
| 359 bool is_extension_process() const { return is_extension_process_; } | 359 bool is_extension_process() const { return is_extension_process_; } |
| 360 void set_is_extension_process(bool is_extension_process) { | 360 void set_is_extension_process(bool is_extension_process) { |
| 361 is_extension_process_ = is_extension_process; | 361 is_extension_process_ = is_extension_process; |
| 362 } | 362 } |
| 363 | 363 |
| 364 // Sets a property with the given name and value on the Web UI binding object. | 364 // Sets a property with the given name and value on the Web UI binding object. |
| 365 // Must call AllowWebUIBindings() on this renderer first. | 365 // Must call AllowWebUIBindings() on this renderer first. |
| 366 void SetDOMUIProperty(const std::string& name, const std::string& value); | 366 void SetWebUIProperty(const std::string& name, const std::string& value); |
| 367 | 367 |
| 368 // Tells the renderer view to focus the first (last if reverse is true) node. | 368 // Tells the renderer view to focus the first (last if reverse is true) node. |
| 369 void SetInitialFocus(bool reverse); | 369 void SetInitialFocus(bool reverse); |
| 370 | 370 |
| 371 // Clears the node that is currently focused (if any). | 371 // Clears the node that is currently focused (if any). |
| 372 void ClearFocusedNode(); | 372 void ClearFocusedNode(); |
| 373 | 373 |
| 374 // Tells the renderer view to scroll to the focused node. | 374 // Tells the renderer view to scroll to the focused node. |
| 375 void ScrollFocusedEditableNodeIntoView(); | 375 void ScrollFocusedEditableNodeIntoView(); |
| 376 | 376 |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 572 void OnMsgDidDownloadFavIcon(int id, | 572 void OnMsgDidDownloadFavIcon(int id, |
| 573 const GURL& image_url, | 573 const GURL& image_url, |
| 574 bool errored, | 574 bool errored, |
| 575 const SkBitmap& image_data); | 575 const SkBitmap& image_data); |
| 576 void OnMsgContextMenu(const ContextMenuParams& params); | 576 void OnMsgContextMenu(const ContextMenuParams& params); |
| 577 void OnMsgOpenURL(const GURL& url, const GURL& referrer, | 577 void OnMsgOpenURL(const GURL& url, const GURL& referrer, |
| 578 WindowOpenDisposition disposition); | 578 WindowOpenDisposition disposition); |
| 579 void OnMsgDidContentsPreferredSizeChange(const gfx::Size& new_size); | 579 void OnMsgDidContentsPreferredSizeChange(const gfx::Size& new_size); |
| 580 void OnMsgDomOperationResponse(const std::string& json_string, | 580 void OnMsgDomOperationResponse(const std::string& json_string, |
| 581 int automation_id); | 581 int automation_id); |
| 582 void OnMsgDOMUISend(const GURL& source_url, | 582 void OnMsgWebUISend(const GURL& source_url, |
| 583 const std::string& message, | 583 const std::string& message, |
| 584 const std::string& content); | 584 const std::string& content); |
| 585 void OnMsgForwardMessageToExternalHost(const std::string& message, | 585 void OnMsgForwardMessageToExternalHost(const std::string& message, |
| 586 const std::string& origin, | 586 const std::string& origin, |
| 587 const std::string& target); | 587 const std::string& target); |
| 588 void OnMsgSetTooltipText(const std::wstring& tooltip_text, | 588 void OnMsgSetTooltipText(const std::wstring& tooltip_text, |
| 589 WebKit::WebTextDirection text_direction_hint); | 589 WebKit::WebTextDirection text_direction_hint); |
| 590 void OnMsgSelectionChanged(const std::string& text); | 590 void OnMsgSelectionChanged(const std::string& text); |
| 591 void OnMsgPasteFromSelectionClipboard(); | 591 void OnMsgPasteFromSelectionClipboard(); |
| 592 void OnMsgRunJavaScriptMessage(const std::wstring& message, | 592 void OnMsgRunJavaScriptMessage(const std::wstring& message, |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 730 // The termination status of the last render view that terminated. | 730 // The termination status of the last render view that terminated. |
| 731 base::TerminationStatus render_view_termination_status_; | 731 base::TerminationStatus render_view_termination_status_; |
| 732 | 732 |
| 733 // The enabled/disabled states of various commands. | 733 // The enabled/disabled states of various commands. |
| 734 std::map<RenderViewCommand, CommandState> command_states_; | 734 std::map<RenderViewCommand, CommandState> command_states_; |
| 735 | 735 |
| 736 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 736 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 737 }; | 737 }; |
| 738 | 738 |
| 739 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 739 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |