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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_mac.mm

Issue 23651003: Use Blink accessibility enums in Chromium (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 3 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) 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/browser/renderer_host/render_widget_host_view_mac.h" 5 #include "content/browser/renderer_host/render_widget_host_view_mac.h"
6 6
7 #import <objc/runtime.h> 7 #import <objc/runtime.h>
8 #include <QuartzCore/QuartzCore.h> 8 #include <QuartzCore/QuartzCore.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 1840 matching lines...) Expand 10 before | Expand all | Expand 10 after
1851 helper.ShowDefinitionForSelection(); 1851 helper.ShowDefinitionForSelection();
1852 } 1852 }
1853 1853
1854 void RenderWidgetHostViewMac::SetBackground(const SkBitmap& background) { 1854 void RenderWidgetHostViewMac::SetBackground(const SkBitmap& background) {
1855 RenderWidgetHostViewBase::SetBackground(background); 1855 RenderWidgetHostViewBase::SetBackground(background);
1856 if (render_widget_host_) 1856 if (render_widget_host_)
1857 render_widget_host_->Send(new ViewMsg_SetBackground( 1857 render_widget_host_->Send(new ViewMsg_SetBackground(
1858 render_widget_host_->GetRoutingID(), background)); 1858 render_widget_host_->GetRoutingID(), background));
1859 } 1859 }
1860 1860
1861 void RenderWidgetHostViewMac::OnAccessibilityNotifications( 1861 void RenderWidgetHostViewMac::OnAccessibilityEvents(
1862 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { 1862 const std::vector<AccessibilityHostMsg_EventParams>& params) {
1863 if (!GetBrowserAccessibilityManager()) { 1863 if (!GetBrowserAccessibilityManager()) {
1864 SetBrowserAccessibilityManager( 1864 SetBrowserAccessibilityManager(
1865 new BrowserAccessibilityManagerMac( 1865 new BrowserAccessibilityManagerMac(
1866 cocoa_view_, 1866 cocoa_view_,
1867 BrowserAccessibilityManagerMac::GetEmptyDocument(), 1867 BrowserAccessibilityManagerMac::GetEmptyDocument(),
1868 NULL)); 1868 NULL));
1869 } 1869 }
1870 GetBrowserAccessibilityManager()->OnAccessibilityNotifications(params); 1870 GetBrowserAccessibilityManager()->OnAccessibilityEvents(params);
1871 } 1871 }
1872 1872
1873 void RenderWidgetHostViewMac::SetTextInputActive(bool active) { 1873 void RenderWidgetHostViewMac::SetTextInputActive(bool active) {
1874 if (active) { 1874 if (active) {
1875 if (text_input_type_ == ui::TEXT_INPUT_TYPE_PASSWORD) 1875 if (text_input_type_ == ui::TEXT_INPUT_TYPE_PASSWORD)
1876 EnablePasswordInput(); 1876 EnablePasswordInput();
1877 else 1877 else
1878 DisablePasswordInput(); 1878 DisablePasswordInput();
1879 } else { 1879 } else {
1880 if (text_input_type_ == ui::TEXT_INPUT_TYPE_PASSWORD) 1880 if (text_input_type_ == ui::TEXT_INPUT_TYPE_PASSWORD)
(...skipping 1965 matching lines...) Expand 10 before | Expand all | Expand 10 after
3846 return YES; 3846 return YES;
3847 } 3847 }
3848 3848
3849 - (BOOL)isOpaque { 3849 - (BOOL)isOpaque {
3850 if (renderWidgetHostView_->use_core_animation_) 3850 if (renderWidgetHostView_->use_core_animation_)
3851 return YES; 3851 return YES;
3852 return [super isOpaque]; 3852 return [super isOpaque];
3853 } 3853 }
3854 3854
3855 @end 3855 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698