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

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

Issue 407493002: Revert of Migrate accessibility from RenderView to RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 content::BrowserAccessibilityManagerWin* manager) { 74 manager_ = NULL;
75 if (manager_ == manager)
76 manager_ = NULL;
77 } 75 }
78 76
79 void LegacyRenderWidgetHostHWND::Show() { 77 void LegacyRenderWidgetHostHWND::Show() {
80 ::ShowWindow(hwnd(), SW_SHOW); 78 ::ShowWindow(hwnd(), SW_SHOW);
81 } 79 }
82 80
83 void LegacyRenderWidgetHostHWND::Hide() { 81 void LegacyRenderWidgetHostHWND::Hide() {
84 ::ShowWindow(hwnd(), SW_HIDE); 82 ::ShowWindow(hwnd(), SW_HIDE);
85 } 83 }
86 84
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 // generate the legacy WM_VSCROLL/WM_HSCROLL messages. 365 // generate the legacy WM_VSCROLL/WM_HSCROLL messages.
368 // We add these styles to ensure that trackpad/trackpoint scrolling 366 // We add these styles to ensure that trackpad/trackpoint scrolling
369 // work. 367 // work.
370 long current_style = ::GetWindowLong(hwnd(), GWL_STYLE); 368 long current_style = ::GetWindowLong(hwnd(), GWL_STYLE);
371 ::SetWindowLong(hwnd(), GWL_STYLE, 369 ::SetWindowLong(hwnd(), GWL_STYLE,
372 current_style | WS_VSCROLL | WS_HSCROLL); 370 current_style | WS_VSCROLL | WS_HSCROLL);
373 return 0; 371 return 0;
374 } 372 }
375 373
376 } // namespace content 374 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698