| 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 #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 "base/message_loop.h" | 13 #include "base/message_loop.h" |
| 14 #include "base/system_monitor.h" | 14 #include "base/system_monitor.h" |
| 15 #include "views/focus/focus_manager.h" | 15 #include "views/focus/focus_manager.h" |
| 16 #include "views/layout_manager.h" | 16 #include "views/layout_manager.h" |
| 17 #include "views/widget/widget.h" | 17 #include "views/widget/widget.h" |
| 18 | 18 |
| 19 class ChromeCanvas; | |
| 20 | |
| 21 namespace gfx { | 19 namespace gfx { |
| 20 class Canvas; |
| 22 class Rect; | 21 class Rect; |
| 23 } | 22 } |
| 24 | 23 |
| 25 namespace views { | 24 namespace views { |
| 26 | 25 |
| 27 class RootView; | 26 class RootView; |
| 28 class TooltipManager; | 27 class TooltipManager; |
| 29 class DefaultThemeProvider; | 28 class DefaultThemeProvider; |
| 30 class Window; | 29 class Window; |
| 31 | 30 |
| (...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 // must likely want to set this to false, or after changing the alpha toggle | 600 // must likely want to set this to false, or after changing the alpha toggle |
| 602 // the extended style bit to false than back to true. See MSDN for more | 601 // the extended style bit to false than back to true. See MSDN for more |
| 603 // details. | 602 // details. |
| 604 bool use_layered_buffer_; | 603 bool use_layered_buffer_; |
| 605 | 604 |
| 606 // The default alpha to be applied to the layered window. | 605 // The default alpha to be applied to the layered window. |
| 607 BYTE layered_alpha_; | 606 BYTE layered_alpha_; |
| 608 | 607 |
| 609 // A canvas that contains the window contents in the case of a layered | 608 // A canvas that contains the window contents in the case of a layered |
| 610 // window. | 609 // window. |
| 611 scoped_ptr<ChromeCanvas> contents_; | 610 scoped_ptr<gfx::Canvas> contents_; |
| 612 | 611 |
| 613 // Whether or not the window should delete itself when it is destroyed. | 612 // Whether or not the window should delete itself when it is destroyed. |
| 614 // Set this to false via its setter for stack allocated instances. | 613 // Set this to false via its setter for stack allocated instances. |
| 615 bool delete_on_destroy_; | 614 bool delete_on_destroy_; |
| 616 | 615 |
| 617 // True if we are allowed to update the layered window from the DIB backing | 616 // True if we are allowed to update the layered window from the DIB backing |
| 618 // store if necessary. | 617 // store if necessary. |
| 619 bool can_update_layered_window_; | 618 bool can_update_layered_window_; |
| 620 | 619 |
| 621 // The following are used to detect duplicate mouse move events and not | 620 // The following are used to detect duplicate mouse move events and not |
| (...skipping 12 matching lines...) Expand all Loading... |
| 634 | 633 |
| 635 scoped_ptr<DefaultThemeProvider> default_theme_provider_; | 634 scoped_ptr<DefaultThemeProvider> default_theme_provider_; |
| 636 | 635 |
| 637 // Our hwnd. | 636 // Our hwnd. |
| 638 HWND hwnd_; | 637 HWND hwnd_; |
| 639 }; | 638 }; |
| 640 | 639 |
| 641 } // namespace views | 640 } // namespace views |
| 642 | 641 |
| 643 #endif // #ifndef VIEWS_WIDGET_WIDGET_WIN_H_ | 642 #endif // #ifndef VIEWS_WIDGET_WIDGET_WIN_H_ |
| OLD | NEW |