| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #ifndef VIEWS_WIDGET_WIDGET_WIN_H_ | 5 #ifndef VIEWS_WIDGET_WIDGET_WIN_H_ |
| 6 #define VIEWS_WIDGET_WIDGET_WIN_H_ | 6 #define VIEWS_WIDGET_WIDGET_WIN_H_ |
| 7 | 7 |
| 8 #include <atlbase.h> | 8 #include <atlbase.h> |
| 9 #include <atlapp.h> | 9 #include <atlapp.h> |
| 10 #include <atlcrack.h> | 10 #include <atlcrack.h> |
| 11 #include <atlmisc.h> | 11 #include <atlmisc.h> |
| 12 | 12 |
| 13 #include "app/win/window_impl.h" |
| 13 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
| 14 #include "base/scoped_comptr_win.h" | 15 #include "base/scoped_comptr_win.h" |
| 15 #include "base/system_monitor.h" | 16 #include "base/system_monitor.h" |
| 16 #include "base/window_impl.h" | |
| 17 #include "views/focus/focus_manager.h" | 17 #include "views/focus/focus_manager.h" |
| 18 #include "views/layout_manager.h" | 18 #include "views/layout_manager.h" |
| 19 #include "views/widget/widget.h" | 19 #include "views/widget/widget.h" |
| 20 | 20 |
| 21 namespace gfx { | 21 namespace gfx { |
| 22 class Canvas; | 22 class Canvas; |
| 23 class Rect; | 23 class Rect; |
| 24 } | 24 } |
| 25 | 25 |
| 26 namespace views { | 26 namespace views { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // A Widget for a views hierarchy used to represent anything that can be | 59 // A Widget for a views hierarchy used to represent anything that can be |
| 60 // contained within an HWND, e.g. a control, a window, etc. Specializations | 60 // contained within an HWND, e.g. a control, a window, etc. Specializations |
| 61 // suitable for specific tasks, e.g. top level window, are derived from this. | 61 // suitable for specific tasks, e.g. top level window, are derived from this. |
| 62 // | 62 // |
| 63 // This Widget contains a RootView which owns the hierarchy of views within it. | 63 // This Widget contains a RootView which owns the hierarchy of views within it. |
| 64 // As long as views are part of this tree, they will be deleted automatically | 64 // As long as views are part of this tree, they will be deleted automatically |
| 65 // when the RootView is destroyed. If you remove a view from the tree, you are | 65 // when the RootView is destroyed. If you remove a view from the tree, you are |
| 66 // then responsible for cleaning up after it. | 66 // then responsible for cleaning up after it. |
| 67 // | 67 // |
| 68 /////////////////////////////////////////////////////////////////////////////// | 68 /////////////////////////////////////////////////////////////////////////////// |
| 69 class WidgetWin : public base::WindowImpl, | 69 class WidgetWin : public app::WindowImpl, |
| 70 public Widget, | 70 public Widget, |
| 71 public MessageLoopForUI::Observer, | 71 public MessageLoopForUI::Observer, |
| 72 public FocusTraversable, | 72 public FocusTraversable, |
| 73 public AcceleratorTarget { | 73 public AcceleratorTarget { |
| 74 public: | 74 public: |
| 75 WidgetWin(); | 75 WidgetWin(); |
| 76 virtual ~WidgetWin(); | 76 virtual ~WidgetWin(); |
| 77 | 77 |
| 78 // Returns the RootView associated with the specified HWND (if any). | 78 // Returns the RootView associated with the specified HWND (if any). |
| 79 static RootView* FindRootView(HWND hwnd); | 79 static RootView* FindRootView(HWND hwnd); |
| (...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 | 535 |
| 536 // Instance of accessibility information and handling for MSAA root | 536 // Instance of accessibility information and handling for MSAA root |
| 537 ScopedComPtr<IAccessible> accessibility_root_; | 537 ScopedComPtr<IAccessible> accessibility_root_; |
| 538 | 538 |
| 539 scoped_ptr<DefaultThemeProvider> default_theme_provider_; | 539 scoped_ptr<DefaultThemeProvider> default_theme_provider_; |
| 540 }; | 540 }; |
| 541 | 541 |
| 542 } // namespace views | 542 } // namespace views |
| 543 | 543 |
| 544 #endif // VIEWS_WIDGET_WIDGET_WIN_H_ | 544 #endif // VIEWS_WIDGET_WIDGET_WIN_H_ |
| OLD | NEW |