OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. | 3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
692 if (m_scrollbarGroup) | 692 if (m_scrollbarGroup) |
693 m_scrollbarGroup->willStartLiveResize(); | 693 m_scrollbarGroup->willStartLiveResize(); |
694 } | 694 } |
695 | 695 |
696 void WebPluginContainerImpl::willEndLiveResize() | 696 void WebPluginContainerImpl::willEndLiveResize() |
697 { | 697 { |
698 if (m_scrollbarGroup) | 698 if (m_scrollbarGroup) |
699 m_scrollbarGroup->willEndLiveResize(); | 699 m_scrollbarGroup->willEndLiveResize(); |
700 } | 700 } |
701 | 701 |
702 bool WebPluginContainerImpl::paintCustomOverhangArea(GraphicsContext* context, c
onst IntRect& horizontalOverhangArea, const IntRect& verticalOverhangArea, const
IntRect& dirtyRect) | |
703 { | |
704 Color fillColor(0xCC, 0xCC, 0xCC); | |
705 context->fillRect(intersection(horizontalOverhangArea, dirtyRect), fillColor
); | |
706 context->fillRect(intersection(verticalOverhangArea, dirtyRect), fillColor); | |
707 return true; | |
708 } | |
709 | |
710 // Private methods ------------------------------------------------------------- | 702 // Private methods ------------------------------------------------------------- |
711 | 703 |
712 WebPluginContainerImpl::WebPluginContainerImpl(HTMLPlugInElement* element, WebPl
ugin* webPlugin) | 704 WebPluginContainerImpl::WebPluginContainerImpl(HTMLPlugInElement* element, WebPl
ugin* webPlugin) |
713 : LocalFrameLifecycleObserver(element->document().frame()) | 705 : LocalFrameLifecycleObserver(element->document().frame()) |
714 , m_element(element) | 706 , m_element(element) |
715 , m_webPlugin(webPlugin) | 707 , m_webPlugin(webPlugin) |
716 , m_webLayer(nullptr) | 708 , m_webLayer(nullptr) |
717 , m_isInPaint(false) | 709 , m_isInPaint(false) |
718 , m_touchEventRequestType(TouchEventRequestTypeNone) | 710 , m_touchEventRequestType(TouchEventRequestTypeNone) |
719 , m_wantsWheelEvents(false) | 711 , m_wantsWheelEvents(false) |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1019 for (size_t i = 0; i < cutOutRects.size(); i++) | 1011 for (size_t i = 0; i < cutOutRects.size(); i++) |
1020 cutOutRects[i].move(-frameRect().x(), -frameRect().y()); | 1012 cutOutRects[i].move(-frameRect().x(), -frameRect().y()); |
1021 } | 1013 } |
1022 | 1014 |
1023 bool WebPluginContainerImpl::pluginShouldPersist() const | 1015 bool WebPluginContainerImpl::pluginShouldPersist() const |
1024 { | 1016 { |
1025 return m_webPlugin->shouldPersist(); | 1017 return m_webPlugin->shouldPersist(); |
1026 } | 1018 } |
1027 | 1019 |
1028 } // namespace blink | 1020 } // namespace blink |
OLD | NEW |