Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: content/public/renderer/render_view_observer.h

Issue 684143002: Invalidate the previous frame when the window object is cleared. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use RenderViewObserver::WillReleaseScriptContext Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "ipc/ipc_listener.h" 11 #include "ipc/ipc_listener.h"
12 #include "ipc/ipc_sender.h" 12 #include "ipc/ipc_sender.h"
13 #include "third_party/WebKit/public/platform/WebVector.h" 13 #include "third_party/WebKit/public/platform/WebVector.h"
14 #include "v8/include/v8.h"
14 15
15 class GURL; 16 class GURL;
16 17
17 namespace ppapi { 18 namespace ppapi {
18 namespace host { 19 namespace host {
19 class PpapiHost; 20 class PpapiHost;
20 } 21 }
21 } 22 }
22 23
23 namespace blink { 24 namespace blink {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 virtual void DidMatchCSS( 71 virtual void DidMatchCSS(
71 blink::WebLocalFrame* frame, 72 blink::WebLocalFrame* frame,
72 const blink::WebVector<blink::WebString>& newly_matching_selectors, 73 const blink::WebVector<blink::WebString>& newly_matching_selectors,
73 const blink::WebVector<blink::WebString>& stopped_matching_selectors) {} 74 const blink::WebVector<blink::WebString>& stopped_matching_selectors) {}
74 virtual void WillSendSubmitEvent(blink::WebLocalFrame* frame, 75 virtual void WillSendSubmitEvent(blink::WebLocalFrame* frame,
75 const blink::WebFormElement& form) {} 76 const blink::WebFormElement& form) {}
76 virtual void WillSubmitForm(blink::WebLocalFrame* frame, 77 virtual void WillSubmitForm(blink::WebLocalFrame* frame,
77 const blink::WebFormElement& form) {} 78 const blink::WebFormElement& form) {}
78 virtual void DidCreateDataSource(blink::WebLocalFrame* frame, 79 virtual void DidCreateDataSource(blink::WebLocalFrame* frame,
79 blink::WebDataSource* ds) {} 80 blink::WebDataSource* ds) {}
81 virtual void WillReleaseScriptContext(blink::WebLocalFrame* frame,
82 v8::Handle<v8::Context> context,
83 int world_id) {}
80 virtual void PrintPage(blink::WebLocalFrame* frame, bool user_initiated) {} 84 virtual void PrintPage(blink::WebLocalFrame* frame, bool user_initiated) {}
81 virtual void FocusedNodeChanged(const blink::WebNode& node) {} 85 virtual void FocusedNodeChanged(const blink::WebNode& node) {}
82 virtual void DidChangeScrollOffset(blink::WebLocalFrame* frame) {} 86 virtual void DidChangeScrollOffset(blink::WebLocalFrame* frame) {}
83 virtual void DraggableRegionsChanged(blink::WebFrame* frame) {} 87 virtual void DraggableRegionsChanged(blink::WebFrame* frame) {}
84 virtual void DidCommitCompositorFrame() {} 88 virtual void DidCommitCompositorFrame() {}
85 virtual void DidUpdateLayout() {} 89 virtual void DidUpdateLayout() {}
86 90
87 // These match the RenderView methods. 91 // These match the RenderView methods.
88 virtual void DidHandleMouseEvent(const blink::WebMouseEvent& event) {} 92 virtual void DidHandleMouseEvent(const blink::WebMouseEvent& event) {}
89 virtual void DidHandleTouchEvent(const blink::WebTouchEvent& event) {} 93 virtual void DidHandleTouchEvent(const blink::WebTouchEvent& event) {}
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 RenderView* render_view_; 130 RenderView* render_view_;
127 // The routing ID of the associated RenderView. 131 // The routing ID of the associated RenderView.
128 int routing_id_; 132 int routing_id_;
129 133
130 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); 134 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver);
131 }; 135 };
132 136
133 } // namespace content 137 } // namespace content
134 138
135 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ 139 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698