Initial empty window javascript binding.

This commit is contained in:
Cheng Zhao 2013-04-16 00:25:08 +08:00
parent 488d72e41b
commit 7da34e65f7
10 changed files with 206 additions and 5 deletions

View file

@ -0,0 +1,28 @@
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "browser/atom_browser_context.h"
namespace atom {
// static
AtomBrowserContext* AtomBrowserContext::self_;
AtomBrowserContext::AtomBrowserContext() {
DCHECK(!self_);
self_ = this;
}
AtomBrowserContext::~AtomBrowserContext() {
}
// static
AtomBrowserContext* AtomBrowserContext::Get() {
DCHECK(self_);
return self_;
}
} // namespace atom