Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: chrome/renderer/render_view.h

Issue 46013: Removes all use of COM and dependencies on Windows-specific classes (includin... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 <vector> 9 #include <vector>
10 10
(...skipping 14 matching lines...) Expand all
25 #include "chrome/renderer/extensions/extension_bindings.h" 25 #include "chrome/renderer/extensions/extension_bindings.h"
26 #include "chrome/renderer/external_js_object.h" 26 #include "chrome/renderer/external_js_object.h"
27 #include "chrome/renderer/render_widget.h" 27 #include "chrome/renderer/render_widget.h"
28 #include "media/audio/audio_output.h" 28 #include "media/audio/audio_output.h"
29 #include "testing/gtest/include/gtest/gtest_prod.h" 29 #include "testing/gtest/include/gtest/gtest_prod.h"
30 #include "webkit/glue/console_message_level.h" 30 #include "webkit/glue/console_message_level.h"
31 #include "webkit/glue/dom_serializer_delegate.h" 31 #include "webkit/glue/dom_serializer_delegate.h"
32 #include "webkit/glue/feed.h" 32 #include "webkit/glue/feed.h"
33 #include "webkit/glue/form_data.h" 33 #include "webkit/glue/form_data.h"
34 #include "webkit/glue/password_form_dom_manager.h" 34 #include "webkit/glue/password_form_dom_manager.h"
35 #include "webkit/glue/webaccessibilitymanager.h"
35 #include "webkit/glue/webview_delegate.h" 36 #include "webkit/glue/webview_delegate.h"
36 #include "webkit/glue/webview.h" 37 #include "webkit/glue/webview.h"
37 38
38 #if defined(OS_WIN) 39 #if defined(OS_WIN)
39 // RenderView is a diamond-shaped hierarchy, with WebWidgetDelegate at the root. 40 // RenderView is a diamond-shaped hierarchy, with WebWidgetDelegate at the root.
40 // VS warns when we inherit the WebWidgetDelegate method implementations from 41 // VS warns when we inherit the WebWidgetDelegate method implementations from
41 // RenderWidget. It's safe to ignore that warning. 42 // RenderWidget. It's safe to ignore that warning.
42 #pragma warning(disable: 4250) 43 #pragma warning(disable: 4250)
43 #endif 44 #endif
44 45
45 class AudioRendererImpl; 46 class AudioRendererImpl;
46 class DictionaryValue; 47 class DictionaryValue;
47 class DebugMessageHandler; 48 class DebugMessageHandler;
48 class DevToolsAgent; 49 class DevToolsAgent;
49 class DevToolsClient; 50 class DevToolsClient;
50 class FilePath; 51 class FilePath;
51 class GlueAccessibility;
52 class GURL; 52 class GURL;
53 class RenderThread; 53 class RenderThread;
54 class ResourceDispatcher; 54 class ResourceDispatcher;
55 class SkBitmap; 55 class SkBitmap;
56 class WebAccessibilityManager;
56 class WebError; 57 class WebError;
57 class WebFrame; 58 class WebFrame;
58 class WebPluginDelegate; 59 class WebPluginDelegate;
59 class WebPluginDelegateProxy; 60 class WebPluginDelegateProxy;
60 class WebDevToolsAgentDelegate; 61 class WebDevToolsAgentDelegate;
61 struct AccessibilityInParams;
62 struct AccessibilityOutParams;
63 struct FindInPageRequest; 62 struct FindInPageRequest;
64 struct ThumbnailScore; 63 struct ThumbnailScore;
65 struct ViewMsg_Navigate_Params; 64 struct ViewMsg_Navigate_Params;
66 struct ViewMsg_PrintPage_Params; 65 struct ViewMsg_PrintPage_Params;
67 struct ViewMsg_PrintPages_Params; 66 struct ViewMsg_PrintPages_Params;
68 struct ViewMsg_Print_Params; 67 struct ViewMsg_Print_Params;
69 struct ViewMsg_UploadFile_Params; 68 struct ViewMsg_UploadFile_Params;
70 69
71 namespace base { 70 namespace base {
72 class WaitableEvent; 71 class WaitableEvent;
73 } 72 }
74 73
75 namespace webkit_glue { 74 namespace webkit_glue {
76 struct FileUploadData; 75 struct FileUploadData;
76 //class WebAccessibility;
77 //struct InParams;
78 //struct OutParams;
77 } 79 }
78 80
79 // We need to prevent a page from trying to create infinite popups. It is not 81 // We need to prevent a page from trying to create infinite popups. It is not
80 // as simple as keeping a count of the number of immediate children 82 // as simple as keeping a count of the number of immediate children
81 // popups. Having an html file that window.open()s itself would create 83 // popups. Having an html file that window.open()s itself would create
82 // an unlimited chain of RenderViews who only have one RenderView child. 84 // an unlimited chain of RenderViews who only have one RenderView child.
83 // 85 //
84 // Therefore, each new top level RenderView creates a new counter and shares it 86 // Therefore, each new top level RenderView creates a new counter and shares it
85 // with all its children and grandchildren popup RenderViews created with 87 // with all its children and grandchildren popup RenderViews created with
86 // CreateWebView() to have a sort of global limit for the page so no more than 88 // CreateWebView() to have a sort of global limit for the page so no more than
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 void OnReservePageIDRange(int size_of_range); 512 void OnReservePageIDRange(int size_of_range);
511 513
512 void OnDragSourceEndedOrMoved( 514 void OnDragSourceEndedOrMoved(
513 int client_x, int client_y, int screen_x, int screen_y, bool ended); 515 int client_x, int client_y, int screen_x, int screen_y, bool ended);
514 void OnDragSourceSystemDragEnded(); 516 void OnDragSourceSystemDragEnded();
515 void OnInstallMissingPlugin(); 517 void OnInstallMissingPlugin();
516 void OnFileChooserResponse(const std::vector<std::wstring>& file_names); 518 void OnFileChooserResponse(const std::vector<std::wstring>& file_names);
517 void OnEnableViewSourceMode(); 519 void OnEnableViewSourceMode();
518 void OnUpdateBackForwardListCount(int back_list_count, 520 void OnUpdateBackForwardListCount(int back_list_count,
519 int forward_list_count); 521 int forward_list_count);
520 void OnGetAccessibilityInfo(const AccessibilityInParams& in_params, 522 void OnGetAccessibilityInfo(
521 AccessibilityOutParams* out_params); 523 const webkit_glue::WebAccessibility::InParams& in_params,
522 void OnClearAccessibilityInfo(int iaccessible_id, bool clear_all); 524 webkit_glue::WebAccessibility::OutParams* out_params);
525 void OnClearAccessibilityInfo(int acc_obj_id, bool clear_all);
523 526
524 void OnMoveOrResizeStarted(); 527 void OnMoveOrResizeStarted();
525 528
526 // Checks if the RenderView should close, runs the beforeunload handler and 529 // Checks if the RenderView should close, runs the beforeunload handler and
527 // sends ViewMsg_ShouldClose to the browser. 530 // sends ViewMsg_ShouldClose to the browser.
528 void OnMsgShouldClose(); 531 void OnMsgShouldClose();
529 532
530 // Runs the onunload handler and closes the page, replying with ClosePage_ACK 533 // Runs the onunload handler and closes the page, replying with ClosePage_ACK
531 // (with the given RPH and request IDs, to help track the request). 534 // (with the given RPH and request IDs, to help track the request).
532 void OnClosePage(int new_render_process_host_id, int new_request_id); 535 void OnClosePage(int new_render_process_host_id, int new_request_id);
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 // The total number of unrequested popups that exist and can be followed back 752 // The total number of unrequested popups that exist and can be followed back
750 // to a common opener. This count is shared among all RenderViews created 753 // to a common opener. This count is shared among all RenderViews created
751 // with CreateWebView(). All popups are treated as unrequested until 754 // with CreateWebView(). All popups are treated as unrequested until
752 // specifically instructed otherwise by the Browser process. 755 // specifically instructed otherwise by the Browser process.
753 scoped_refptr<SharedRenderViewCounter> shared_popup_counter_; 756 scoped_refptr<SharedRenderViewCounter> shared_popup_counter_;
754 757
755 // Whether this is a top level window (instead of a popup). Top level windows 758 // Whether this is a top level window (instead of a popup). Top level windows
756 // shouldn't count against their own |shared_popup_counter_|. 759 // shouldn't count against their own |shared_popup_counter_|.
757 bool decrement_shared_popup_at_destruction_; 760 bool decrement_shared_popup_at_destruction_;
758 761
759 // TODO(port): revisit once qwe have accessibility 762 // TODO(port): revisit once we have accessibility
760 #if defined(OS_WIN) 763 #if defined(OS_WIN)
761 // Handles accessibility requests into the renderer side, as well as 764 // Handles accessibility requests into the renderer side, as well as
762 // maintains the cache and other features of the accessibility tree. 765 // maintains the cache and other features of the accessibility tree.
763 scoped_ptr<GlueAccessibility> glue_accessibility_; 766 scoped_ptr<webkit_glue::WebAccessibilityManager> web_accessibility_manager_;
764 #endif 767 #endif
765 768
766 // Resource message queue. Used to queue up resource IPCs if we need 769 // Resource message queue. Used to queue up resource IPCs if we need
767 // to wait for an ACK from the browser before proceeding. 770 // to wait for an ACK from the browser before proceeding.
768 std::queue<IPC::Message*> queued_resource_messages_; 771 std::queue<IPC::Message*> queued_resource_messages_;
769 772
770 // The id of the last request sent for form field autofill. Used to ignore 773 // The id of the last request sent for form field autofill. Used to ignore
771 // out of date responses. 774 // out of date responses.
772 int form_field_autofill_request_id_; 775 int form_field_autofill_request_id_;
773 776
(...skipping 17 matching lines...) Expand all
791 // change but is overridden by tests. 794 // change but is overridden by tests.
792 int delay_seconds_for_form_state_sync_; 795 int delay_seconds_for_form_state_sync_;
793 796
794 // A set of audio renderers registered to use IPC for audio output. 797 // A set of audio renderers registered to use IPC for audio output.
795 IDMap<AudioRendererImpl> audio_renderers_; 798 IDMap<AudioRendererImpl> audio_renderers_;
796 799
797 DISALLOW_COPY_AND_ASSIGN(RenderView); 800 DISALLOW_COPY_AND_ASSIGN(RenderView);
798 }; 801 };
799 802
800 #endif // CHROME_RENDERER_RENDER_VIEW_H_ 803 #endif // CHROME_RENDERER_RENDER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698