| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "ui/views/widget/native_widget_win.h" | 5 #include "ui/views/widget/native_widget_win.h" |
| 6 | 6 |
| 7 #include "base/scoped_ptr.h" | 7 #include "base/scoped_ptr.h" |
| 8 #include "gfx/canvas_skia.h" | |
| 9 #include "gfx/path.h" | |
| 10 #include "gfx/native_theme_win.h" | |
| 11 #include "ui/base/system_monitor/system_monitor.h" | 8 #include "ui/base/system_monitor/system_monitor.h" |
| 12 #include "ui/base/view_prop.h" | 9 #include "ui/base/view_prop.h" |
| 13 #include "ui/base/win/hwnd_util.h" | 10 #include "ui/base/win/hwnd_util.h" |
| 11 #include "ui/gfx/canvas_skia.h" |
| 12 #include "ui/gfx/native_theme_win.h" |
| 13 #include "ui/gfx/path.h" |
| 14 #include "ui/views/view.h" | 14 #include "ui/views/view.h" |
| 15 #include "ui/views/widget/widget.h" | 15 #include "ui/views/widget/widget.h" |
| 16 | 16 |
| 17 namespace ui { | 17 namespace ui { |
| 18 namespace internal { | 18 namespace internal { |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 // Called from NativeWidgetWin::Paint() to asynchronously redraw child windows. | 22 // Called from NativeWidgetWin::Paint() to asynchronously redraw child windows. |
| 23 BOOL CALLBACK EnumChildProcForRedraw(HWND hwnd, LPARAM lparam) { | 23 BOOL CALLBACK EnumChildProcForRedraw(HWND hwnd, LPARAM lparam) { |
| (...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 676 if (parent_widget) { | 676 if (parent_widget) { |
| 677 widget = parent_widget; | 677 widget = parent_widget; |
| 678 parent_hwnd = ::GetAncestor(parent_hwnd, GA_PARENT); | 678 parent_hwnd = ::GetAncestor(parent_hwnd, GA_PARENT); |
| 679 } | 679 } |
| 680 } while (parent_hwnd != NULL && parent_widget != NULL); | 680 } while (parent_hwnd != NULL && parent_widget != NULL); |
| 681 | 681 |
| 682 return widget; | 682 return widget; |
| 683 } | 683 } |
| 684 | 684 |
| 685 } // namespace ui | 685 } // namespace ui |
| OLD | NEW |