| 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_VIEWS_H_ | 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_ |
| 6 #define VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_ | 6 #define VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "views/widget/native_widget.h" | 10 #include "views/widget/native_widget.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 virtual gfx::Rect GetWindowScreenBounds() const OVERRIDE; | 59 virtual gfx::Rect GetWindowScreenBounds() const OVERRIDE; |
| 60 virtual gfx::Rect GetClientAreaScreenBounds() const OVERRIDE; | 60 virtual gfx::Rect GetClientAreaScreenBounds() const OVERRIDE; |
| 61 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 61 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
| 62 virtual void SetSize(const gfx::Size& size) OVERRIDE; | 62 virtual void SetSize(const gfx::Size& size) OVERRIDE; |
| 63 virtual void MoveAbove(gfx::NativeView native_view) OVERRIDE; | 63 virtual void MoveAbove(gfx::NativeView native_view) OVERRIDE; |
| 64 virtual void SetShape(gfx::NativeRegion shape) OVERRIDE; | 64 virtual void SetShape(gfx::NativeRegion shape) OVERRIDE; |
| 65 virtual void Close() OVERRIDE; | 65 virtual void Close() OVERRIDE; |
| 66 virtual void CloseNow() OVERRIDE; | 66 virtual void CloseNow() OVERRIDE; |
| 67 virtual void Show() OVERRIDE; | 67 virtual void Show() OVERRIDE; |
| 68 virtual void Hide() OVERRIDE; | 68 virtual void Hide() OVERRIDE; |
| 69 virtual bool IsVisible() const OVERRIDE; |
| 70 virtual void Activate() OVERRIDE; |
| 71 virtual void Deactivate() OVERRIDE; |
| 72 virtual bool IsActive() const OVERRIDE; |
| 73 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE; |
| 74 virtual void Maximize() OVERRIDE; |
| 75 virtual void Minimize() OVERRIDE; |
| 76 virtual bool IsMaximized() const OVERRIDE; |
| 77 virtual bool IsMinimized() const OVERRIDE; |
| 78 virtual void Restore() OVERRIDE; |
| 69 virtual void SetOpacity(unsigned char opacity) OVERRIDE; | 79 virtual void SetOpacity(unsigned char opacity) OVERRIDE; |
| 70 virtual void SetAlwaysOnTop(bool on_top) OVERRIDE; | |
| 71 virtual bool IsVisible() const OVERRIDE; | |
| 72 virtual bool IsActive() const OVERRIDE; | |
| 73 virtual bool IsAccessibleWidget() const OVERRIDE; | 80 virtual bool IsAccessibleWidget() const OVERRIDE; |
| 74 virtual bool ContainsNativeView(gfx::NativeView native_view) const OVERRIDE; | 81 virtual bool ContainsNativeView(gfx::NativeView native_view) const OVERRIDE; |
| 75 virtual void RunShellDrag(View* view, | 82 virtual void RunShellDrag(View* view, |
| 76 const ui::OSExchangeData& data, | 83 const ui::OSExchangeData& data, |
| 77 int operation) OVERRIDE; | 84 int operation) OVERRIDE; |
| 78 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE; | 85 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE; |
| 79 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; | 86 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; |
| 80 | 87 |
| 81 private: | 88 private: |
| 82 NativeWidget* GetParentNativeWidget(); | 89 NativeWidget* GetParentNativeWidget(); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 93 // The following factory is used for calls to close the NativeWidgetViews | 100 // The following factory is used for calls to close the NativeWidgetViews |
| 94 // instance. | 101 // instance. |
| 95 ScopedRunnableMethodFactory<NativeWidgetViews> close_widget_factory_; | 102 ScopedRunnableMethodFactory<NativeWidgetViews> close_widget_factory_; |
| 96 | 103 |
| 97 DISALLOW_COPY_AND_ASSIGN(NativeWidgetViews); | 104 DISALLOW_COPY_AND_ASSIGN(NativeWidgetViews); |
| 98 }; | 105 }; |
| 99 | 106 |
| 100 } | 107 } |
| 101 | 108 |
| 102 #endif // VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_ | 109 #endif // VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_ |
| OLD | NEW |