OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |