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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 12335101: Move some accessibility methods, enums and interfaces into the content/public API. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove #include which crept back in" Created 7 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
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/renderer/render_view_impl_params.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" 42 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h"
43 #include "content/common/java_bridge_messages.h" 43 #include "content/common/java_bridge_messages.h"
44 #include "content/common/pepper_messages.h" 44 #include "content/common/pepper_messages.h"
45 #include "content/common/pepper_plugin_registry.h" 45 #include "content/common/pepper_plugin_registry.h"
46 #include "content/common/quota_dispatcher.h" 46 #include "content/common/quota_dispatcher.h"
47 #include "content/common/request_extra_data.h" 47 #include "content/common/request_extra_data.h"
48 #include "content/common/socket_stream_handle_data.h" 48 #include "content/common/socket_stream_handle_data.h"
49 #include "content/common/ssl_status_serialization.h" 49 #include "content/common/ssl_status_serialization.h"
50 #include "content/common/view_messages.h" 50 #include "content/common/view_messages.h"
51 #include "content/common/webmessageportchannel_impl.h" 51 #include "content/common/webmessageportchannel_impl.h"
52 #include "content/public/common/accessibility_mode.h"
52 #include "content/public/common/bindings_policy.h" 53 #include "content/public/common/bindings_policy.h"
53 #include "content/public/common/content_client.h" 54 #include "content/public/common/content_client.h"
54 #include "content/public/common/content_constants.h" 55 #include "content/public/common/content_constants.h"
55 #include "content/public/common/content_switches.h" 56 #include "content/public/common/content_switches.h"
56 #include "content/public/common/context_menu_params.h" 57 #include "content/public/common/context_menu_params.h"
57 #include "content/public/common/file_chooser_params.h" 58 #include "content/public/common/file_chooser_params.h"
58 #include "content/public/common/ssl_status.h" 59 #include "content/public/common/ssl_status.h"
59 #include "content/public/common/three_d_api_types.h" 60 #include "content/public/common/three_d_api_types.h"
60 #include "content/public/common/url_constants.h" 61 #include "content/public/common/url_constants.h"
61 #include "content/public/renderer/content_renderer_client.h" 62 #include "content/public/renderer/content_renderer_client.h"
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 ALLOW_THIS_IN_INITIALIZER_LIST(cookie_jar_(this)), 630 ALLOW_THIS_IN_INITIALIZER_LIST(cookie_jar_(this)),
630 notification_provider_(NULL), 631 notification_provider_(NULL),
631 geolocation_dispatcher_(NULL), 632 geolocation_dispatcher_(NULL),
632 input_tag_speech_dispatcher_(NULL), 633 input_tag_speech_dispatcher_(NULL),
633 speech_recognition_dispatcher_(NULL), 634 speech_recognition_dispatcher_(NULL),
634 device_orientation_dispatcher_(NULL), 635 device_orientation_dispatcher_(NULL),
635 media_stream_dispatcher_(NULL), 636 media_stream_dispatcher_(NULL),
636 browser_plugin_manager_(NULL), 637 browser_plugin_manager_(NULL),
637 media_stream_impl_(NULL), 638 media_stream_impl_(NULL),
638 devtools_agent_(NULL), 639 devtools_agent_(NULL),
639 accessibility_mode_(AccessibilityModeOff), 640 accessibility_mode_(ACCESSIBILITY_MODE_OFF),
640 renderer_accessibility_(NULL), 641 renderer_accessibility_(NULL),
641 java_bridge_dispatcher_(NULL), 642 java_bridge_dispatcher_(NULL),
642 mouse_lock_dispatcher_(NULL), 643 mouse_lock_dispatcher_(NULL),
643 favicon_helper_(NULL), 644 favicon_helper_(NULL),
644 #if defined(OS_ANDROID) 645 #if defined(OS_ANDROID)
645 body_background_color_(SK_ColorWHITE), 646 body_background_color_(SK_ColorWHITE),
646 update_frame_info_scheduled_(false), 647 update_frame_info_scheduled_(false),
647 expected_content_intent_id_(0), 648 expected_content_intent_id_(0),
648 media_player_proxy_(NULL), 649 media_player_proxy_(NULL),
649 synchronous_find_active_match_ordinal_(-1), 650 synchronous_find_active_match_ordinal_(-1),
(...skipping 5183 matching lines...) Expand 10 before | Expand all | Expand 10 after
5833 } 5834 }
5834 5835
5835 void RenderViewImpl::OnSetAccessibilityMode(AccessibilityMode new_mode) { 5836 void RenderViewImpl::OnSetAccessibilityMode(AccessibilityMode new_mode) {
5836 if (accessibility_mode_ == new_mode) 5837 if (accessibility_mode_ == new_mode)
5837 return; 5838 return;
5838 accessibility_mode_ = new_mode; 5839 accessibility_mode_ = new_mode;
5839 if (renderer_accessibility_) { 5840 if (renderer_accessibility_) {
5840 delete renderer_accessibility_; 5841 delete renderer_accessibility_;
5841 renderer_accessibility_ = NULL; 5842 renderer_accessibility_ = NULL;
5842 } 5843 }
5843 if (accessibility_mode_ == AccessibilityModeComplete) 5844 if (accessibility_mode_ == ACCESSIBILITY_MODE_COMPLETE)
5844 renderer_accessibility_ = new RendererAccessibilityComplete(this); 5845 renderer_accessibility_ = new RendererAccessibilityComplete(this);
5845 else if (accessibility_mode_ == AccessibilityModeEditableTextOnly) 5846 else if (accessibility_mode_ == ACCESSIBILITY_MODE_EDITABLE_TEXT_ONLY)
5846 renderer_accessibility_ = new RendererAccessibilityFocusOnly(this); 5847 renderer_accessibility_ = new RendererAccessibilityFocusOnly(this);
5847 } 5848 }
5848 5849
5849 void RenderViewImpl::OnSetActive(bool active) { 5850 void RenderViewImpl::OnSetActive(bool active) {
5850 if (webview()) 5851 if (webview())
5851 webview()->setIsActive(active); 5852 webview()->setIsActive(active);
5852 5853
5853 #if defined(OS_MACOSX) 5854 #if defined(OS_MACOSX)
5854 std::set<WebPluginDelegateProxy*>::iterator plugin_it; 5855 std::set<WebPluginDelegateProxy*>::iterator plugin_it;
5855 for (plugin_it = plugin_delegates_.begin(); 5856 for (plugin_it = plugin_delegates_.begin();
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after
6728 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); 6729 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle);
6729 RenderProcess::current()->ReleaseTransportDIB(dib); 6730 RenderProcess::current()->ReleaseTransportDIB(dib);
6730 } 6731 }
6731 6732
6732 void RenderViewImpl::DidCommitCompositorFrame() { 6733 void RenderViewImpl::DidCommitCompositorFrame() {
6733 RenderWidget::DidCommitCompositorFrame(); 6734 RenderWidget::DidCommitCompositorFrame();
6734 FOR_EACH_OBSERVER(RenderViewObserver, observers_, DidCommitCompositorFrame()); 6735 FOR_EACH_OBSERVER(RenderViewObserver, observers_, DidCommitCompositorFrame());
6735 } 6736 }
6736 6737
6737 } // namespace content 6738 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/renderer/render_view_impl_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698