mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Fix various Mac and Linux compile errors.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@114 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -831,7 +831,7 @@ public:
|
||||
class CefPostData : public CefBase
|
||||
{
|
||||
public:
|
||||
typedef std::vector<CefRefPtr<CefPostDataElement>> ElementVector;
|
||||
typedef std::vector<CefRefPtr<CefPostDataElement> > ElementVector;
|
||||
|
||||
// Create a new CefPostData object.
|
||||
/*--cef()--*/
|
||||
@@ -1015,7 +1015,7 @@ public:
|
||||
};
|
||||
|
||||
|
||||
typedef std::vector<CefRefPtr<CefV8Value>> CefV8ValueList;
|
||||
typedef std::vector<CefRefPtr<CefV8Value> > CefV8ValueList;
|
||||
|
||||
// Interface that should be implemented to handle V8 function calls.
|
||||
/*--cef(source=client)--*/
|
||||
|
@@ -28,7 +28,7 @@
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
#if defined(_WIN32)
|
||||
#ifdef _MSC_VER // MSVC
|
||||
#ifdef BUILDING_CEF_SHARED
|
||||
#define CEF_EXPORT __declspec(dllexport)
|
||||
@@ -39,3 +39,7 @@
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#define CEF_CALLBACK __stdcall
|
||||
#endif // MSVC
|
||||
#elif defined(__GNUC__)
|
||||
#define CEF_EXPORT __attribute__ ((visibility("default")))
|
||||
#define CEF_CALLBACK
|
||||
#endif // defined(__GNUC__)
|
||||
|
@@ -113,28 +113,18 @@ public:
|
||||
}
|
||||
CefWindowInfo& operator=(const cef_window_info_t& r)
|
||||
{
|
||||
m_dwExStyle = r.m_dwExStyle;
|
||||
if(m_windowName)
|
||||
cef_string_free(m_windowName);
|
||||
if(r.m_windowName)
|
||||
m_windowName = cef_string_alloc(r.m_windowName);
|
||||
else
|
||||
m_windowName = NULL;
|
||||
m_dwStyle = r.m_dwStyle;
|
||||
m_x = r.m_x;
|
||||
m_y = r.m_y;
|
||||
m_nWidth = r.m_nWidth;
|
||||
m_nHeight = r.m_nHeight;
|
||||
return *this;
|
||||
}
|
||||
|
||||
void SetAsChild(HWND hWndParent, RECT windowRect)
|
||||
{
|
||||
m_x = windowRect.left;
|
||||
m_y = windowRect.top;
|
||||
m_nWidth = windowRect.right - windowRect.left;
|
||||
m_nHeight = windowRect.bottom - windowRect.top;
|
||||
}
|
||||
};
|
||||
|
||||
// Class representing print context information.
|
||||
@@ -162,7 +152,6 @@ public:
|
||||
|
||||
void Init()
|
||||
{
|
||||
m_hDC = NULL;
|
||||
m_Scale = 0;
|
||||
}
|
||||
|
||||
|
@@ -113,28 +113,18 @@ public:
|
||||
}
|
||||
CefWindowInfo& operator=(const cef_window_info_t& r)
|
||||
{
|
||||
m_dwExStyle = r.m_dwExStyle;
|
||||
if(m_windowName)
|
||||
cef_string_free(m_windowName);
|
||||
if(r.m_windowName)
|
||||
m_windowName = cef_string_alloc(r.m_windowName);
|
||||
else
|
||||
m_windowName = NULL;
|
||||
m_dwStyle = r.m_dwStyle;
|
||||
m_x = r.m_x;
|
||||
m_y = r.m_y;
|
||||
m_nWidth = r.m_nWidth;
|
||||
m_nHeight = r.m_nHeight;
|
||||
return *this;
|
||||
}
|
||||
|
||||
void SetAsChild(HWND hWndParent, RECT windowRect)
|
||||
{
|
||||
m_x = windowRect.left;
|
||||
m_y = windowRect.top;
|
||||
m_nWidth = windowRect.right - windowRect.left;
|
||||
m_nHeight = windowRect.bottom - windowRect.top;
|
||||
}
|
||||
};
|
||||
|
||||
// Class representing print context information.
|
||||
@@ -162,7 +152,6 @@ public:
|
||||
|
||||
void Init()
|
||||
{
|
||||
m_hDC = NULL;
|
||||
m_Scale = 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user