Initial empty browser.

This commit is contained in:
Cheng Zhao 2013-04-12 09:46:58 +08:00
parent 6ef8875b1e
commit a915cf2e81
25 changed files with 3770 additions and 3 deletions

View file

@ -0,0 +1,24 @@
// 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 "renderer/atom_render_view_observer.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
#include "v8/include/v8.h"
namespace atom {
AtomRenderViewObserver::AtomRenderViewObserver(
content::RenderView *render_view)
: content::RenderViewObserver(render_view) {
}
AtomRenderViewObserver::~AtomRenderViewObserver() {
}
void AtomRenderViewObserver::DidClearWindowObject(WebKit::WebFrame* frame) {
}
} // namespace atom

View file

@ -0,0 +1,26 @@
// 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.
#ifndef ATOM_RENDERER_ATOM_RENDER_VIEW_OBSERVER_
#define ATOM_RENDERER_ATOM_RENDER_VIEW_OBSERVER_
#include "content/public/renderer/render_view_observer.h"
namespace atom {
class AtomRenderViewObserver : content::RenderViewObserver {
public:
explicit AtomRenderViewObserver(content::RenderView*);
private:
~AtomRenderViewObserver();
virtual void DidClearWindowObject(WebKit::WebFrame*) OVERRIDE;
DISALLOW_COPY_AND_ASSIGN(AtomRenderViewObserver);
};
} // namespace atom
#endif // ATOM_RENDERER_ATOM_RENDER_VIEW_OBSERVER_

View file

@ -0,0 +1,21 @@
// 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 "renderer/atom_renderer_client.h"
#include "renderer/atom_render_view_observer.h"
namespace atom {
AtomRendererClient::AtomRendererClient() {
}
AtomRendererClient::~AtomRendererClient() {
}
void AtomRendererClient::RenderViewCreated(content::RenderView* render_view) {
new AtomRenderViewObserver(render_view);
}
} // namespace atom

View file

@ -0,0 +1,25 @@
// 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.
#ifndef ATOM_RENDERER_ATOM_RENDERER_CLIENT_
#define ATOM_RENDERER_ATOM_RENDERER_CLIENT_
#include "content/public/renderer/content_renderer_client.h"
namespace atom {
class AtomRendererClient : public content::ContentRendererClient {
public:
AtomRendererClient();
~AtomRendererClient();
private:
virtual void RenderViewCreated(content::RenderView*) OVERRIDE;
DISALLOW_COPY_AND_ASSIGN(AtomRendererClient);
};
} // namespace atom
#endif // ATOM_RENDERER_ATOM_RENDERER_CLIENT_

12
renderer/mac/Info.plist Normal file
View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleIdentifier</key>
<string>com.github.atom.helper</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>LSUIElement</key>
<true/>
</dict>
</plist>