OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_ |
6 #define CHROME_RENDERER_RENDER_VIEW_H_ | 6 #define CHROME_RENDERER_RENDER_VIEW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <queue> | 9 #include <queue> |
10 #include <vector> | 10 #include <vector> |
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
614 WebFrame* GetChildFrame(const std::wstring& frame_xpath) const; | 614 WebFrame* GetChildFrame(const std::wstring& frame_xpath) const; |
615 | 615 |
616 std::string GetAltHTMLForTemplate(const DictionaryValue& error_strings, | 616 std::string GetAltHTMLForTemplate(const DictionaryValue& error_strings, |
617 int template_resource_id) const; | 617 int template_resource_id) const; |
618 | 618 |
619 virtual void DidAddHistoryItem(); | 619 virtual void DidAddHistoryItem(); |
620 | 620 |
621 // Decodes a data: URL image or returns an empty image in case of failure. | 621 // Decodes a data: URL image or returns an empty image in case of failure. |
622 SkBitmap ImageFromDataUrl(const GURL&) const; | 622 SkBitmap ImageFromDataUrl(const GURL&) const; |
623 | 623 |
624 // A helper method used by WasOpenedByUserGesture. | |
625 bool WasOpenedByUserGestureHelper() const; | |
626 | |
627 void DumpLoadHistograms() const; | 624 void DumpLoadHistograms() const; |
628 | 625 |
629 // Bitwise-ORed set of extra bindings that have been enabled. See | 626 // Bitwise-ORed set of extra bindings that have been enabled. See |
630 // BindingsPolicy for details. | 627 // BindingsPolicy for details. |
631 int enabled_bindings_; | 628 int enabled_bindings_; |
632 | 629 |
633 // DOM Automation Controller CppBoundClass. | 630 // DOM Automation Controller CppBoundClass. |
634 DomAutomationController dom_automation_controller_; | 631 DomAutomationController dom_automation_controller_; |
635 | 632 |
636 // Chrome page<->browser messaging CppBoundClass. | 633 // Chrome page<->browser messaging CppBoundClass. |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
736 | 733 |
737 // DevToolsClient for renderer hosting developer tools UI. It's NULL for other | 734 // DevToolsClient for renderer hosting developer tools UI. It's NULL for other |
738 // render views. | 735 // render views. |
739 scoped_ptr<DevToolsClient> devtools_client_; | 736 scoped_ptr<DevToolsClient> devtools_client_; |
740 | 737 |
741 scoped_ptr<WebFileChooserCallback> file_chooser_; | 738 scoped_ptr<WebFileChooserCallback> file_chooser_; |
742 | 739 |
743 int history_back_list_count_; | 740 int history_back_list_count_; |
744 int history_forward_list_count_; | 741 int history_forward_list_count_; |
745 | 742 |
746 // True if pop-up blocking is disabled. False by default. | |
747 bool disable_popup_blocking_; | |
748 | |
749 // True if the page has any frame-level unload or beforeunload listeners. | 743 // True if the page has any frame-level unload or beforeunload listeners. |
750 bool has_unload_listener_; | 744 bool has_unload_listener_; |
751 | 745 |
752 // The total number of unrequested popups that exist and can be followed back | 746 // The total number of unrequested popups that exist and can be followed back |
753 // to a common opener. This count is shared among all RenderViews created | 747 // to a common opener. This count is shared among all RenderViews created |
754 // with CreateWebView(). All popups are treated as unrequested until | 748 // with CreateWebView(). All popups are treated as unrequested until |
755 // specifically instructed otherwise by the Browser process. | 749 // specifically instructed otherwise by the Browser process. |
756 scoped_refptr<SharedRenderViewCounter> shared_popup_counter_; | 750 scoped_refptr<SharedRenderViewCounter> shared_popup_counter_; |
757 | 751 |
758 // Whether this is a top level window (instead of a popup). Top level windows | 752 // Whether this is a top level window (instead of a popup). Top level windows |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
800 scoped_refptr<AudioMessageFilter> audio_message_filter_; | 794 scoped_refptr<AudioMessageFilter> audio_message_filter_; |
801 | 795 |
802 // The currently selected text. This is currently only updated on Linux, where | 796 // The currently selected text. This is currently only updated on Linux, where |
803 // it's for the selection clipboard. | 797 // it's for the selection clipboard. |
804 std::string selection_text_; | 798 std::string selection_text_; |
805 | 799 |
806 DISALLOW_COPY_AND_ASSIGN(RenderView); | 800 DISALLOW_COPY_AND_ASSIGN(RenderView); |
807 }; | 801 }; |
808 | 802 |
809 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 803 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |