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

Side by Side Diff: chrome/browser/renderer_host/render_view_host.cc

Issue 3173040: Revert 57188 - Add html node info (tag name, attributes, and computed display... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 4 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) 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 #include "chrome/browser/renderer_host/render_view_host.h" 5 #include "chrome/browser/renderer_host/render_view_host.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 #include "third_party/skia/include/core/SkBitmap.h" 45 #include "third_party/skia/include/core/SkBitmap.h"
46 #include "third_party/WebKit/WebKit/chromium/public/WebFindOptions.h" 46 #include "third_party/WebKit/WebKit/chromium/public/WebFindOptions.h"
47 #include "webkit/glue/context_menu.h" 47 #include "webkit/glue/context_menu.h"
48 #include "webkit/glue/dom_operations.h" 48 #include "webkit/glue/dom_operations.h"
49 #include "webkit/glue/form_data.h" 49 #include "webkit/glue/form_data.h"
50 #include "webkit/glue/form_field.h" 50 #include "webkit/glue/form_field.h"
51 #include "webkit/glue/password_form_dom_manager.h" 51 #include "webkit/glue/password_form_dom_manager.h"
52 #include "webkit/glue/webaccessibility.h" 52 #include "webkit/glue/webaccessibility.h"
53 #include "webkit/glue/webdropdata.h" 53 #include "webkit/glue/webdropdata.h"
54 54
55 #if defined(OS_WIN)
56 // TODO(port): accessibility not yet implemented. See http://crbug.com/8288.
57 #include "chrome/browser/browser_accessibility_manager_win.h"
58 #endif
59
55 using base::TimeDelta; 60 using base::TimeDelta;
56 using webkit_glue::FormData; 61 using webkit_glue::FormData;
57 using webkit_glue::PasswordForm; 62 using webkit_glue::PasswordForm;
58 using webkit_glue::PasswordFormDomManager; 63 using webkit_glue::PasswordFormDomManager;
59 using webkit_glue::PasswordFormFillData; 64 using webkit_glue::PasswordFormFillData;
60 using webkit_glue::WebApplicationInfo; 65 using webkit_glue::WebApplicationInfo;
61 using WebKit::WebConsoleMessage; 66 using WebKit::WebConsoleMessage;
62 using WebKit::WebDragOperation; 67 using WebKit::WebDragOperation;
63 using WebKit::WebDragOperationNone; 68 using WebKit::WebDragOperationNone;
64 using WebKit::WebDragOperationsMask; 69 using WebKit::WebDragOperationsMask;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 navigations_suspended_(false), 127 navigations_suspended_(false),
123 suspended_nav_message_(NULL), 128 suspended_nav_message_(NULL),
124 run_modal_reply_msg_(NULL), 129 run_modal_reply_msg_(NULL),
125 is_waiting_for_beforeunload_ack_(false), 130 is_waiting_for_beforeunload_ack_(false),
126 is_waiting_for_unload_ack_(false), 131 is_waiting_for_unload_ack_(false),
127 unload_ack_is_for_cross_site_transition_(false), 132 unload_ack_is_for_cross_site_transition_(false),
128 are_javascript_messages_suppressed_(false), 133 are_javascript_messages_suppressed_(false),
129 sudden_termination_allowed_(false), 134 sudden_termination_allowed_(false),
130 session_storage_namespace_id_(session_storage_namespace_id), 135 session_storage_namespace_id_(session_storage_namespace_id),
131 is_extension_process_(false), 136 is_extension_process_(false),
132 autofill_query_id_(0), 137 autofill_query_id_(0) {
133 save_accessibility_tree_for_testing_(false) {
134 DCHECK(instance_); 138 DCHECK(instance_);
135 DCHECK(delegate_); 139 DCHECK(delegate_);
136 } 140 }
137 141
138 RenderViewHost::~RenderViewHost() { 142 RenderViewHost::~RenderViewHost() {
139 delegate()->RenderViewDeleted(this); 143 delegate()->RenderViewDeleted(this);
140 144
141 // Be sure to clean up any leftover state from cross-site requests. 145 // Be sure to clean up any leftover state from cross-site requests.
142 Singleton<CrossSiteRequestManager>()->SetHasPendingCrossSiteRequest( 146 Singleton<CrossSiteRequestManager>()->SetHasPendingCrossSiteRequest(
143 process()->id(), routing_id(), false); 147 process()->id(), routing_id(), false);
(...skipping 1815 matching lines...) Expand 10 before | Expand all | Expand 10 after
1959 1963
1960 void RenderViewHost::OnAccessibilityObjectStateChange(int acc_obj_id) { 1964 void RenderViewHost::OnAccessibilityObjectStateChange(int acc_obj_id) {
1961 view()->OnAccessibilityObjectStateChange(acc_obj_id); 1965 view()->OnAccessibilityObjectStateChange(acc_obj_id);
1962 } 1966 }
1963 1967
1964 void RenderViewHost::OnAccessibilityTree( 1968 void RenderViewHost::OnAccessibilityTree(
1965 const webkit_glue::WebAccessibility& tree) { 1969 const webkit_glue::WebAccessibility& tree) {
1966 if (view()) 1970 if (view())
1967 view()->UpdateAccessibilityTree(tree); 1971 view()->UpdateAccessibilityTree(tree);
1968 1972
1969 if (save_accessibility_tree_for_testing_)
1970 accessibility_tree_ = tree;
1971
1972 NotificationService::current()->Notify( 1973 NotificationService::current()->Notify(
1973 NotificationType::RENDER_VIEW_HOST_ACCESSIBILITY_TREE_UPDATED, 1974 NotificationType::RENDER_VIEW_HOST_ACCESSIBILITY_TREE_UPDATED,
1974 Source<RenderViewHost>(this), 1975 Source<RenderViewHost>(this),
1975 NotificationService::NoDetails()); 1976 NotificationService::NoDetails());
1976 } 1977 }
1977 1978
1978 void RenderViewHost::OnCSSInserted() { 1979 void RenderViewHost::OnCSSInserted() {
1979 delegate_->DidInsertCSS(); 1980 delegate_->DidInsertCSS();
1980 } 1981 }
1981 1982
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
2029 RenderViewHostDelegate::ContentSettings* content_settings_delegate = 2030 RenderViewHostDelegate::ContentSettings* content_settings_delegate =
2030 delegate_->GetContentSettingsDelegate(); 2031 delegate_->GetContentSettingsDelegate();
2031 if (content_settings_delegate) 2032 if (content_settings_delegate)
2032 content_settings_delegate->OnWebDatabaseAccessed( 2033 content_settings_delegate->OnWebDatabaseAccessed(
2033 url, name, display_name, estimated_size, blocked_by_policy); 2034 url, name, display_name, estimated_size, blocked_by_policy);
2034 } 2035 }
2035 2036
2036 void RenderViewHost::OnSetDisplayingPDFContent() { 2037 void RenderViewHost::OnSetDisplayingPDFContent() {
2037 delegate_->SetDisplayingPDFContent(); 2038 delegate_->SetDisplayingPDFContent();
2038 } 2039 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698