| 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 VIEWS_WIDGET_WIDGET_H_ |
| 6 #define VIEWS_WIDGET_WIDGET_H_ | 6 #define VIEWS_WIDGET_WIDGET_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> |
| 9 #include <stack> | 10 #include <stack> |
| 10 | 11 |
| 11 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
| 12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
| 14 #include "ui/base/accessibility/accessibility_types.h" | 15 #include "ui/base/accessibility/accessibility_types.h" |
| 15 #include "ui/base/ui_base_types.h" | 16 #include "ui/base/ui_base_types.h" |
| 16 #include "ui/gfx/native_widget_types.h" | 17 #include "ui/gfx/native_widget_types.h" |
| 17 #include "ui/gfx/rect.h" | 18 #include "ui/gfx/rect.h" |
| 18 #include "ui/views/window/client_view.h" | 19 #include "ui/views/window/client_view.h" |
| 19 #include "ui/views/window/non_client_view.h" | 20 #include "ui/views/window/non_client_view.h" |
| 20 #include "views/focus/focus_manager.h" | 21 #include "views/focus/focus_manager.h" |
| 21 #include "views/widget/native_widget_delegate.h" | 22 #include "views/widget/native_widget_delegate.h" |
| 22 | 23 |
| 23 #if defined(OS_WIN) | 24 #if defined(OS_WIN) |
| 24 // 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. |
| 25 #if defined(IsMaximized) | 26 #if defined(IsMaximized) |
| 26 #undef IsMaximized | 27 #undef IsMaximized |
| 27 #endif | 28 #endif |
| 28 #if defined(IsMinimized) | 29 #if defined(IsMinimized) |
| 29 #undef IsMinimized | 30 #undef IsMinimized |
| 30 #endif | 31 #endif |
| 31 #if defined(CreateWindow) | 32 #if defined(CreateWindow) |
| 32 #undef CreateWindow | 33 #undef CreateWindow |
| 33 #endif | 34 #endif |
| 34 #endif | 35 #endif |
| 35 | 36 |
| 36 namespace gfx { | 37 namespace gfx { |
| 37 class Canvas; | 38 class Canvas; |
| 38 class Path; | |
| 39 class Point; | 39 class Point; |
| 40 class Rect; | 40 class Rect; |
| 41 } | 41 } |
| 42 | 42 |
| 43 namespace ui { | 43 namespace ui { |
| 44 class Accelerator; | 44 class Accelerator; |
| 45 class Compositor; | 45 class Compositor; |
| 46 class OSExchangeData; | 46 class OSExchangeData; |
| 47 class ThemeProvider; | 47 class ThemeProvider; |
| 48 enum TouchStatus; | 48 enum TouchStatus; |
| 49 } | 49 } |
| 50 using ui::ThemeProvider; | 50 using ui::ThemeProvider; |
| 51 | 51 |
| 52 namespace views { | 52 namespace views { |
| 53 | 53 |
| 54 class DefaultThemeProvider; | 54 class DefaultThemeProvider; |
| 55 class InputMethod; | 55 class InputMethod; |
| 56 class NativeWidget; | 56 class NativeWidget; |
| 57 class NonClientFrameView; | 57 class NonClientFrameView; |
| 58 class ScopedEvent; | 58 class ScopedEvent; |
| 59 class TooltipManager; | |
| 60 class View; | 59 class View; |
| 61 class WidgetDelegate; | 60 class WidgetDelegate; |
| 62 namespace internal { | 61 namespace internal { |
| 63 class NativeWidgetPrivate; | 62 class NativeWidgetPrivate; |
| 64 class RootView; | 63 class RootView; |
| 65 } | 64 } |
| 66 | 65 |
| 67 //////////////////////////////////////////////////////////////////////////////// | 66 //////////////////////////////////////////////////////////////////////////////// |
| 68 // Widget class | 67 // Widget class |
| 69 // | 68 // |
| (...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 740 // deliver them. Displaying a window may result in the system generating | 739 // deliver them. Displaying a window may result in the system generating |
| 741 // duplicate move events even though the mouse hasn't moved. | 740 // duplicate move events even though the mouse hasn't moved. |
| 742 bool last_mouse_event_was_move_; | 741 bool last_mouse_event_was_move_; |
| 743 gfx::Point last_mouse_event_position_; | 742 gfx::Point last_mouse_event_position_; |
| 744 | 743 |
| 745 DISALLOW_COPY_AND_ASSIGN(Widget); | 744 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 746 }; | 745 }; |
| 747 | 746 |
| 748 } // namespace views | 747 } // namespace views |
| 749 | 748 |
| 750 #endif // VIEWS_WIDGET_WIDGET_H_ | 749 #endif // VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |