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

Side by Side Diff: content/browser/renderer_host/legacy_render_widget_host_win.cc

Issue 273423004: Migrate accessibility from RenderView to RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 5 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) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 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/legacy_render_widget_host_win.h" 5 #include "content/browser/renderer_host/legacy_render_widget_host_win.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/win/windows_version.h" 9 #include "base/win/windows_version.h"
10 #include "content/browser/accessibility/browser_accessibility_manager_win.h" 10 #include "content/browser/accessibility/browser_accessibility_manager_win.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 ::EnableWindow(hwnd(), FALSE); 63 ::EnableWindow(hwnd(), FALSE);
64 } else { 64 } else {
65 ::EnableWindow(hwnd(), TRUE); 65 ::EnableWindow(hwnd(), TRUE);
66 } 66 }
67 } 67 }
68 68
69 HWND LegacyRenderWidgetHostHWND::GetParent() { 69 HWND LegacyRenderWidgetHostHWND::GetParent() {
70 return ::GetParent(hwnd()); 70 return ::GetParent(hwnd());
71 } 71 }
72 72
73 void LegacyRenderWidgetHostHWND::OnManagerDeleted() { 73 void LegacyRenderWidgetHostHWND::OnManagerDeleted(
74 manager_ = NULL; 74 content::BrowserAccessibilityManagerWin* manager) {
75 if (manager_ == manager)
David Tseng 2014/07/14 19:08:02 Ok; I see why you needed manager to be passed in h
dmazzoni 2014/07/15 07:55:04 Yeah, it used to - and then LRWHW ended up being u
76 manager_ = NULL;
75 } 77 }
76 78
77 void LegacyRenderWidgetHostHWND::Show() { 79 void LegacyRenderWidgetHostHWND::Show() {
78 ::ShowWindow(hwnd(), SW_SHOW); 80 ::ShowWindow(hwnd(), SW_SHOW);
79 } 81 }
80 82
81 void LegacyRenderWidgetHostHWND::Hide() { 83 void LegacyRenderWidgetHostHWND::Hide() {
82 ::ShowWindow(hwnd(), SW_HIDE); 84 ::ShowWindow(hwnd(), SW_HIDE);
83 } 85 }
84 86
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 // generate the legacy WM_VSCROLL/WM_HSCROLL messages. 367 // generate the legacy WM_VSCROLL/WM_HSCROLL messages.
366 // We add these styles to ensure that trackpad/trackpoint scrolling 368 // We add these styles to ensure that trackpad/trackpoint scrolling
367 // work. 369 // work.
368 long current_style = ::GetWindowLong(hwnd(), GWL_STYLE); 370 long current_style = ::GetWindowLong(hwnd(), GWL_STYLE);
369 ::SetWindowLong(hwnd(), GWL_STYLE, 371 ::SetWindowLong(hwnd(), GWL_STYLE,
370 current_style | WS_VSCROLL | WS_HSCROLL); 372 current_style | WS_VSCROLL | WS_HSCROLL);
371 return 0; 373 return 0;
372 } 374 }
373 375
374 } // namespace content 376 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698