~osomon/oxide/override-touchUngrabEvent

« back to all changes in this revision

Viewing changes to qt/quick/api/oxideqquickwebcontext.cc

  • Committer: Chris Coulson
  • Date: 2016-01-13 18:16:11 UTC
  • Revision ID: chris.coulson@canonical.com-20160113181611-vo55lgwngvcj9u1h
Various clean-ups in soon-to-be-public headers. Also, we rename header files based on whether they're going to be public or not

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
// License along with this library; if not, write to the Free Software
16
16
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
17
17
 
 
18
#include "oxideqquickwebcontext.h"
18
19
#include "oxideqquickwebcontext_p.h"
19
 
#include "oxideqquickwebcontext_p_p.h"
20
20
 
21
21
#include <limits>
22
22
 
30
30
#include <QtQuickVersion>
31
31
#include <QWeakPointer>
32
32
 
33
 
#include "qt/core/api/oxideqnetworkcallbackevents.h"
 
33
#include "qt/core/api/oxideqnetworkcallbackevents_p.h"
34
34
#include "qt/quick/oxide_qquick_init.h"
35
35
 
36
36
#include "oxideqquickcookiemanager_p.h"
 
37
#include "oxideqquickuserscript.h"
37
38
#include "oxideqquickuserscript_p.h"
38
 
#include "oxideqquickuserscript_p_p.h"
39
39
#include "oxideqquickwebcontextdelegateworker_p.h"
40
40
#include "oxideqquickwebcontextdelegateworker_p_p.h"
41
41
#include "oxidequseragentoverriderequest_p.h"
429
429
  return proxy()->deleteAllCookies();
430
430
}
431
431
 
 
432
void OxideQQuickWebContext::classBegin() {}
 
433
 
 
434
void OxideQQuickWebContext::componentComplete() {
 
435
  Q_D(OxideQQuickWebContext);
 
436
 
 
437
  d->constructed_ = true;
 
438
  emit d->constructed();
 
439
}
 
440
 
432
441
OxideQQuickWebContext::OxideQQuickWebContext(QObject* parent) :
433
442
    QObject(parent) {
434
443
  oxide::qquick::EnsureChromiumStarted();
457
466
  delete d->user_agent_override_delegate_;
458
467
}
459
468
 
460
 
void OxideQQuickWebContext::classBegin() {}
461
 
 
462
 
void OxideQQuickWebContext::componentComplete() {
463
 
  Q_D(OxideQQuickWebContext);
464
 
 
465
 
  d->constructed_ = true;
466
 
  emit d->constructed();
467
 
}
468
 
 
469
469
// static
470
470
OxideQQuickWebContext* OxideQQuickWebContext::defaultContext(bool create) {
471
471
  oxide::qt::WebContextProxyHandle* h = WebContextProxy::defaultContext();
1156
1156
  emit doNotTrackEnabledChanged();
1157
1157
}
1158
1158
 
1159
 
#include "moc_oxideqquickwebcontext_p.cpp"
 
1159
#include "moc_oxideqquickwebcontext.cpp"