OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/widget/widget_win.h" | 5 #include "views/widget/widget_win.h" |
6 | 6 |
7 #include "app/gfx/chrome_canvas.h" | 7 #include "app/gfx/chrome_canvas.h" |
8 #include "app/win_util.h" | 8 #include "app/win_util.h" |
9 #include "base/gfx/native_theme.h" | 9 #include "base/gfx/native_theme.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 return static_cast<LRESULT>(0L); | 549 return static_cast<LRESULT>(0L); |
550 } | 550 } |
551 | 551 |
552 // All is well, assign the temp instance to the class smart pointer | 552 // All is well, assign the temp instance to the class smart pointer |
553 accessibility_root_.Attach(accessibility_instance.Detach()); | 553 accessibility_root_.Attach(accessibility_instance.Detach()); |
554 | 554 |
555 if (!accessibility_root_) { | 555 if (!accessibility_root_) { |
556 // Return with failure. | 556 // Return with failure. |
557 return static_cast<LRESULT>(0L); | 557 return static_cast<LRESULT>(0L); |
558 } | 558 } |
559 | |
560 // Notify that an instance of IAccessible was allocated for m_hWnd | |
561 ::NotifyWinEvent(EVENT_OBJECT_CREATE, GetNativeView(), OBJID_CLIENT, | |
562 CHILDID_SELF); | |
563 } | 559 } |
564 | 560 |
565 // Create a reference to ViewAccessibility that MSAA will marshall | 561 // Create a reference to ViewAccessibility that MSAA will marshall |
566 // to the client. | 562 // to the client. |
567 reference_result = LresultFromObject(IID_IAccessible, w_param, | 563 reference_result = LresultFromObject(IID_IAccessible, w_param, |
568 static_cast<IAccessible*>(accessibility_root_)); | 564 static_cast<IAccessible*>(accessibility_root_)); |
569 } | 565 } |
570 return reference_result; | 566 return reference_result; |
571 } | 567 } |
572 | 568 |
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1036 result = DefWindowProc(window, message, w_param, l_param); | 1032 result = DefWindowProc(window, message, w_param, l_param); |
1037 if (message == WM_NCDESTROY) { | 1033 if (message == WM_NCDESTROY) { |
1038 TRACK_HWND_DESTRUCTION(window); | 1034 TRACK_HWND_DESTRUCTION(window); |
1039 widget->hwnd_ = NULL; | 1035 widget->hwnd_ = NULL; |
1040 widget->OnFinalMessage(window); | 1036 widget->OnFinalMessage(window); |
1041 } | 1037 } |
1042 return result; | 1038 return result; |
1043 } | 1039 } |
1044 | 1040 |
1045 } // namespace views | 1041 } // namespace views |
OLD | NEW |