| 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 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 // Informs renderer of updated content settings. | 486 // Informs renderer of updated content settings. |
| 487 void SendContentSettings(const GURL& url, | 487 void SendContentSettings(const GURL& url, |
| 488 const ContentSettings& settings); | 488 const ContentSettings& settings); |
| 489 | 489 |
| 490 // Tells the renderer to notify us when the page contents preferred size | 490 // Tells the renderer to notify us when the page contents preferred size |
| 491 // changed. |flags| is a combination of | 491 // changed. |flags| is a combination of |
| 492 // |ViewHostMsg_EnablePreferredSizeChangedMode_Flags| values, which is defined | 492 // |ViewHostMsg_EnablePreferredSizeChangedMode_Flags| values, which is defined |
| 493 // in render_messages.h. | 493 // in render_messages.h. |
| 494 void EnablePreferredSizeChangedMode(int flags); | 494 void EnablePreferredSizeChangedMode(int flags); |
| 495 | 495 |
| 496 #if defined(OS_MACOSX) |
| 497 // Select popup menu related methods (for external popup menus). |
| 498 void DidSelectPopupMenuItem(int selected_index); |
| 499 void DidCancelPopupMenu(); |
| 500 #endif |
| 501 |
| 496 #if defined(UNIT_TEST) | 502 #if defined(UNIT_TEST) |
| 497 // These functions shouldn't be necessary outside of testing. | 503 // These functions shouldn't be necessary outside of testing. |
| 498 | 504 |
| 499 void set_save_accessibility_tree_for_testing(bool save) { | 505 void set_save_accessibility_tree_for_testing(bool save) { |
| 500 save_accessibility_tree_for_testing_ = save; | 506 save_accessibility_tree_for_testing_ = save; |
| 501 } | 507 } |
| 502 | 508 |
| 503 const webkit_glue::WebAccessibility& accessibility_tree() { | 509 const webkit_glue::WebAccessibility& accessibility_tree() { |
| 504 return accessibility_tree_; | 510 return accessibility_tree_; |
| 505 } | 511 } |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 void OnUpdateZoomLimits(int minimum_percent, | 703 void OnUpdateZoomLimits(int minimum_percent, |
| 698 int maximum_percent, | 704 int maximum_percent, |
| 699 bool remember); | 705 bool remember); |
| 700 void OnSetSuggestResult(int32 page_id, const std::string& result); | 706 void OnSetSuggestResult(int32 page_id, const std::string& result); |
| 701 void OnDetectedPhishingSite(const GURL& phishing_url, | 707 void OnDetectedPhishingSite(const GURL& phishing_url, |
| 702 double phishing_score, | 708 double phishing_score, |
| 703 const SkBitmap& thumbnail); | 709 const SkBitmap& thumbnail); |
| 704 void OnScriptEvalResponse(int id, bool result); | 710 void OnScriptEvalResponse(int id, bool result); |
| 705 void OnUpdateContentRestrictions(int restrictions); | 711 void OnUpdateContentRestrictions(int restrictions); |
| 706 | 712 |
| 713 #if defined(OS_MACOSX) |
| 714 void OnMsgShowPopup(const ViewHostMsg_ShowPopup_Params& params); |
| 715 #endif |
| 716 |
| 707 private: | 717 private: |
| 708 friend class TestRenderViewHost; | 718 friend class TestRenderViewHost; |
| 709 | 719 |
| 710 // The SiteInstance associated with this RenderViewHost. All pages drawn | 720 // The SiteInstance associated with this RenderViewHost. All pages drawn |
| 711 // in this RenderViewHost are part of this SiteInstance. Should not change | 721 // in this RenderViewHost are part of this SiteInstance. Should not change |
| 712 // over time. | 722 // over time. |
| 713 scoped_refptr<SiteInstance> instance_; | 723 scoped_refptr<SiteInstance> instance_; |
| 714 | 724 |
| 715 // Our delegate, which wants to know about changes in the RenderView. | 725 // Our delegate, which wants to know about changes in the RenderView. |
| 716 RenderViewHostDelegate* delegate_; | 726 RenderViewHostDelegate* delegate_; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 785 // Whether the accessibility tree should be saved, for unit testing. | 795 // Whether the accessibility tree should be saved, for unit testing. |
| 786 bool save_accessibility_tree_for_testing_; | 796 bool save_accessibility_tree_for_testing_; |
| 787 | 797 |
| 788 // The most recently received accessibility tree - for unit testing only. | 798 // The most recently received accessibility tree - for unit testing only. |
| 789 webkit_glue::WebAccessibility accessibility_tree_; | 799 webkit_glue::WebAccessibility accessibility_tree_; |
| 790 | 800 |
| 791 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 801 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 792 }; | 802 }; |
| 793 | 803 |
| 794 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 804 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |