Π·Π΅ΡΠΊΠ°Π»ΠΎ ΠΈΠ· https://github.com/Unity-Technologies/electron.git
π for cpplint.
This commit is contained in:
Π ΠΎΠ΄ΠΈΡΠ΅Π»Ρ
7f581973c3
ΠΠΎΠΌΠΌΠΈΡ
17a9c2aea5
|
@ -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_;
|
||||
|
||||
|
|
ΠΠ°Π³ΡΡΠ·ΠΊΠ°β¦
Π‘ΡΡΠ»ΠΊΠ° Π² Π½ΠΎΠ²ΠΎΠΉ Π·Π°Π΄Π°ΡΠ΅