| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2004, 2005, 2006, 2009, 2010 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2009, 2010 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #ifndef RenderWidget_h | 22 #ifndef RenderWidget_h |
| 23 #define RenderWidget_h | 23 #define RenderWidget_h |
| 24 | 24 |
| 25 #include "core/rendering/RenderReplaced.h" | 25 #include "core/rendering/RenderReplaced.h" |
| 26 #include "platform/Widget.h" | 26 #include "platform/Widget.h" |
| 27 | 27 |
| 28 namespace WebCore { | 28 namespace WebCore { |
| 29 | 29 |
| 30 class RenderWidget : public RenderReplaced { | 30 class RenderWidget : public RenderReplaced { |
| 31 public: | 31 public: |
| 32 enum ConfigureType { ConfigureOnAttach, ConfigureOnDetach }; |
| 32 virtual ~RenderWidget(); | 33 virtual ~RenderWidget(); |
| 33 | 34 |
| 34 Widget* widget() const { return m_widget.get(); } | 35 Widget* widget() const; |
| 35 virtual void setWidget(PassRefPtr<Widget>); | 36 virtual void setWidget(PassRefPtr<Widget>); |
| 37 virtual void configureWidget(ConfigureType); |
| 36 | 38 |
| 37 void updateWidgetPosition(); | 39 void updateWidgetPosition(); |
| 38 void widgetPositionsUpdated(); | 40 void widgetPositionsUpdated(); |
| 39 IntRect windowClipRect() const; | 41 IntRect windowClipRect() const; |
| 40 | 42 |
| 41 void setIsOverlapped(bool); | 43 void setIsOverlapped(bool); |
| 42 | 44 |
| 43 void ref() { ++m_refCount; } | 45 void ref() { ++m_refCount; } |
| 44 void deref(); | 46 void deref(); |
| 45 | 47 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 FrameView* m_frameView; | 79 FrameView* m_frameView; |
| 78 IntRect m_clipRect; // The rectangle needs to remain correct after scrolling
, so it is stored in content view coordinates, and not clipped to window. | 80 IntRect m_clipRect; // The rectangle needs to remain correct after scrolling
, so it is stored in content view coordinates, and not clipped to window. |
| 79 int m_refCount; | 81 int m_refCount; |
| 80 }; | 82 }; |
| 81 | 83 |
| 82 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderWidget, isWidget()); | 84 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderWidget, isWidget()); |
| 83 | 85 |
| 84 } // namespace WebCore | 86 } // namespace WebCore |
| 85 | 87 |
| 86 #endif // RenderWidget_h | 88 #endif // RenderWidget_h |
| OLD | NEW |