~osomon/oxide/osk-flicker-fix

« back to all changes in this revision

Viewing changes to qt/core/glue/oxide_qt_init.h

  • Committer: Chris Coulson
  • Date: 2014-10-11 22:49:16 UTC
  • Revision ID: chris.coulson@canonical.com-20141011224916-8gy8dlvk9ksa13b3
Begin to clean up qt/core/glue, starting with WebContext. As of today, it's not really clear where to put code so this is the start of an attempt to clear that up. Essentially, the *Adapter classes are just meant to be a conduit between the QML plugin and an equivalent class in qt/core/browser. Nothing else should consume the *Adapter classes (we do this in a few places), and code generally belongs in qt/core/browser (we have it split quite inconsistently today)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// vim:expandtab:shiftwidth=2:tabstop=2:
 
2
// Copyright (C) 2013 Canonical Ltd.
 
3
 
 
4
// This library is free software; you can redistribute it and/or
 
5
// modify it under the terms of the GNU Lesser General Public
 
6
// License as published by the Free Software Foundation; either
 
7
// version 2.1 of the License, or (at your option) any later version.
 
8
 
 
9
// This library 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 GNU
 
12
// Lesser General Public License for more details.
 
13
 
 
14
// You should have received a copy of the GNU Lesser General Public
 
15
// License along with this library; if not, write to the Free Software
 
16
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
17
 
 
18
#ifndef _OXIDE_QT_CORE_GLUE_INIT_H_
 
19
#define _OXIDE_QT_CORE_GLUE_INIT_H_
 
20
 
 
21
#include <QtGlobal>
 
22
 
 
23
QT_BEGIN_NAMESPACE
 
24
class QOpenGLContext;
 
25
QT_END_NAMESPACE
 
26
 
 
27
namespace oxide {
 
28
namespace qt {
 
29
 
 
30
Q_DECL_EXPORT QOpenGLContext* GetSharedGLContext();
 
31
Q_DECL_EXPORT void SetSharedGLContext(QOpenGLContext* context);
 
32
 
 
33
Q_DECL_EXPORT void EnsureChromiumStarted();
 
34
 
 
35
} // namespace qt
 
36
} // namespace oxide
 
37
 
 
38
#endif // _OXIDE_QT_CORE_GLUE_INIT_H_