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_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 struct WebPoint; | 86 struct WebPoint; |
87 struct WebWindowFeatures; | 87 struct WebWindowFeatures; |
88 } // namespace blink | 88 } // namespace blink |
89 | 89 |
90 namespace gfx { | 90 namespace gfx { |
91 class ICCProfile; | 91 class ICCProfile; |
92 } | 92 } |
93 | 93 |
94 namespace content { | 94 namespace content { |
95 | 95 |
| 96 class IdleUserDetector; |
96 class RendererDateTimePicker; | 97 class RendererDateTimePicker; |
97 class RenderViewImplTest; | 98 class RenderViewImplTest; |
98 class RenderViewObserver; | 99 class RenderViewObserver; |
99 class RenderViewTest; | 100 class RenderViewTest; |
100 class SpeechRecognitionDispatcher; | 101 class SpeechRecognitionDispatcher; |
101 struct FaviconURL; | 102 struct FaviconURL; |
102 struct FileChooserParams; | 103 struct FileChooserParams; |
103 struct ResizeParams; | 104 struct ResizeParams; |
104 | 105 |
105 namespace mojom { | 106 namespace mojom { |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 bool uses_temporary_zoom_level() const { return uses_temporary_zoom_level_; } | 376 bool uses_temporary_zoom_level() const { return uses_temporary_zoom_level_; } |
376 | 377 |
377 // Please do not add your stuff randomly to the end here. If there is an | 378 // Please do not add your stuff randomly to the end here. If there is an |
378 // appropriate section, add it there. If not, there are some random functions | 379 // appropriate section, add it there. If not, there are some random functions |
379 // nearer to the top you can add it to. | 380 // nearer to the top you can add it to. |
380 | 381 |
381 base::WeakPtr<RenderViewImpl> GetWeakPtr() { | 382 base::WeakPtr<RenderViewImpl> GetWeakPtr() { |
382 return weak_ptr_factory_.GetWeakPtr(); | 383 return weak_ptr_factory_.GetWeakPtr(); |
383 } | 384 } |
384 | 385 |
| 386 InputEventAckState HandleInputEvent( |
| 387 const blink::WebCoalescedInputEvent& input_event, |
| 388 const ui::LatencyInfo& latency_info, |
| 389 InputEventDispatchType dispatch_type) override; |
| 390 |
385 protected: | 391 protected: |
386 // RenderWidget overrides: | 392 // RenderWidget overrides: |
387 blink::WebWidget* GetWebWidget() const override; | 393 blink::WebWidget* GetWebWidget() const override; |
388 void CloseForFrame() override; | 394 void CloseForFrame() override; |
389 void Close() override; | 395 void Close() override; |
390 void OnResize(const ResizeParams& params) override; | 396 void OnResize(const ResizeParams& params) override; |
391 void OnSetFocus(bool enable) override; | 397 void OnSetFocus(bool enable) override; |
392 GURL GetURLForGraphicsContext3D() override; | 398 GURL GetURLForGraphicsContext3D() override; |
393 void OnOrientationChange() override; | 399 void OnOrientationChange() override; |
394 void DidCommitCompositorFrame() override; | 400 void DidCommitCompositorFrame() override; |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
806 // is fine. | 812 // is fine. |
807 base::ObserverList<RenderViewObserver> observers_; | 813 base::ObserverList<RenderViewObserver> observers_; |
808 | 814 |
809 // NOTE: stats_collection_observer_ should be the last members because their | 815 // NOTE: stats_collection_observer_ should be the last members because their |
810 // constructors call the AddObservers method of RenderViewImpl. | 816 // constructors call the AddObservers method of RenderViewImpl. |
811 std::unique_ptr<StatsCollectionObserver> stats_collection_observer_; | 817 std::unique_ptr<StatsCollectionObserver> stats_collection_observer_; |
812 | 818 |
813 typedef std::map<cc::SharedBitmapId, cc::SharedBitmap*> BitmapMap; | 819 typedef std::map<cc::SharedBitmapId, cc::SharedBitmap*> BitmapMap; |
814 BitmapMap disambiguation_bitmaps_; | 820 BitmapMap disambiguation_bitmaps_; |
815 | 821 |
| 822 std::unique_ptr<IdleUserDetector> idle_user_detector_; |
| 823 |
816 // --------------------------------------------------------------------------- | 824 // --------------------------------------------------------------------------- |
817 // ADDING NEW DATA? Please see if it fits appropriately in one of the above | 825 // ADDING NEW DATA? Please see if it fits appropriately in one of the above |
818 // sections rather than throwing it randomly at the end. If you're adding a | 826 // sections rather than throwing it randomly at the end. If you're adding a |
819 // bunch of stuff, you should probably create a helper class and put your | 827 // bunch of stuff, you should probably create a helper class and put your |
820 // data and methods on that to avoid bloating RenderView more. You can | 828 // data and methods on that to avoid bloating RenderView more. You can |
821 // use the Observer interface to filter IPC messages and receive frame change | 829 // use the Observer interface to filter IPC messages and receive frame change |
822 // notifications. | 830 // notifications. |
823 // --------------------------------------------------------------------------- | 831 // --------------------------------------------------------------------------- |
824 | 832 |
825 base::WeakPtrFactory<RenderViewImpl> weak_ptr_factory_; | 833 base::WeakPtrFactory<RenderViewImpl> weak_ptr_factory_; |
826 | 834 |
827 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 835 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
828 }; | 836 }; |
829 | 837 |
830 } // namespace content | 838 } // namespace content |
831 | 839 |
832 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 840 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |