browsercore/core/ZoomMetaData.h
changeset 3 0954f5dd2cd0
parent 0 1450b09d0cfd
child 12 afcd8e6d025b
equal deleted inserted replaced
1:b0dd75e285d2 3:0954f5dd2cd0
     1 /*
     1 /*
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
     4 *
     9 * Initial Contributors:
     5 * This program is free software: you can redistribute it and/or modify
    10 * Nokia Corporation - initial contribution.
     6 * it under the terms of the GNU Lesser General Public License as published by
       
     7 * the Free Software Foundation, version 2.1 of the License.
       
     8 * 
       
     9 * This program is distributed in the hope that it will be useful,
       
    10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       
    12 * GNU Lesser General Public License for more details.
    11 *
    13 *
    12 * Contributors:
    14 * You should have received a copy of the GNU Lesser General Public License
       
    15 * along with this program.  If not, 
       
    16 * see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/".
    13 *
    17 *
    14 * Description: 
    18 * Description:
    15 *
    19 *
    16 */
    20 */
    17 
    21 
    18 
       
    19 #ifndef __ZOOMMETADATA_H__
    22 #ifndef __ZOOMMETADATA_H__
    20 #define __ZOOMMETADATA_H__
    23 #define __ZOOMMETADATA_H__
       
    24 
       
    25 #ifdef BEDROCK_TILED_BACKING_STORE
       
    26 #include <QRectF>
       
    27 #include <QString>
       
    28 #endif
    21 
    29 
    22 // To store the view port proeperties that affect zoom set through meta data. 
    30 // To store the view port proeperties that affect zoom set through meta data. 
    23 // This is available in the main frame of the page but to avoid parsing the meta
    31 // This is available in the main frame of the page but to avoid parsing the meta
    24 // data again, store it
    32 // data again, store it
    25 
    33 
    34    qreal initialScale;
    42    qreal initialScale;
    35    */ 
    43    */ 
    36    qreal minScale;
    44    qreal minScale;
    37    qreal maxScale;
    45    qreal maxScale;
    38    bool userScalable;
    46    bool userScalable;
    39 
    47 #ifdef BEDROCK_TILED_BACKING_STORE
       
    48    qreal initialScale;
       
    49    QRectF rect;
       
    50    QRectF webViewSize;
       
    51    qreal scale;
       
    52    QSizeF viewportSize;
       
    53    QString m_specifiedWidth;
       
    54    QString m_specifiedHeight;
       
    55 #endif
    40 };
    56 };
    41 #endif  //__ZOOMMETADATA_H__
    57 #endif  //__ZOOMMETADATA_H__