Cheng Zhao 2013-04-20 14:03:55 +08:00
Π ΠΎΠ΄ΠΈΡ‚Π΅Π»ΡŒ 7f581973c3
ΠšΠΎΠΌΠΌΠΈΡ‚ 17a9c2aea5
3 ΠΈΠ·ΠΌΠ΅Π½Ρ‘Π½Π½Ρ‹Ρ… Ρ„Π°ΠΉΠ»ΠΎΠ²: 5 Π΄ΠΎΠ±Π°Π²Π»Π΅Π½ΠΈΠΉ ΠΈ 4 ΡƒΠ΄Π°Π»Π΅Π½ΠΈΠΉ

ΠŸΡ€ΠΎΡΠΌΠΎΡ‚Ρ€Π΅Ρ‚ΡŒ Ρ„Π°ΠΉΠ»

@ -14,7 +14,7 @@ class AtomMainDelegate : public brightray::MainDelegate {
AtomMainDelegate();
~AtomMainDelegate();
protected:
protected:
virtual void PreSandboxStartup() OVERRIDE;
private:

ΠŸΡ€ΠΎΡΠΌΠΎΡ‚Ρ€Π΅Ρ‚ΡŒ Ρ„Π°ΠΉΠ»

@ -40,14 +40,14 @@ bool EnterFirstWindowContext() {
bool IsValidWindowContext(v8::Handle<v8::Context> context) {
size_t size = web_frames().size();
for (size_t i = 0; i < size; ++i)
for (size_t i = 0; i < size; ++i)
if (web_frames()[i]->mainWorldScriptContext() == context)
return true;
return false;
}
}
} // namespace
AtomRenderViewObserver::AtomRenderViewObserver(
content::RenderView* render_view,

ΠŸΡ€ΠΎΡΠΌΠΎΡ‚Ρ€Π΅Ρ‚ΡŒ Ρ„Π°ΠΉΠ»

@ -16,12 +16,13 @@ class AtomRenderViewObserver : content::RenderViewObserver {
explicit AtomRenderViewObserver(content::RenderView* render_view,
AtomRendererClient* renderer_client);
private:
protected:
virtual ~AtomRenderViewObserver();
virtual void DidClearWindowObject(WebKit::WebFrame*) OVERRIDE;
virtual void FrameWillClose(WebKit::WebFrame*) OVERRIDE;
private:
// Weak reference to renderer client.
AtomRendererClient* renderer_client_;