| 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_WIDGET_H_ | 5 #ifndef UI_VIEWS_WIDGET_WIDGET_H_ |
| 6 #define VIEWS_WIDGET_WIDGET_H_ | 6 #define UI_VIEWS_WIDGET_WIDGET_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <stack> | 10 #include <stack> |
| 11 | 11 |
| 12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
| 15 #include "ui/base/accessibility/accessibility_types.h" | 15 #include "ui/base/accessibility/accessibility_types.h" |
| 16 #include "ui/base/ui_base_types.h" | 16 #include "ui/base/ui_base_types.h" |
| 17 #include "ui/gfx/native_widget_types.h" | 17 #include "ui/gfx/native_widget_types.h" |
| 18 #include "ui/gfx/rect.h" | 18 #include "ui/gfx/rect.h" |
| 19 #include "ui/views/focus/focus_manager.h" | 19 #include "ui/views/focus/focus_manager.h" |
| 20 #include "ui/views/widget/native_widget_delegate.h" |
| 20 #include "ui/views/window/client_view.h" | 21 #include "ui/views/window/client_view.h" |
| 21 #include "ui/views/window/non_client_view.h" | 22 #include "ui/views/window/non_client_view.h" |
| 22 #include "views/widget/native_widget_delegate.h" | |
| 23 | 23 |
| 24 #if defined(OS_WIN) | 24 #if defined(OS_WIN) |
| 25 // Windows headers define macros for these function names which screw with us. | 25 // Windows headers define macros for these function names which screw with us. |
| 26 #if defined(IsMaximized) | 26 #if defined(IsMaximized) |
| 27 #undef IsMaximized | 27 #undef IsMaximized |
| 28 #endif | 28 #endif |
| 29 #if defined(IsMinimized) | 29 #if defined(IsMinimized) |
| 30 #undef IsMinimized | 30 #undef IsMinimized |
| 31 #endif | 31 #endif |
| 32 #if defined(CreateWindow) | 32 #if defined(CreateWindow) |
| (...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 736 // deliver them. Displaying a window may result in the system generating | 736 // deliver them. Displaying a window may result in the system generating |
| 737 // duplicate move events even though the mouse hasn't moved. | 737 // duplicate move events even though the mouse hasn't moved. |
| 738 bool last_mouse_event_was_move_; | 738 bool last_mouse_event_was_move_; |
| 739 gfx::Point last_mouse_event_position_; | 739 gfx::Point last_mouse_event_position_; |
| 740 | 740 |
| 741 DISALLOW_COPY_AND_ASSIGN(Widget); | 741 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 742 }; | 742 }; |
| 743 | 743 |
| 744 } // namespace views | 744 } // namespace views |
| 745 | 745 |
| 746 #endif // VIEWS_WIDGET_WIDGET_H_ | 746 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |