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

Side by Side Diff: views/view_win.cc

Issue 3056045: Improvements to accessibility extension api support for "views":... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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
« no previous file with comments | « views/view_gtk.cc ('k') | views/views.gyp » ('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) 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 "views/view.h" 5 #include "views/view.h"
6 6
7 #include "app/drag_drop_types.h" 7 #include "app/drag_drop_types.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "gfx/canvas.h" 9 #include "gfx/canvas.h"
10 #include "gfx/path.h" 10 #include "gfx/path.h"
(...skipping 13 matching lines...) Expand all
24 } 24 }
25 25
26 // static 26 // static
27 int View::GetMenuShowDelay() { 27 int View::GetMenuShowDelay() {
28 static DWORD delay = 0; 28 static DWORD delay = 0;
29 if (!delay && !SystemParametersInfo(SPI_GETMENUSHOWDELAY, 0, &delay, 0)) 29 if (!delay && !SystemParametersInfo(SPI_GETMENUSHOWDELAY, 0, &delay, 0))
30 delay = View::kShowFolderDropMenuDelay; 30 delay = View::kShowFolderDropMenuDelay;
31 return delay; 31 return delay;
32 } 32 }
33 33
34 void View::NotifyAccessibilityEvent(AccessibilityTypes::Event event_type) {
35 NotifyAccessibilityEvent(event_type, true);
36 }
37
38 void View::NotifyAccessibilityEvent(AccessibilityTypes::Event event_type, 34 void View::NotifyAccessibilityEvent(AccessibilityTypes::Event event_type,
39 bool send_native_event) { 35 bool send_native_event) {
40 // Send the notification to the delegate. 36 // Send the notification to the delegate.
41 if (ViewsDelegate::views_delegate) 37 if (ViewsDelegate::views_delegate)
42 ViewsDelegate::views_delegate->NotifyAccessibilityEvent(this, event_type); 38 ViewsDelegate::views_delegate->NotifyAccessibilityEvent(this, event_type);
43 39
44 // Now call the Windows-specific method to notify MSAA clients of this 40 // Now call the Windows-specific method to notify MSAA clients of this
45 // event. The widget gives us a temporary unique child ID to associate 41 // event. The widget gives us a temporary unique child ID to associate
46 // with this view so that clients can call get_accChild in ViewAccessibility 42 // with this view so that clients can call get_accChild in ViewAccessibility
47 // to retrieve the IAccessible associated with this view. 43 // to retrieve the IAccessible associated with this view.
(...skipping 20 matching lines...) Expand all
68 } 64 }
69 65
70 int View::GetVerticalDragThreshold() { 66 int View::GetVerticalDragThreshold() {
71 static int threshold = -1; 67 static int threshold = -1;
72 if (threshold == -1) 68 if (threshold == -1)
73 threshold = GetSystemMetrics(SM_CYDRAG) / 2; 69 threshold = GetSystemMetrics(SM_CYDRAG) / 2;
74 return threshold; 70 return threshold;
75 } 71 }
76 72
77 } // namespace views 73 } // namespace views
OLDNEW
« no previous file with comments | « views/view_gtk.cc ('k') | views/views.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698