| 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 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ | 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ |
| 6 #define VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ | 6 #define VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <atlbase.h> | 9 #include <atlbase.h> |
| 10 #include <atlapp.h> | 10 #include <atlapp.h> |
| (...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 virtual void SetInitialFocus(); | 454 virtual void SetInitialFocus(); |
| 455 | 455 |
| 456 // Executes the specified SC_command. | 456 // Executes the specified SC_command. |
| 457 void ExecuteSystemMenuCommand(int command); | 457 void ExecuteSystemMenuCommand(int command); |
| 458 | 458 |
| 459 // Accessors and setters for various properties. | 459 // Accessors and setters for various properties. |
| 460 void set_focus_on_creation(bool focus_on_creation) { | 460 void set_focus_on_creation(bool focus_on_creation) { |
| 461 focus_on_creation_ = focus_on_creation; | 461 focus_on_creation_ = focus_on_creation; |
| 462 } | 462 } |
| 463 | 463 |
| 464 // The TooltipManager. | 464 // The TooltipManager. This is NULL if there is a problem creating the |
| 465 // underlying tooltip window. |
| 465 // WARNING: RootView's destructor calls into the TooltipManager. As such, this | 466 // WARNING: RootView's destructor calls into the TooltipManager. As such, this |
| 466 // must be destroyed AFTER root_view_. | 467 // must be destroyed AFTER root_view_. |
| 467 scoped_ptr<TooltipManagerWin> tooltip_manager_; | 468 scoped_ptr<TooltipManagerWin> tooltip_manager_; |
| 468 | 469 |
| 469 scoped_refptr<DropTargetWin> drop_target_; | 470 scoped_refptr<DropTargetWin> drop_target_; |
| 470 | 471 |
| 471 // Are a subclass of NativeWindowWin? | 472 // Are a subclass of NativeWindowWin? |
| 472 bool is_window_; | 473 bool is_window_; |
| 473 | 474 |
| 474 const gfx::Rect& invalid_rect() const { return invalid_rect_; } | 475 const gfx::Rect& invalid_rect() const { return invalid_rect_; } |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 // Whether all ancestors have been enabled. This is only used if is_modal_ is | 657 // Whether all ancestors have been enabled. This is only used if is_modal_ is |
| 657 // true. | 658 // true. |
| 658 bool restored_enabled_; | 659 bool restored_enabled_; |
| 659 | 660 |
| 660 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); | 661 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); |
| 661 }; | 662 }; |
| 662 | 663 |
| 663 } // namespace views | 664 } // namespace views |
| 664 | 665 |
| 665 #endif // VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ | 666 #endif // VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ |
| OLD | NEW |