webengine/osswebengine/WebCore/platform/symbian/StaticObjectsContainer.h
changeset 11 c8a366e56285
parent 10 a359256acfc6
child 25 0ed94ceaa377
equal deleted inserted replaced
10:a359256acfc6 11:c8a366e56285
     1 /*
     1 /*
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
     2  * Copyright (C) 2006 Nokia, Inc.  All rights reserved.
     3 * All rights reserved.
     3  *
     4 * This component and the accompanying materials are made available
     4  * Redistribution and use in source and binary forms, with or without
     5 * under the terms of the License "Eclipse Public License v1.0"
     5  * modification, are permitted provided that the following conditions
     6 * which accompanies this distribution, and is available
     6  * are met:
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7  *
     8 *
     8  * 1.  Redistributions of source code must retain the above copyright
     9 * Initial Contributors:
     9  *     notice, this list of conditions and the following disclaimer. 
    10 * Nokia Corporation - initial contribution.
    10  * 2.  Redistributions in binary form must reproduce the above copyright
    11 *
    11  *     notice, this list of conditions and the following disclaimer in the
    12 * Contributors:
    12  *     documentation and/or other materials provided with the distribution. 
    13 *
    13  * 3.  Neither the name of Apple Computer, Inc. ("Apple") nor the names of
    14 * Description:  
    14  *     its contributors may be used to endorse or promote products derived
    15 *
    15  *     from this software without specific prior written permission. 
    16 */
    16  *
    17 
    17  * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
       
    18  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
       
    19  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
       
    20  * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
       
    21  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
       
    22  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
       
    23  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
       
    24  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
       
    25  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
       
    26  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
       
    27  */
    18 
    28 
    19 #ifndef __STATICOBJECTCONTAINER_H__
    29 #ifndef __STATICOBJECTCONTAINER_H__
    20 #define __STATICOBJECTCONTAINER_H__
    30 #define __STATICOBJECTCONTAINER_H__
    21 
    31 
    22 #include <Browser_Platform_Variant.hrh>
    32 #include <Browser_Platform_Variant.hrh>
    36 class WebCannedImages;
    46 class WebCannedImages;
    37 class CBrCtl;
    47 class CBrCtl;
    38 class MWidgetEngineBridge;
    48 class MWidgetEngineBridge;
    39 class MDeviceBridge;
    49 class MDeviceBridge;
    40 
    50 
       
    51 
    41 namespace WebCore {
    52 namespace WebCore {
    42 class RenderThemeSymbian;
    53 class RenderThemeSymbian;
    43 class RenderTheme;
    54 class RenderTheme;
    44 typedef enum
    55 typedef enum
    45     {
    56     {
    50 
    61 
    51 class PlatformFontCache;
    62 class PlatformFontCache;
    52 class FormFillController;
    63 class FormFillController;
    53 class PictographSymbian;
    64 class PictographSymbian;
    54 class OOMHandler;
    65 class OOMHandler;
       
    66 class OOMStopper;
    55 
    67 
    56 class StaticObjectsContainer : public Noncopyable 
    68 class StaticObjectsContainer : public Noncopyable 
    57 {
    69 {
    58 public:
    70 public:
    59     static StaticObjectsContainer* instance();
    71     static StaticObjectsContainer* instance();
    86     unsigned int capabilities() {return m_capabilities;}
    98     unsigned int capabilities() {return m_capabilities;}
    87     CBrCtl* brctl() const;
    99     CBrCtl* brctl() const;
    88     const Vector<CBrCtl*>& activeBrowserControls() const;
   100     const Vector<CBrCtl*>& activeBrowserControls() const;
    89     void setFullScreenMode(bool mode);
   101     void setFullScreenMode(bool mode);
    90     bool fullScreenMode(void);
   102     bool fullScreenMode(void);
    91 
   103     
    92 private:
   104 private:
    93     static StaticObjectsContainer* gInstance;
   105     static StaticObjectsContainer* gInstance;
    94     StaticObjectsContainer();
   106     StaticObjectsContainer();
    95 
   107 
    96     PlatformFontCache*      m_fontCache;
   108     PlatformFontCache*      m_fontCache;
   106     PluginHandler*          m_pluginhandler;
   118     PluginHandler*          m_pluginhandler;
   107     int                     m_refcount;
   119     int                     m_refcount;
   108     unsigned int            m_capabilities;
   120     unsigned int            m_capabilities;
   109     Vector<CBrCtl*>         m_activeBrCtls;
   121     Vector<CBrCtl*>         m_activeBrCtls;
   110     OOMHandler*             m_oomHandler;
   122     OOMHandler*             m_oomHandler;
       
   123     OOMStopper*             m_oomStopper;
   111     bool                    m_fullScreenMode;
   124     bool                    m_fullScreenMode;
   112     bool                    m_pluginFullscreen;
   125     bool                    m_pluginFullscreen;
   113     RLibrary                m_widgetLibrary;
   126     RLibrary                m_widgetLibrary;
   114 #if defined(BRDO_LIW_FF)
   127 #if defined(BRDO_LIW_FF)
   115     RLibrary                m_deviceLibrary;
   128     RLibrary                m_deviceLibrary;
   116 #endif
   129 #endif
   117     RenderThemeSymbian*	    m_symbianTheme;
   130 		RenderThemeSymbian*			m_symbianTheme;
   118 };
   131 };
   119 
   132 
   120 }
   133 }
   121 
   134 
   122 #endif //!__STATICOBJECTCONTAINER_H__
   135 #endif //!__STATICOBJECTCONTAINER_H__