equal
deleted
inserted
replaced
30 #include <QApplication> |
30 #include <QApplication> |
31 #include <QWidget> |
31 #include <QWidget> |
32 |
32 |
33 using namespace WebCore; |
33 using namespace WebCore; |
34 |
34 |
35 PluginContainerSymbian::PluginContainerSymbian(PluginView* view, QWidget* parent) |
35 PluginContainerSymbian::PluginContainerSymbian(PluginView* view, QWidget* parent, QGraphicsProxyWidget* proxy) |
36 : m_parent(parent) |
36 : QWidget(parent) |
37 , m_pluginView(view) |
37 , m_pluginView(view) |
|
38 , m_proxy(proxy) |
38 , m_hasPendingGeometryChange(false) |
39 , m_hasPendingGeometryChange(false) |
39 { |
40 { |
40 setParent(m_parent); |
|
41 } |
41 } |
42 |
42 |
43 PluginContainerSymbian::~PluginContainerSymbian() |
43 PluginContainerSymbian::~PluginContainerSymbian() |
44 { |
44 { |
45 } |
45 } |
60 setMask(m_clipRegion); |
60 setMask(m_clipRegion); |
61 m_hasPendingGeometryChange = false; |
61 m_hasPendingGeometryChange = false; |
62 } |
62 } |
63 } |
63 } |
64 |
64 |
65 void PluginContainerSymbian::focusInEvent(QFocusEvent* event) |
65 void PluginContainerSymbian::focusInEvent(QFocusEvent*) |
66 { |
66 { |
67 if (Page* page = m_pluginView->parentFrame()->page()) |
67 if (Page* page = m_pluginView->parentFrame()->page()) |
68 page->focusController()->setActive(true); |
68 page->focusController()->setActive(true); |
69 |
69 |
70 m_pluginView->focusPluginElement(); |
70 m_pluginView->focusPluginElement(); |