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

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

Issue 3380017: Support additional webkit accessibility notifications and states. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Adding missig file. Created 10 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) 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 <QuartzCore/QuartzCore.h> 5 #include <QuartzCore/QuartzCore.h>
6 6
7 #include "chrome/browser/renderer_host/render_widget_host_view_mac.h" 7 #include "chrome/browser/renderer_host/render_widget_host_view_mac.h"
8 8
9 #include "chrome/browser/chrome_thread.h" 9 #include "chrome/browser/chrome_thread.h"
10 #include "app/surface/io_surface_support_mac.h" 10 #include "app/surface/io_surface_support_mac.h"
(...skipping 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after
1092 return false; 1092 return false;
1093 } 1093 }
1094 1094
1095 void RenderWidgetHostViewMac::UpdateAccessibilityTree( 1095 void RenderWidgetHostViewMac::UpdateAccessibilityTree(
1096 const webkit_glue::WebAccessibility& tree) { 1096 const webkit_glue::WebAccessibility& tree) {
1097 if (renderer_accessible_) { 1097 if (renderer_accessible_) {
1098 [cocoa_view_ setAccessibilityTree:tree]; 1098 [cocoa_view_ setAccessibilityTree:tree];
1099 } 1099 }
1100 } 1100 }
1101 1101
1102 void RenderWidgetHostViewMac::OnAccessibilityFocusChange(int acc_obj_id) {
1103 NOTIMPLEMENTED();
1104 }
1105
1106 void RenderWidgetHostViewMac::OnAccessibilityObjectStateChange(int acc_obj_id) {
1107 NOTIMPLEMENTED();
1108 }
1109
1110 void RenderWidgetHostViewMac::SetTextInputActive(bool active) { 1102 void RenderWidgetHostViewMac::SetTextInputActive(bool active) {
1111 if (active) { 1103 if (active) {
1112 if (text_input_type_ == WebKit::WebTextInputTypePassword) 1104 if (text_input_type_ == WebKit::WebTextInputTypePassword)
1113 EnablePasswordInput(); 1105 EnablePasswordInput();
1114 else 1106 else
1115 DisablePasswordInput(); 1107 DisablePasswordInput();
1116 } else { 1108 } else {
1117 if (text_input_type_ == WebKit::WebTextInputTypePassword) 1109 if (text_input_type_ == WebKit::WebTextInputTypePassword)
1118 DisablePasswordInput(); 1110 DisablePasswordInput();
1119 } 1111 }
(...skipping 1327 matching lines...) Expand 10 before | Expand all | Expand 10 after
2447 if (!string) return NO; 2439 if (!string) return NO;
2448 2440
2449 // If the user is currently using an IME, confirm the IME input, 2441 // If the user is currently using an IME, confirm the IME input,
2450 // and then insert the text from the service, the same as TextEdit and Safari. 2442 // and then insert the text from the service, the same as TextEdit and Safari.
2451 [self confirmComposition]; 2443 [self confirmComposition];
2452 [self insertText:string]; 2444 [self insertText:string];
2453 return YES; 2445 return YES;
2454 } 2446 }
2455 2447
2456 @end 2448 @end
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view_mac.h ('k') | chrome/browser/renderer_host/render_widget_host_view_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698