Initial empty window javascript binding.
This commit is contained in:
parent
488d72e41b
commit
7da34e65f7
10 changed files with 206 additions and 5 deletions
28
browser/atom_browser_context.cc
Normal file
28
browser/atom_browser_context.cc
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue