webengine/osswebengine/WebKit/s60/webview/WebPageZoomHandler.cpp
branchRCL_3
changeset 49 919f36ff910f
parent 48 79859ed3eea9
equal deleted inserted replaced
48:79859ed3eea9 49:919f36ff910f
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 // INCLUDE FILES
    19 // INCLUDE FILES
    20 #include <../bidi.h>
    20 #include <../bidi.h>
    21 #include <AknUtils.h>
    21 #include <aknutils.h>
    22 #include "WebPageZoomHandler.h"
    22 #include "WebPageZoomHandler.h"
    23 #include "SettingsContainer.h"
    23 #include "SettingsContainer.h"
    24 #include <AknVolumePopup.h>
    24 #include <AknVolumePopup.h>
    25 #include "WebView.h"
    25 #include "WebView.h"
    26 #include "BrCtl.h"
    26 #include "BrCtl.h"
   101 void WebPageZoomHandler::showZoomSliderL()
   101 void WebPageZoomHandler::showZoomSliderL()
   102 {
   102 {
   103     if ( AknLayoutUtils::PenEnabled() )
   103     if ( AknLayoutUtils::PenEnabled() )
   104         {
   104         {
   105         if (m_zoomSlider) {
   105         if (m_zoomSlider) {
       
   106             if( m_zoomSlider->IsVisible())
       
   107                 m_zoomSlider->CloseVolumePopup();
   106             delete m_zoomSlider;
   108             delete m_zoomSlider;
   107             m_zoomSlider = NULL;
   109             m_zoomSlider = NULL;
   108             }
   110             }
   109         m_zoomSlider = CAknVolumePopup::NewL( NULL, ETrue);
   111         m_zoomSlider = CAknVolumePopup::NewL( NULL, ETrue);
   110         m_zoomSlider->SetValueType( EAknSliderValuePercentage );
   112         m_zoomSlider->SetValueType( EAknSliderValuePercentage );