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

Side by Side Diff: content/renderer/render_widget.h

Issue 2702433002: Clear renderer compositor trees if new page does not render in 4 seconds (Closed)
Patch Set: Removed a semicolon Created 3 years, 10 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
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_RENDERER_RENDER_WIDGET_H_ 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 407
408 // When emulated, this returns original device scale factor. 408 // When emulated, this returns original device scale factor.
409 float GetOriginalDeviceScaleFactor() const; 409 float GetOriginalDeviceScaleFactor() const;
410 410
411 // Helper to convert |point| using ConvertWindowToViewport(). 411 // Helper to convert |point| using ConvertWindowToViewport().
412 gfx::Point ConvertWindowPointToViewport(const gfx::Point& point); 412 gfx::Point ConvertWindowPointToViewport(const gfx::Point& point);
413 413
414 virtual void TransferActiveWheelFlingAnimation( 414 virtual void TransferActiveWheelFlingAnimation(
415 const blink::WebActiveWheelFlingParameters& params) {} 415 const blink::WebActiveWheelFlingParameters& params) {}
416 416
417 void OnClearDisplayedContent();
418
417 protected: 419 protected:
418 // Friend RefCounted so that the dtor can be non-public. Using this class 420 // Friend RefCounted so that the dtor can be non-public. Using this class
419 // without ref-counting is an error. 421 // without ref-counting is an error.
420 friend class base::RefCounted<RenderWidget>; 422 friend class base::RefCounted<RenderWidget>;
421 423
422 // For unit tests. 424 // For unit tests.
423 friend class RenderWidgetTest; 425 friend class RenderWidgetTest;
424 426
425 enum ResizeAck { 427 enum ResizeAck {
426 SEND_RESIZE_ACK, 428 SEND_RESIZE_ACK,
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 base::TimeTicks was_shown_time_; 850 base::TimeTicks was_shown_time_;
849 851
850 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; 852 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_;
851 853
852 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 854 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
853 }; 855 };
854 856
855 } // namespace content 857 } // namespace content
856 858
857 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 859 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698