| 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 void SetOpacity(unsigned char opacity) OVERRIDE; |
| 70 virtual void SetAlwaysOnTop(bool on_top) OVERRIDE; |
| 69 virtual bool IsVisible() const OVERRIDE; | 71 virtual bool IsVisible() const OVERRIDE; |
| 70 virtual void Activate() OVERRIDE; | |
| 71 virtual void Deactivate() OVERRIDE; | |
| 72 virtual bool IsActive() const 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; | |
| 79 virtual void SetOpacity(unsigned char opacity) OVERRIDE; | |
| 80 virtual bool IsAccessibleWidget() const OVERRIDE; | 73 virtual bool IsAccessibleWidget() const OVERRIDE; |
| 81 virtual bool ContainsNativeView(gfx::NativeView native_view) const OVERRIDE; | 74 virtual bool ContainsNativeView(gfx::NativeView native_view) const OVERRIDE; |
| 82 virtual void RunShellDrag(View* view, | 75 virtual void RunShellDrag(View* view, |
| 83 const ui::OSExchangeData& data, | 76 const ui::OSExchangeData& data, |
| 84 int operation) OVERRIDE; | 77 int operation) OVERRIDE; |
| 85 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE; | 78 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE; |
| 86 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; | 79 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; |
| 87 | 80 |
| 88 private: | 81 private: |
| 89 NativeWidget* GetParentNativeWidget(); | 82 NativeWidget* GetParentNativeWidget(); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 100 // The following factory is used for calls to close the NativeWidgetViews | 93 // The following factory is used for calls to close the NativeWidgetViews |
| 101 // instance. | 94 // instance. |
| 102 ScopedRunnableMethodFactory<NativeWidgetViews> close_widget_factory_; | 95 ScopedRunnableMethodFactory<NativeWidgetViews> close_widget_factory_; |
| 103 | 96 |
| 104 DISALLOW_COPY_AND_ASSIGN(NativeWidgetViews); | 97 DISALLOW_COPY_AND_ASSIGN(NativeWidgetViews); |
| 105 }; | 98 }; |
| 106 | 99 |
| 107 } | 100 } |
| 108 | 101 |
| 109 #endif // VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_ | 102 #endif // VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_ |
| OLD | NEW |