root/trunk/llmozlib1/llembeddedbrowser.h

Revision 3, 2.4 kB (checked in by rob.linden, 2 years ago)

I believe this is the version included in 1.18.6.3
Last Changed Rev: 76367
Last Changed Date: 2007-12-21 09:34:18 -0800 (Fri, 21 Dec 2007)

  • Property svn:eol-style set to native
Line 
1 /**
2  * @file llembeddedbrowser.h
3  * @brief LLEmbeddedBrowser declaration.
4  *
5  * $LicenseInfo:firstyear=2006&license=viewergpl$
6  *
7  * Copyright (c) 2006-2007, Linden Research, Inc.
8  *
9  * Second Life Viewer Source Code
10  * The source code in this file ("Source Code") is provided by Linden Lab
11  * to you under the terms of the GNU General Public License, version 2.0
12  * ("GPL"), unless you have obtained a separate licensing agreement
13  * ("Other License"), formally executed by you and Linden Lab.  Terms of
14  * the GPL can be found in doc/GPL-license.txt in this distribution, or
15  * online at http://secondlife.com/developers/opensource/gplv2
16  *
17  * There are special exceptions to the terms and conditions of the GPL as
18  * it is applied to this Source Code. View the full text of the exception
19  * in the file doc/FLOSS-exception.txt in this software distribution, or
20  * online at http://secondlife.com/developers/opensource/flossexception
21  *
22  * By copying, modifying or distributing this software, you acknowledge
23  * that you have read and understood your obligations described above,
24  * and agree to abide by those obligations.
25  *
26  * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27  * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28  * COMPLETENESS OR PERFORMANCE.
29  * $/LicenseInfo$
30  */
31
32 #ifndef LLEMBEDDEDBROWSER_H
33 #define LLEMBEDDEDBROWSER_H
34
35 #include <string>
36 #include <map>
37
38 class LLEmbeddedBrowserWindow;
39 class LLEmbeddedBrowserWindowObserver;
40
41 class LLEmbeddedBrowser
42 {
43         public:
44                 LLEmbeddedBrowser();
45                 virtual ~LLEmbeddedBrowser();
46
47                 static LLEmbeddedBrowser* getInstance();
48
49                 bool init( std::string applicationDir, std::string componentDir, std::string profileDir );
50                 bool reset();
51                 bool clearCache();
52                 bool enableProxy( bool proxyEnabledIn, std::string proxyHostNameIn, int proxyPortIn );
53                 bool enableCookies( bool enabledIn );
54                 bool clearAllCookies();
55                 bool enablePlugins( bool enabledIn );
56                 std::string getGREVersion();
57                 void setBrowserAgentId( std::string idIn );
58                 LLEmbeddedBrowserWindow* createBrowserWindow( void* nativeWindowHandleIn, int browserWidthIn, int browserHeightIn );
59                 bool destroyBrowserWindow( LLEmbeddedBrowserWindow* browserWindowIn );
60                 bool setCaretColor( int browserWindowIdIn, const int redIn, const int greenIn, const int blueIn );
61                 void setLastError( int errorNumIn );
62                 void clearLastError();
63                 int getLastError();
64
65         private:
66                 static LLEmbeddedBrowser* sInstance;
67                 int mErrorNum;
68 };
69
70 #endif  // LLEMBEDDEDBROWSER_H
Note: See TracBrowser for help on using the browser.