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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_base.h

Issue 1339803002: Clear page display after navigation if no rendered output arrives (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Made ClearCompositorFrame pure virtual Created 5 years, 3 months 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 virtual gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds); 157 virtual gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds);
158 virtual gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget(); 158 virtual gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget();
159 virtual gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible(); 159 virtual gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible();
160 160
161 // Informs that the focused DOM node has changed. 161 // Informs that the focused DOM node has changed.
162 virtual void FocusedNodeChanged(bool is_editable_node) {} 162 virtual void FocusedNodeChanged(bool is_editable_node) {}
163 163
164 virtual void OnSwapCompositorFrame(uint32 output_surface_id, 164 virtual void OnSwapCompositorFrame(uint32 output_surface_id,
165 scoped_ptr<cc::CompositorFrame> frame) {} 165 scoped_ptr<cc::CompositorFrame> frame) {}
166 166
167 // This method exists to allow removing of displayed graphics, after a new
168 // page has been loaded, to prevent the displayed URL from being out of sync
169 // with what is visible on screen.
170 virtual void ClearCompositorFrame() = 0;
171
167 // Because the associated remote WebKit instance can asynchronously 172 // Because the associated remote WebKit instance can asynchronously
168 // prevent-default on a dispatched touch event, the touch events are queued in 173 // prevent-default on a dispatched touch event, the touch events are queued in
169 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases 174 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases
170 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS) 175 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS)
171 // or ignored (when |ack_result| is CONSUMED). 176 // or ignored (when |ack_result| is CONSUMED).
172 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, 177 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch,
173 InputEventAckState ack_result) {} 178 InputEventAckState ack_result) {}
174 179
175 virtual void DidOverscroll(const DidOverscrollParams& params) {} 180 virtual void DidOverscroll(const DidOverscrollParams& params) {}
176 181
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; 434 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_;
430 435
431 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; 436 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_;
432 437
433 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 438 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
434 }; 439 };
435 440
436 } // namespace content 441 } // namespace content
437 442
438 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 443 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698